如下图所示,默认的Discuz PC端模板,帖子内容页标题下方有“只看大图”,倒序浏览和阅读模式选择功能。

实际在用户访问过程中,这个些功能都很少用到,尤其是倒序浏览功能,已通过修改系统设置,同意设定为了倒序排列。
既然用不到,为了优化网页结构,那么就可以删除这部分内容。

找到/template/模板名/forum/viewthread_node.htm模板文件并打开

找到如下代码,并删除

  1. <!–{if !IS_ROBOT && !$_G[‘forum_thread’][‘archiveid’] && $post[‘first’] }–>
  2.                                         <!–{if $_G[‘forum_thread’][‘attachment’] == 2 && $_G[‘group’][‘allowgetimage’] && (!$_G[‘setting’][‘guestviewthumb’][‘flag’] || $_G[‘setting’][‘guestviewthumb’][‘flag’] && $_G[‘uid’])}–>
  3.                                                 <span class=”pipe”>|</span><a href=”forum.php?mod=viewthread&tid=$_G[tid]&from=album”>{lang view_bigpic}</a>
  4.                                         <!–{/if}–>
  5.                                                 <span class=”none”><img src=”{IMGDIR}/arw_r.gif” class=”vm” alt=”{lang replycredit}” /></span>
  6.                                         <!–{if !$rushreply}–>
  7.                                                 <!–{if $ordertype != 1}–>
  8.                                                         <span class=”pipe show”>|</span><a href=”forum.php?mod=viewthread&tid=$_G[tid]&extra=$_GET[extra]&ordertype=1″  class=”show”>{lang post_descview}</a>
  9.                                                 <!–{else}–>
  10.                                                         <span class=”pipe show”>|</span><a href=”forum.php?mod=viewthread&tid=$_G[tid]&extra=$_GET[extra]&ordertype=2″  class=”show”>{lang post_ascview}</a>
  11.                                                 <!–{/if}–>
  12.                                         <!–{/if}–>
  13.                                 <!–{/if}–>
  14.                                 <!–{if $post[‘first’]}–>
  15.                                 <span class=”pipe show”>|</span><a href=”javascript:;” onclick=”readmode($(‘thread_subject’).innerHTML, $post[pid]);” class=”show”>{lang read_mode}</a>
  16.                                 <!–{/if}–>

复制代码

点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论

微信小程序

微信扫一扫体验

立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部