删除上一主题 下一主题打印,并添加上一篇下一篇功能!
1.删除上一主题下一主题还有打印功能,打开模版目录./template/default/forum/viewthread.htm删除以下代码即可!
2.添加上一篇下一篇
打开 template/default/forum/viewthread_node_body.htm 模板文件,查找:
在上边添加:
打开 template/default/common/common.css 文件,在最下边添加:
我知道答案 回答被采纳将会获得1 贡献 已有2人回答
- <!--{if !IS_ROBOT}--> <div class="y"> <!--{if $post['invisible'] == 0}--><a href="forum.php?mod=viewthread&action=printable&tid=$_G[tid]" title="{lang thread_printable}" target="_blank"><img src="{IMGDIR}/print.png" alt="{lang thread_printable}" class="vm" /></a> <!--{/if}--> <a href="forum.php?mod=redirect&goto=nextoldset&tid=$_G[tid]" title="{lang last_thread}"><img src="{IMGDIR}/thread-prev.png" alt="{lang last_thread}" class="vm" /></a> <a href="forum.php?mod=redirect&goto=nextnewset&tid=$_G[tid]" title="{lang next_thread}"><img src="{IMGDIR}/thread-next.png" alt="{lang next_thread}" class="vm" /></a> </div> <!--{/if}-->
打开 template/default/forum/viewthread_node_body.htm 模板文件,查找:
- <!--{elseif $_G[forum_thread][special] == 1}-->
- <!--上一篇下一篇--> <!--{eval $next_t=DB::fetch_first("SELECT tid,subject from ".DB::table('forum_thread')." where fid='$_G[fid]' and tid>'$_G[tid]' and displayorder >= 0 order by tid asc limit 1");}--> <!--{eval $up_t=DB::fetch_first("SELECT tid,subject from ".DB::table('forum_thread')." where fid='$_G[fid]' and tid<'$_G[tid]' and displayorder >= 0 order by tid desc limit 1");}--> <div class="t_navigation"> <p class="up_t"> <em>上一篇:</em> <!--{if empty($up_t)}--> <span copycode($('code_ybb'));">复制代码
- /*----------上一篇下一篇----------*/.t_navigation a{ font-size: 14px; color:#333; vertical-align: middle; text-decoration: none;}.t_navigation a:hover{ color:red;}.up_t{ margin:20px 0 10px 0; overflow: hidden; line-height: 22px;}.up_t em{ font-size: 12px; color:#ffffff; padding: 1px 9px 3px 7px; margin:0 10px 5px 0; background: #3DA2C2; border-radius:4px 4px 4px 4px;}.next_t{ margin:5px 0 5px 0; overflow: hidden; line-height: 22px;}.next_t em{ font-size: 12px; color:#ffffff; padding: 1px 9px 3px 7px; margin:0 10px 5px 0; background: #3DA2C2; border-radius:4px 4px 4px 4px;}/*----------上一篇下一篇end----------*/
我知道答案 回答被采纳将会获得1 贡献 已有2人回答