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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[展示] 影响淘帖的两块代码

[复制链接]
志在必得008 发表于 2012-11-29 16:46:11 | 显示全部楼层 |阅读模式
之前我的模板不显示淘帖按钮,找了很多帖子也没有人给出答复应该在哪里改,代码在哪里,所以写出来给大家。经过加上这两块就可以用了,有问题请在这两块找问题
文件template\default\forum\viewthread_node.htm


第一块
  1. <!--{if helper_access::check_module('collection') && !$_G['forum']['disablecollect']}-->
  2. <!--{if $post['relatecollection']}-->
  3. <div class="cm">
  4. <h3 class="psth xs1">{lang collection_related}</h3>
  5. <ul class="mbw xl xl2 cl">
  6. <!--{loop $post['relatecollection'] $var}-->
  7. <li>· <a href="forum.php?mod=collection&action=view&ctid=$var[ctid]" title="$var[name]" target="_blank" class="xi2 xw1">$var[name]</a><span class="pipe">|</span><span class="xg1">{lang collection_threadnum}: $var[threadnum], {lang collection_follow}: $var[follownum]</span></li>
  8. <!--{/loop}-->
  9. <!--{if $post['releatcollectionmore']}-->
  10. <li>· <a href="forum.php?mod=collection&tid=$_G[tid]" target="_blank" class="xi2 xw1">{lang more}</a></li>
  11. <!--{/if}-->
  12. </ul>
  13. </div>
  14. <!--{if $post['sourcecollection']['ctid']}-->
  15. <div>
  16. {lang collection_fromctid}
  17. <form action="forum.php?mod=collection&action=comment&ctid={$ctid}&tid={$_G[tid]}" method="POST" class="ptm pbm cl">
  18. <input type="hidden" name="ratescore" id="ratescore" />
  19. <span class="clct_ratestar">
  20. <span class="btn">
  21. <a href="javascript:;" onmouseover="rateStarHover('clct_ratestar_star',1)" onmouseout="rateStarHover('clct_ratestar_star',0)" onclick="rateStarSet('clct_ratestar_star',1,'ratescore')">1</a>
  22. <a href="javascript:;" onmouseover="rateStarHover('clct_ratestar_star',2)" onmouseout="rateStarHover('clct_ratestar_star',0)" onclick="rateStarSet('clct_ratestar_star',2,'ratescore')">2</a>
  23. <a href="javascript:;" onmouseover="rateStarHover('clct_ratestar_star',3)" onmouseout="rateStarHover('clct_ratestar_star',0)" onclick="rateStarSet('clct_ratestar_star',3,'ratescore')">3</a>
  24. <a href="javascript:;" onmouseover="rateStarHover('clct_ratestar_star',4)" onmouseout="rateStarHover('clct_ratestar_star',0)" onclick="rateStarSet('clct_ratestar_star',4,'ratescore')">4</a>
  25. <a href="javascript:;" onmouseover="rateStarHover('clct_ratestar_star',5)" onmouseout="rateStarHover('clct_ratestar_star',0)" onclick="rateStarSet('clct_ratestar_star',5,'ratescore')">5</a>
  26. </span>
  27. <span id="clct_ratestar_star" class="star star$memberrate"></span>
  28. </span>
  29. <button type="submit" value="submit" class="pn"><span>{lang collection_rate}</span></button>
  30. </form>
  31. </div>
  32. <!--{/if}-->
  33. <!--{/if}-->
  34. <!--{/if}-->
复制代码
第二块
  1. <!--{if !$_G['forum']['disablecollect'] && helper_access::check_module('collection')}-->
  2. <a href="forum.php?mod=collection&action=edit&op=addthread&tid=$_G[tid]" id="k_collect" onclick="showWindow(this.id, this.href);return false;" onmouseover="this.title = $('collectionnumber').innerHTML + ' {lang activity_member_unit}{lang collection}'"><i><img src="{IMGDIR}/collection.png" alt="{lang thread_share}" />{lang collection}<span id="collectionnumber">{$post['releatcollectionnum']}</span></i></a>
  3. <!--{/if}-->
复制代码
lovenr 发表于 2013-7-31 11:03:35 | 显示全部楼层
感谢分享。 {:soso_e179:}
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-15 03:00 , Processed in 0.025078 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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