Discuz帖子内容页左侧个人信息的下方有一处很大的空白,如何能够去掉它呢,太占帖子高度了。帖子页面是使用table来制作的,修改起来可能关联的代码比较多,今天分享下修改的代码
第一步
文件:template\default\forum\viewthread_node.htm

删除下面内容:
<!--{if !$_G['forum_thread']['archiveid']}-->
<tr>
<td class="pls"></td>
<td class="plc">
<div class="po">
<!--{if !$post['first'] && $modmenu['post']}-->
<span class="y">
<label for="manage$post[pid]">
<input type="checkbox" id="manage$post[pid]" class="pc" {if !empty($modclick)}checked="checked" {/if}onclick="pidchecked(this);modclick(this, $post[pid])" value="$post[pid]" autocomplete="off" />
{lang manage}
</label>
</span>
<!--{/if}-->
<div class="pob cl">
<em>
<!--{if $post['invisible'] == 0}-->
<!--{if $allowpostreply}-->
<!--{if $post['allowcomment'] && (!$thread['closed'] || $_G['forum']['ismoderator'])}--><a class="cmmnt" href="forum.php?mod=misc&action=comment&tid=$post[tid]&pid=$post[pid]&extra=$_G[gp_extra]&page=$page{if $_G['forum_thread']['special'] == 127}&special=$specialextra{/if}" onclick="showWindow('comment', this.href, 'get', 0)">{lang comments}</a><!--{/if}-->
<!--{if !$needhiddenreply}-->
<!--{if $post['first']}-->
<a class="fastre" href="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]&reppost=$post[pid]&extra=$_G[gp_extra]&page=$page" onclick="showWindow('reply', this.href)">{lang reply}</a>
<!--{else}-->
<a class="fastre" href="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]&repquote=$post[pid]&extra=$_G[gp_extra]&page=$page" onclick="showWindow('reply', this.href)">{lang reply}</a>
<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
<!--{if (($_G['forum']['ismoderator'] && $_G['group']['alloweditpost'] && (!in_array($post['adminid'], array(1, 2, 3)) || $_G['adminid'] <= $post['adminid'])) || ($_G['forum']['alloweditpost'] && $_G['uid'] && $post['authorid'] == $_G['uid'] && !(!$alloweditpost_status && $edittimelimit && TIMESTAMP - $post['dbdateline'] > $edittimelimit)))}-->
<a class="editp" href="forum.php?mod=post&action=edit&fid=$_G[fid]&tid=$_G[tid]&pid=$post[pid]{if !empty($_G[gp_modthreadkey])}&modthreadkey=$_G[gp_modthreadkey]{/if}&page=$page"><!--{if $_G['forum_thread']['special'] == 2 && !$post['message']}-->{lang post_add_aboutcounter}<!--{else}-->{lang edit}</a><!--{/if}-->
<!--{elseif $_G['uid'] && $post['authorid'] == $_G['uid']}-->
<a class="appendp" href="forum.php?mod=misc&action=postappend&tid=$post[tid]&pid=$post[pid]&extra=$_G[gp_extra]&page=$page" onClick="showWindow('postappend', this.href, 'get', 0)">{lang postappend}</a>
<!--{/if}-->
<!--{if $post['first'] && $post['invisible'] == -3}-->
<a class="psave" href="forum.php?mod=misc&action=pubsave&tid=$_G[tid]">{lang published}</a>
<!--{/if}-->
<!--{if $post['invisible'] == -2 && !$post['first']}-->
<span class="xg1">({lang moderate_need})</span>
<!--{/if}-->
<!--{if $post['first'] && $allowblockrecommend}--><a class="push" href="javascript:;" onclick="modaction('recommend', '$_G[forum_firstpid]', 'op=recommend&idtype={if $_G[forum_thread][isgroup]}gtid{else}tid{/if}&id=$_G[tid]&pid=$post[pid]', 'portal.php?mod=portalcp&ac=portalblock')">{lang modmenu_blockrecommend}</a><!--{/if}-->
<!--{hook/viewthread_postfooter $postcount}-->
</em>

