Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[已答复] 如何通过改模板代码将帖子内容的左边部分去掉?

[复制链接]
3854335 发表于 2011-3-31 12:12:50 | 显示全部楼层 |阅读模式
我要改显示样式,要将下图这些东西去掉,改哪个源文件??

回复

使用道具 举报

cr180 发表于 2011-3-31 12:21:29 | 显示全部楼层
回复 3854335 的帖子

\template\default\forum\viewthread_node.htm
查找删除:
  1. <td class="pls" rowspan="2">                $post[newpostanchor] $post[lastpostanchor]                <!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->                        <!--{if $_G['setting']['authoronleft']}-->                                <div class="pi">                                        <div class="authi"><a href="home.php?mod=space&uid=$post['authorid']" target="_blank" class="xw1">$post[author]</a>$authorverifys</div>                                </div>                        <!--{/if}-->                <div class="p_pop blk bui" id="userinfo$post[pid]" style="display: none; {if $_G['setting']['authoronleft']}margin-top: -11px;{/if}">                        <div class="m z">                                <div id="userinfo$post[pid]_ma"></div>                                <ul>                                        <li class="pm2"><a href="home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_$post[authorid]&touid=$post[authorid]&pmid=0&daterange=2&pid=$post[pid]" onclick="hideMenu('userinfo$post[pid]');showWindow('sendpm', this.href)" title="{lang send_pm}">{lang send_pm}</a></li>                                        <!--{if $post[authorid] != $_G[uid]}-->                                                <li class="buddy"><a href="home.php?mod=spacecp&ac=friend&op=add&uid=$post[authorid]&handlekey=addfriendhk_{$post[authorid]}" id="a_friend_li_{$post[pid]}" onclick="showWindow(this.id, this.href, 'get', 1, {'ctrlid':this.id,'pos':'00'});">{lang add_to_buddylist}</a></li>                                        <!--{/if}-->                                </ul>                                <!--{if $_G['setting']['magicstatus']}-->                                        <!--{if !empty($_G['setting']['magics']['showip'])}-->                                                <img src="{STATICURL}/image/magic/showip.small.gif" class="vm" /> <a href="home.php?mod=magic&mid=showip&idtype=user&id={echo rawurlencode($post[author])}" id="a_showip_li_{$post[pid]}" onclick="showWindow(this.id, this.href)">$_G['setting']['magics']['showip']</a><br />                                        <!--{/if}-->                                        <!--{if !empty($_G['setting']['magics']['checkonline']) && $post['authorid'] != $_G['uid']}-->                                                <img src="{STATICURL}/image/magic/checkonline.small.gif" class="vm" /> <a href="home.php?mod=magic&mid=checkonline&idtype=user&id={echo rawurlencode($post[author])}" id="a_repent_$post[pid]" onclick="showWindow(this.id, this.href)">$_G['setting']['magics']['checkonline']</a><br />                                        <!--{/if}-->                                        <!--{hook/viewthread_magic_user $postcount}-->                                <!--{/if}-->                                <!--{hook/viewthread_profileside $postcount}-->                        </div>                        <div class="i y">                                <div>                                        <strong><a href="home.php?mod=space&uid=$post[authorid]" target="_blank">$post[author]</a></strong>                                        <!--{if $_G['setting']['vtonlinestatus'] && $post['authorid']}-->                                                <!--{if ($_G['setting']['vtonlinestatus'] == 2 && $_G[forum_onlineauthors][$post[authorid]]) || ($_G['setting']['vtonlinestatus'] == 1 && (TIMESTAMP - $post['lastactivity'] <= 10800) && !$post['authorinvisible'])}-->                                                        <em>{lang online}                                                <!--{else}-->                                                        <em>{lang offline}                                                <!--{/if}-->                                                </em>                                        <!--{/if}-->                                </div>                                <dl class="cl">{$post[custominfo][menu]}</dl>                                <div class="imicn">                                        <!--{if $post['qq']}--><a href="http://wpa.qq.com/msgrd?V=1&Uin=$post[qq]&Site=$_G['setting']['bbname']&Menu=yes" target="_blank" title="QQ"><img src="{IMGDIR}/qq.gif" alt="QQ" /></a><!--{/if}-->                                        <!--{if $post['icq']}--><a href="http://wwp.icq.com/scripts/search.dll?to=$post[icq]" target="_blank" title="ICQ"><img src="{IMGDIR}/icq.gif" alt="ICQ" /></a><!--{/if}-->                                        <!--{if $post['yahoo']}--><a href="http://edit.yahoo.com/config/send_webmesg?.target=$post[yahoo]&.src=pg" target="_blank" title="Yahoo"><img src="{IMGDIR}/yahoo.gif" alt="Yahoo!"  /></a><!--{/if}-->                                        <!--{if $post['taobao']}--><a href="javascript:;" onclick="window.open('http://amos.im.alisoft.com/msg.aw?v=2&uid='+encodeURIComponent('$post[taobaoas]')+'&site=cntaobao&s=2&charset=utf-8')" title="{lang taobao}"><img src="{IMGDIR}/taobao.gif" alt="{lang taobao}" /></a><!--{/if}-->                                        <!--{if $post['site']}--><a href="$post[site]" target="_blank" title="{lang member_homepage}"><img src="{IMGDIR}/forumlink.gif" alt="{lang member_homepage}"  /></a><!--{/if}-->                                        <a href="home.php?mod=space&uid=$post[authorid]&do=profile" target="_blank" title="{lang member_viewpro}"><img src="{IMGDIR}/userinfo.gif" alt="{lang member_viewpro}"  /></a>                                        <!--{hook/viewthread_imicons $postcount}-->                                </div>                                <div id="avatarfeed"><span id="threadsortswait"></span></div>                        </div>                </div>                <!--{/if}-->                <!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->                        <div>                        <!--{if $_G['setting']['bannedmessages'] & 2 && ($post['memberstatus'] == '-1' || ($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || ($post['status'] & 1))}-->                                <div class="avatar">{lang member_avatar_banned}</div>                        <!--{elseif $post['avatar'] && $showavatars}-->                                <div class="avatar" onmouseover="showauthor(this, 'userinfo$post[pid]')"><a href="home.php?mod=space&uid=$post[authorid]" target="_blank">$post[avatar]</a></div>                        <!--{/if}-->                        <!--{if $post[groupicon]}--><p>$post[groupicon]</p><!--{/if}-->                        <p><em><a href="home.php?mod=spacecp&ac=usergroup&gid=$post[groupid]" target="_blank">{$post[authortitle]}</a></em></p>                        <!--{if $post['customstatus'] && $_G['group']['allowcstatus']}--><p class="xg1">$post[customstatus]</p><!--{/if}-->                        </div>                        <p{if $post['upgradecredit'] !== false} id="g_up$post[pid]" onmouseover="showMenu({'ctrlid':this.id, 'pos':'12'});"{/if}><!--{eval showstars($post['stars']);}--></p>                        <!--{if $post['upgradecredit'] !== false}-->                                <div id="g_up$post[pid]_menu" class="g_up" style="display:none">                                        <div class="crly">                                                $post['authortitle'], {lang credits} $post['credits'], {lang thread_groupupgrade} $post['upgradecredit'] {lang credits}                                        </div>                                        <div class="mncr"></div>                                </div>                        <!--{/if}-->                        <!--{hook/viewthread_sidetop $postcount}-->                        <!--{if $post[custominfo][left]}--><dl class="pil cl">{$post[custominfo][left]}</dl><!--{/if}-->                        <!--{if $post['medals']}--><p>                                <!--{loop $post['medals'] $medal}-->                                <img src="{STATICURL}image/common/$medal[image]" alt="$medal[name]" title="$medal[name]" />                                <!--{/loop}--></p>                        <!--{/if}-->                        <!--{hook/viewthread_sidebottom $postcount}-->                <!--{else}-->                        <div class="pi">                        <!--{if !$post['authorid']}-->                                <a href="javascript:;">{lang guest} <em>$post[useip]</em></a>                        <!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}-->                                <!--{if $_G['forum']['ismoderator']}--><a href="home.php?mod=space&uid=$post[authorid]" target="_blank">{lang anonymous}</a><!--{else}-->{lang anonymous}<!--{/if}-->                        <!--{else}-->                                $post[author] <em>{lang member_deleted}</em>                        <!--{/if}-->                        </div>                <!--{/if}-->                <!--{if $_G['group']['allowedituser'] || $_G['group']['allowbanuser'] || ($_G['forum']['ismoderator'] && $_G['group']['allowviewip'] && !$post['first'])}-->                        <p>                                <!--{if $_G['forum']['ismoderator'] && $_G['group']['allowviewip']}-->                                        <a href="forum.php?mod=topicadmin&action=getip&fid=$_G[fid]&tid=$_G[tid]&pid=$post[pid]" onclick="ajaxmenu(this, 0, 0, 2);doane(event)">IP</a>&nbsp;                                <!--{/if}-->                                <!--{if $_G['group']['allowedituser']}-->                                        <a href="{if $_G['adminid'] == 1}admin.php?frames=yes&action=members&operation=search&uid=$post[authorid]&submit=yes{else}forum.php?mod=modcp&action=member&op=edit&uid=$post[authorid]{/if}" target="_blank">{lang edit}</a>&nbsp;                                <!--{/if}-->                                <!--{if $_G['group']['allowbanuser']}-->                                        <!--{if $_G['adminid'] == 1}-->                                                <a href="admin.php?action=members&operation=ban&username=$post[usernameenc]&frames=yes" target="_blank">{lang ban_member}</a>&nbsp;                                        <!--{else}-->                                                <a href="forum.php?mod=modcp&action=member&op=ban&uid=$post[authorid]" target="_blank">{lang ban_member}</a>&nbsp;                                        <!--{/if}-->                                <!--{/if}-->                                <a href="forum.php?mod=modcp&action=thread&op=post&do=search&searchsubmit=1&users=$post[usernameenc]" target="_blank">{lang posts}</a>                        </p>                <!--{/if}-->        </td>
