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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已答复] 7.2有关viewthread_node.htm修改问题

[复制链接]
z44739774 发表于 2010-3-17 20:24:46 | 显示全部楼层 |阅读模式
本帖最后由 cr180 于 2010-3-22 15:29 编辑

下了个
Viewthread_node.htm注释版 For Discuz!7.1【091120】
,然后想删点东西。结果不管删什么,更新了缓存以后,帖子都是内部服务器错误,无法显示了


我想不显示游客IP。
删除
<!--*如果为游客发帖 显示 游客 IP字样*-->
                        <!--{if !$post['authorid']}-->
                                <a href="javascript:;">{lang guest} <em>$post[useip]</em></a>

去除打印和字体大小
删除
<!--*楼主那楼 显示打印链接*-->
                                        <!--{if $post['first']}-->
                                                blank" class="print left">{lang thread_printable}</a>

<!--*字体大小*-->
                                                <!--{if MSGBIGSIZE}-->
                                                        <div class="msgfsize right">
                                                                <label>{lang font_zoom}: </label><small onclick="$('postlist').className='mainbox viewthread'" title="{lang common}">t</small><big onclick="$('postlist').className='mainbox viewthread t_bigfont'" title="{lang zoom_in}">T</big>
                                                        </div>
                                                <!--{/if}-->

去除发帖时间那栏
删除
<!--*用户组图标*-->
                                <!--{if !$post['anonymous'] && $_DCACHE['groupicon'][$post['groupid']]}-->
                                        <img class="authicon" id="authicon$post[pid]" src="$_DCACHE['groupicon'][$post['groupid']]" onclick="showauthor(this, 'userinfo$post[pid]')" />
                                <!--{else}-->
                                        <img class="authicon" id="authicon$post[pid]" src="images/common/online_member.gif" onclick="showauthor(this, 'userinfo$post[pid]');" />
                                <!--{/if}-->

                                <!--{if $post['authorid'] && !$post['anonymous']}-->


<!--*后台>界面>界面设置>帖子内容页>作者用户名显示位置,这里设置为显示在帖子内部的话 用户名在帖子内容上显示 如Discuz官方这样*-->
                                        <!--{if !$authoronleft}--><a href="space.php?uid=$post[authorid]" class="posterlink" target="_blank">$post[author]</a><!--{/if}-->{$pluginhooks[viewthread_postheader][$postcount]}
                                       
<!--*发表时间*-->                                       
                                        <em id="authorposton$post[pid]">{lang poston} $post[dateline]</em>

<!--*只看该作者*-->
                                        <!--{if !$authorid}-->
                                                 | <a href="viewthread.php?tid=$post[tid]&amp;page=$page&authorid=$post[authorid]" rel="nofollow">{lang thread_show_author}</a>

<!--*在只看该作者下 显示"查看全部帖子" 即切换按钮*-->
                                        <!--{else}-->
                                                         | <a href="viewthread.php?tid=$post[tid]&amp;page=$page" rel="nofollow">{lang thread_show_all}</a>
                                        <!--{/if}-->

<!--*匿名和发帖时间*-->
                                <!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}-->
                                        {lang anonymous} {$pluginhooks[viewthread_postheader][$postcount]}<em id="authorposton$post[pid]">{lang poston} $post[dateline]</em>
                                <!--{elseif !$post['authorid'] && !$post['username']}-->

<!--*游客和发帖时间*-->
                                        {lang guest} {$pluginhooks[viewthread_postheader][$postcount]}<em id="authorposton$post[pid]">{lang poston} $post[dateline]</em>
                                <!--{/if}-->
                                </div>
                        </div>
                </div>
                <div class="defaultpost">



急求高人解决。
为什么会出错啊??????????
 楼主| z44739774 发表于 2010-3-17 22:33:31 | 显示全部楼层
没人理我吗|?
回复

使用道具 举报

 楼主| z44739774 发表于 2010-3-18 00:47:02 | 显示全部楼层
dingdingdingdingding
回复

使用道具 举报

 楼主| z44739774 发表于 2010-3-18 09:38:59 | 显示全部楼层
|??????????????
回复

使用道具 举报

肥爺 发表于 2010-3-18 14:02:24 | 显示全部楼层
你删除的地方 带有if判断的
必须完整包括else或if闭合才可以

楼主是新手吧?最好是把您要删除的部分说出来
我来给您代码再删除
回复

使用道具 举报

 楼主| z44739774 发表于 2010-3-18 23:18:11 | 显示全部楼层
我是新手 - -
我想把主题全部多余的全删了。只有帖子上面有名字,名字上面要个发帖。然后就帖子,最后来个回复,然后页数。  其他 只看该作者 打印 字体大小 统统不要
回复

使用道具 举报

 楼主| z44739774 发表于 2010-3-19 01:01:47 | 显示全部楼层
本帖最后由 z44739774 于 2010-3-19 01:07 编辑

主要是
用户组图标
  1.                                 <!--{if !$post['anonymous'] && $_DCACHE['groupicon'][$post['groupid']]}-->
  2.                                         <img class="authicon" id="authicon$post[pid]" src="$_DCACHE['groupicon'][$post['groupid']]" onclick="showauthor(this, 'userinfo$post[pid]')" />
  3.                                 <!--{else}-->
  4.                                         <img class="authicon" id="authicon$post[pid]" src="images/common/online_member.gif" onclick="showauthor(this, 'userinfo$post[pid]');" />
  5.                                 <!--{/if}-->

  6.                                 <!--{if $post['authorid'] && !$post['anonymous']}-->
复制代码
倒序看帖。。
不知道什么代码

还有游客发帖显示IP,显示发帖时间,显示发帖     人为游客,都去掉
回复

使用道具 举报

 楼主| z44739774 发表于 2010-3-19 12:51:28 | 显示全部楼层
ding       来人啊
回复

使用道具 举报

 楼主| z44739774 发表于 2010-3-20 06:28:46 | 显示全部楼层
soso|!!!!!!!!!
回复

使用道具 举报

 楼主| z44739774 发表于 2010-3-21 06:50:00 | 显示全部楼层
。。。。。。。。。。。。。。。。。来来
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-10-5 08:46 , Processed in 0.246713 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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