<p>
<!--{if $post['invisible'] == 0}-->
<!--{if $_G['setting']['magicstatus']}-->
<a href="javascript:;" id="mgc_post_$post[pid]" onmouseover="showMenu(this.id)" class="showmenu">{lang thread_magic}</a>
<!--{/if}-->

<!--{if $_G['forum_thread']['special'] == 3 && ($_G['forum']['ismoderator'] && (!$_G['setting']['rewardexpiration'] || $_G['setting']['rewardexpiration'] > 0 && ($_G[timestamp] - $_G['forum_thread']['dateline']) / 86400 > $_G['setting']['rewardexpiration']) || $_G['forum_thread']['authorid'] == $_G['uid']) && $post['authorid'] != $_G['forum_thread']['authorid'] && $post['first'] == 0 && $_G['uid'] != $post['authorid'] && $_G['forum_thread']['price'] > 0}-->
<a href="javascript:;" onclick="setanswer($post['pid'], '$_G[gp_from]')">{lang reward_set_bestanswer}</a>
<!--{/if}-->

<!--{if !$post['first'] && $_G['group']['raterange'] && $post['authorid']}-->
<a href="javascript:;" onclick="showWindow('rate', 'forum.php?mod=misc&action=rate&tid=$_G[tid]&pid=$post[pid]', 'get', -1);return false;">{lang rate}</a>
<!--{/if}-->

<!--{if $post['rate'] && $_G['forum']['ismoderator']}-->
<a href="forum.php?mod=misc&action=removerate&tid=$_G[tid]&pid=$post[pid]&page=$page" onclick="showWindow('rate', this.href, 'get', -1)">{lang removerate}</a>
<!--{/if}-->
<!--{if $post['authorid'] != $_G['uid']}-->
<a href="javascript:;" onclick="showWindow('miscreport$post[pid]', 'misc.php?mod=report&rtype=post&rid=$post[pid]&tid=$_G[tid]&fid=$_G[fid]', 'get', -1);return false;">{lang report}</a>
<!--{/if}-->
<!--{/if}-->
</p>