复制代码



  1. <td class="pls"></td>             (一共有两处相同代码需要删除)
复制代码



评分

2

查看全部评分

回复

使用道具 举报

cr180 发表于 2011-3-31 12:22:26 | 显示全部楼层
本帖最后由 cr180 于 2011-3-31 12:23 编辑

\template\default\forum\viewthread.htm
查找删除:
  1. <td class="pls">                                <!--{if $_G['page'] > 1}-->                                <div id="tath" class="cl">                                        <!--{if $_G[forum_thread][authorid] && $_G[forum_thread][author]}-->                                                <a href="home.php?mod=space&uid=$_G[forum_thread][authorid]" title="$_G[forum_thread][author]"><!--{avatar($_G[forum_thread][authorid],small)}--></a>                                                {lang thread_author}: <a href="home.php?mod=space&uid=$_G[forum_thread][authorid]" title="$_G[forum_thread][author]">$_G[forum_thread][author]</a>                                        <!--{else}-->                                                {lang thread_author}:                                                <!--{if $_G['forum']['ismoderator']}-->                                                        <a href="home.php?mod=space&uid=$_G[forum_thread][authorid]">{lang anonymous}</a>                                                <!--{else}-->                                                        {lang anonymous}                                                <!--{/if}-->                                        <!--{/if}-->                                </div>                                <!--{else}-->                                <div class="hm">                                        <span class="xg1">{lang show}:</span> $_G[forum_thread][views]<span class="pipe">|</span><span class="xg1">{lang reply}:</span> $_G[forum_thread][replies]                                </div>                                <!--{/if}-->                        </td>
复制代码



  1. <td class="pls"></td>
复制代码


  1. <td class="pls hm ptm pbm">                                <!--{if !IS_ROBOT}--><a href="forum.php?mod=redirect&goto=nextoldset&tid=$_G[tid]">&lsaquo; {lang last_thread}</a><span class="pipe">|</span><a href="forum.php?mod=redirect&goto=nextnewset&tid=$_G[tid]">{lang next_thread} <em>&rsaquo;</em></a><!--{/if}-->                        </td>
复制代码



评分

2

查看全部评分

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-9-10 07:52 , Processed in 0.117515 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表