Discuz7论坛签名位置靠上解决办法
Discuz7帖内个人信息太长的时候,如果有设置签名或帖内下方广告的话,会导致签名或帖内下方广告过高,以下修改方法就是修正这个问题的困扰!打开templates/default/viewthread_node.htm
搜索第1个
<td class="postauthor">
换成
<td class="postauthor" rowspan="2">
搜索
<!--{if $post['signature'] && ($bannedmessages & 4 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || ($post['status'] & 1)))}-->
<div class="signatures">
<table cellspacing="0" cellpadding="0">
<tr>
<td>{lang member_signature_banned}</td>
</tr>
</table>
</div>
<!--{elseif $post['signature'] && !$post['anonymous'] && $showsignatures}-->
<div class="signatures" style="maxHeightIE: {$maxsigrows}px;">
<table cellspacing="0" cellpadding="0">
<tr>
<td>
$post
</td>
</tr>
</table>
</div>
<!--{/if}-->
<!--{if $admode && empty($insenz['hardadstatus']) && !empty($advlist['thread1'][$post['count']])}--><div class="ad_textlink1" id="ad_thread1_$post">$advlist[$post]</div><!--{else}--><div id="ad_thread1_$post"></div><!--{/if}-->
删除掉,继续搜索下面
<td class="postauthor"></td>
<td class="postcontent">
换成
<td class="postcontent" style="vertical-align:bottom;">
<!--{if $post['signature'] && ($bannedmessages & 4 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || ($post['status'] & 1)))}-->
<div class="signatures">
<table cellspacing="0" cellpadding="0">
<tr>
<td>{lang member_signature_banned}</td>
</tr>
</table>
</div>
<!--{elseif $post['signature'] && !$post['anonymous'] && $showsignatures}-->
<div class="signatures" style="maxHeightIE: {$maxsigrows}px;">
<table cellspacing="0" cellpadding="0">
<tr>
<td>
$post
</td>
</tr>
</table>
</div>
<!--{/if}-->
<!--{if $admode && empty($insenz['hardadstatus']) && !empty($advlist['thread1'][$post['count']])}--><div class="ad_textlink1" id="ad_thread1_$post">$advlist[$post]</div><!--{else}--><div id="ad_thread1_$post"></div><!--{/if}-->
保存覆盖,后台更新模版缓存即可! 看不懂啊。
页:
[1]