<!--{if $_G['setting']['magicstatus']}-->
<ul id="mgc_post_$post[pid]_menu" class="p_pop mgcmn" style="display: none;">
<!--{if $post['first']}-->
<!--{if !empty($_G['setting']['magics']['bump'])}-->
<li><a href="home.php?mod=magic&mid=bump&idtype=tid&id=$_G[tid]" id="a_bump" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/bump.small.gif" />$_G['setting']['magics']['bump']</a></li>
<!--{/if}-->
<!--{if !empty($_G['setting']['magics']['stick'])}-->
<li><a href="home.php?mod=magic&mid=stick&idtype=tid&id=$_G[tid]" id="a_stick" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/stick.small.gif" />$_G['setting']['magics']['stick']</a></li>
<!--{/if}-->
<!--{if !empty($_G['setting']['magics']['close'])}-->
<li><a href="home.php?mod=magic&mid=close&idtype=tid&id=$_G[tid]" id="a_stick" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/close.small.gif" />$_G['setting']['magics']['close']</a></li>
<!--{/if}-->
<!--{if !empty($_G['setting']['magics']['open'])}-->
<li><a href="home.php?mod=magic&mid=open&idtype=tid&id=$_G[tid]" id="a_stick" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/open.small.gif" />$_G['setting']['magics']['open']</a></li>
<!--{/if}-->
<!--{if !empty($_G['setting']['magics']['highlight'])}-->
<li><a href="home.php?mod=magic&mid=highlight&idtype=tid&id=$_G[tid]" id="a_stick" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/highlight.small.gif" />$_G['setting']['magics']['highlight']</a></li>
<!--{/if}-->
<!--{if !empty($_G['setting']['magics']['sofa'])}-->
<li><a href="home.php?mod=magic&mid=sofa&idtype=tid&id=$_G[tid]" id="a_stick" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/sofa.small.gif" />$_G['setting']['magics']['sofa']</a></li>
<!--{/if}-->
<!--{if !empty($_G['setting']['magics']['jack'])}-->
<li><a href="home.php?mod=magic&mid=jack&idtype=tid&id=$_G[tid]" id="a_jack" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/jack.small.gif" />$_G['setting']['magics']['jack']</a></li>
<!--{/if}-->
<!--{hook/viewthread_magic_thread}-->
<!--{/if}-->
<!--{if !empty($_G['setting']['magics']['repent']) && $post['authorid'] == $_G['uid'] && !$rushreply}-->
<li><a href="home.php?mod=magic&mid=repent&idtype=pid&id=$post[pid]:$_G[tid]" id="a_repent_$post[pid]" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/bump.small.gif" />$_G['setting']['magics']['repent']</a></li>
<!--{/if}-->
<!--{if !empty($_G['setting']['magics']['anonymouspost']) && $post['authorid'] == $_G['uid']}-->
<li><a href="home.php?mod=magic&mid=anonymouspost&idtype=pid&id=$post[pid]:$_G[tid]" id="a_anonymouspost_$post[pid]" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/anonymouspost.small.gif" />$_G['setting']['magics']['anonymouspost']</a><li>
<!--{/if}-->
<!--{if !empty($_G['setting']['magics']['namepost'])}-->
<li><a href="home.php?mod=magic&mid=namepost&idtype=pid&id=$post[pid]:$_G[tid]" id="a_namepost_$post[pid]" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/namepost.small.gif" />$_G['setting']['magics']['namepost']</a><li>
<!--{/if}-->
<!--{hook/viewthread_magic_post $postcount}-->
</ul>
<script type="text/javascript" reload="1">checkmgcmn('post_$post[pid]')</script>
<!--{/if}-->
</div>
</div>

</td>
</tr>
<!--{/if}-->

第二步:查找
<!--{ad/thread/a_pb/1/$postcount}-->

在下面增加:

<!--{if !$_G['forum_thread']['archiveid']}-->
<div class="po">
<!--{if !$post['first'] && $modmenu['post']}-->
<span class="y">
<label for="manage$post[pid]">
<input type="checkbox" id="manage$post[pid]" class="pc" {if !empty($modclick)}checked="checked" {/if}onclick="pidchecked(this);modclick(this, $post[pid])" value="$post[pid]" autocomplete="off" />
{lang manage}
</label>
</span>
<!--{/if}-->
<div class="pob cl">
<em>
<!--{if $post['invisible'] == 0}-->
<!--{if $allowpostreply}-->
<!--{if $post['allowcomment'] && (!$thread['closed'] || $_G['forum']['ismoderator'])}--><a class="cmmnt" href="forum.php?mod=misc&action=comment&tid=$post[tid]&pid=$post[pid]&extra=$_G[gp_extra]&page=$page{if $_G['forum_thread']['special'] == 127}&special=$specialextra{/if}" onclick="showWindow('comment', this.href, 'get', 0)">{lang comments}</a><!--{/if}-->
<!--{if !$needhiddenreply}-->
<!--{if $post['first']}-->
<a class="fastre" href="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]&reppost=$post[pid]&extra=$_G[gp_extra]&page=$page" onclick="showWindow('reply', this.href)">{lang reply}</a>
<!--{else}-->
<a class="fastre" href="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]&repquote=$post[pid]&extra=$_G[gp_extra]&page=$page" onclick="showWindow('reply', this.href)">{lang reply}</a>
<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
<!--{if (($_G['forum']['ismoderator'] && $_G['group']['alloweditpost'] && (!in_array($post['adminid'], array(1, 2, 3)) || $_G['adminid'] <= $post['adminid'])) || ($_G['forum']['alloweditpost'] && $_G['uid'] && $post['authorid'] == $_G['uid'] && !(!$alloweditpost_status && $edittimelimit && TIMESTAMP - $post['dbdateline'] > $edittimelimit)))}-->
<a class="editp" href="forum.php?mod=post&action=edit&fid=$_G[fid]&tid=$_G[tid]&pid=$post[pid]{if !empty($_G[gp_modthreadkey])}&modthreadkey=$_G[gp_modthreadkey]{/if}&page=$page"><!--{if $_G['forum_thread']['special'] == 2 && !$post['message']}-->{lang post_add_aboutcounter}<!--{else}-->{lang edit}</a><!--{/if}-->
<!--{elseif $_G['uid'] && $post['authorid'] == $_G['uid']}-->
<a class="appendp" href="forum.php?mod=misc&action=postappend&tid=$post[tid]&pid=$post[pid]&extra=$_G[gp_extra]&page=$page" onClick="showWindow('postappend', this.href, 'get', 0)">{lang postappend}</a>
<!--{/if}-->
<!--{if $post['first'] && $post['invisible'] == -3}-->
<a class="psave" href="forum.php?mod=misc&action=pubsave&tid=$_G[tid]">{lang published}</a>
<!--{/if}-->
<!--{if $post['invisible'] == -2 && !$post['first']}-->
<span class="xg1">({lang moderate_need})</span>
<!--{/if}-->
<!--{if $post['first'] && $allowblockrecommend}--><a class="push" href="javascript:;" onclick="modaction('recommend', '$_G[forum_firstpid]', 'op=recommend&idtype={if $_G[forum_thread][isgroup]}gtid{else}tid{/if}&id=$_G[tid]&pid=$post[pid]', 'portal.php?mod=portalcp&ac=portalblock')">{lang modmenu_blockrecommend}</a><!--{/if}-->
<!--{hook/viewthread_postfooter $postcount}-->
</em>

<p>
<!--{if $post['invisible'] == 0}-->
<!--{if $_G['setting']['magicstatus']}-->
<a href="javascript:;" id="mgc_post_$post[pid]" onmouseover="showMenu(this.id)" class="showmenu">{lang thread_magic}</a>
<!--{/if}-->

<!--{if $_G['forum_thread']['special'] == 3 && ($_G['forum']['ismoderator'] && (!$_G['setting']['rewardexpiration'] || $_G['setting']['rewardexpiration'] > 0 && ($_G[timestamp] - $_G['forum_thread']['dateline']) / 86400 > $_G['setting']['rewardexpiration']) || $_G['forum_thread']['authorid'] == $_G['uid']) && $post['authorid'] != $_G['forum_thread']['authorid'] && $post['first'] == 0 && $_G['uid'] != $post['authorid'] && $_G['forum_thread']['price'] > 0}-->
<a href="javascript:;" onclick="setanswer($post['pid'], '$_G[gp_from]')">{lang reward_set_bestanswer}</a>
<!--{/if}-->

<!--{if !$post['first'] && $_G['group']['raterange'] && $post['authorid']}-->
<a href="javascript:;" onclick="showWindow('rate', 'forum.php?mod=misc&action=rate&tid=$_G[tid]&pid=$post[pid]', 'get', -1);return false;">{lang rate}</a>
<!--{/if}-->

<!--{if $post['rate'] && $_G['forum']['ismoderator']}-->
<a href="forum.php?mod=misc&action=removerate&tid=$_G[tid]&pid=$post[pid]&page=$page" onclick="showWindow('rate', this.href, 'get', -1)">{lang removerate}</a>
<!--{/if}-->
<!--{if $post['authorid'] != $_G['uid']}-->
<a href="javascript:;" onclick="showWindow('miscreport$post[pid]', 'misc.php?mod=report&rtype=post&rid=$post[pid]&tid=$_G[tid]&fid=$_G[fid]', 'get', -1);return false;">{lang report}</a>
<!--{/if}-->
<!--{/if}-->
</p>

<!--{if $_G['setting']['magicstatus']}-->
<ul id="mgc_post_$post[pid]_menu" class="p_pop mgcmn" style="display: none;">
<!--{if $post['first']}-->
<!--{if !empty($_G['setting']['magics']['bump'])}-->
<li><a href="home.php?mod=magic&mid=bump&idtype=tid&id=$_G[tid]" id="a_bump" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/bump.small.gif" />$_G['setting']['magics']['bump']</a></li>
<!--{/if}-->
<!--{if !empty($_G['setting']['magics']['stick'])}-->
<li><a href="home.php?mod=magic&mid=stick&idtype=tid&id=$_G[tid]" id="a_stick" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/stick.small.gif" />$_G['setting']['magics']['stick']</a></li>
<!--{/if}-->
<!--{if !empty($_G['setting']['magics']['close'])}-->
<li><a href="home.php?mod=magic&mid=close&idtype=tid&id=$_G[tid]" id="a_stick" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/close.small.gif" />$_G['setting']['magics']['close']</a></li>
<!--{/if}-->
<!--{if !empty($_G['setting']['magics']['open'])}-->
<li><a href="home.php?mod=magic&mid=open&idtype=tid&id=$_G[tid]" id="a_stick" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/open.small.gif" />$_G['setting']['magics']['open']</a></li>
<!--{/if}-->
<!--{if !empty($_G['setting']['magics']['highlight'])}-->
<li><a href="home.php?mod=magic&mid=highlight&idtype=tid&id=$_G[tid]" id="a_stick" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/highlight.small.gif" />$_G['setting']['magics']['highlight']</a></li>
<!--{/if}-->
<!--{if !empty($_G['setting']['magics']['sofa'])}-->
<li><a href="home.php?mod=magic&mid=sofa&idtype=tid&id=$_G[tid]" id="a_stick" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/sofa.small.gif" />$_G['setting']['magics']['sofa']</a></li>
<!--{/if}-->
<!--{if !empty($_G['setting']['magics']['jack'])}-->
<li><a href="home.php?mod=magic&mid=jack&idtype=tid&id=$_G[tid]" id="a_jack" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/jack.small.gif" />$_G['setting']['magics']['jack']</a></li>
<!--{/if}-->
<!--{hook/viewthread_magic_thread}-->
<!--{/if}-->
<!--{if !empty($_G['setting']['magics']['repent']) && $post['authorid'] == $_G['uid'] && !$rushreply}-->
<li><a href="home.php?mod=magic&mid=repent&idtype=pid&id=$post[pid]:$_G[tid]" id="a_repent_$post[pid]" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/bump.small.gif" />$_G['setting']['magics']['repent']</a></li>
<!--{/if}-->
<!--{if !empty($_G['setting']['magics']['anonymouspost']) && $post['authorid'] == $_G['uid']}-->
<li><a href="home.php?mod=magic&mid=anonymouspost&idtype=pid&id=$post[pid]:$_G[tid]" id="a_anonymouspost_$post[pid]" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/anonymouspost.small.gif" />$_G['setting']['magics']['anonymouspost']</a><li>
<!--{/if}-->
<!--{if !empty($_G['setting']['magics']['namepost'])}-->
<li><a href="home.php?mod=magic&mid=namepost&idtype=pid&id=$post[pid]:$_G[tid]" id="a_namepost_$post[pid]" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/namepost.small.gif" />$_G['setting']['magics']['namepost']</a><li>
<!--{/if}-->
<!--{hook/viewthread_magic_post $postcount}-->
</ul>
<script type="text/javascript" reload="1">checkmgcmn('post_$post[pid]')</script>
<!--{/if}-->
</div>
</div>
<!--{/if}-->