找回密码
 注册
查看: 1207|回复: 0

关于帖子分类信息的问题?

[复制链接]

12

主题

0

回帖

228

积分

新生儿

积分
228
发表于 2024-10-31 14:21:45 来自手机 | 显示全部楼层 |阅读模式 来自:广东省广州市 电信
如何让分类信息内容一直显示,意思就是访客、设在购买主题的帖子 分类信息 内容依然显示。
我在模板里 viewthread_node_body.htm 找到了这段分类信息代码,我把这段代码移到的模板的顶端,可以实现了此功能,但是有个问题就是,所有回复的帖子也会显示这个分类,但我这需要主题显示即可。。这个不知如何解决?请高手指教下。。。

  •   <!--{if $threadsort && $threadsortshow}-->
  •                         <!--{if $threadsortshow['typetemplate']}-->
  •                                 $threadsortshow[typetemplate]
  •                         <!--{elseif $threadsortshow['optionlist']}-->
  •                                 <div class=&quot;typeoption&quot;>
  •                                         <!--{if $threadsortshow['optionlist'] == 'expire'}-->
  •                                                 {lang has_expired}
  •                                         <!--{else}-->
  •                                                 <table summary=&quot;{lang threadtype_option}&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;cgtl mbm&quot;>
  •                                                         <caption>$_G[forum][threadsorts][types][$_G[forum_thread][sortid]]</caption>
  •                                                         <tbody>
  •                                                                 <!--{loop $threadsortshow['optionlist'] $option}-->
  •                                                                         <!--{if $option['type'] != 'info'}-->
  •                                                                                 <tr>
  •                                                                                         <th>$option[title]:</th>
  •                                                                                         <td><!--{if $option['value'] !== ''}-->$option[value] $option[unit]<!--{else}-->-<!--{/if}--></td>
  •                                                                                 </tr>
  •                                                                         <!--{/if}-->
  •                                                                 <!--{/loop}-->
  •                                                         </tbody>
  •                                                 </table>
  •                                         <!--{/if}-->
  •                                 </div>
  •                         <!--{/if}-->                <!--{/if}-->



来源:https://www.dismall.com/thread-23937-1-1.html
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

  • 关注公众号
  • 有偿服务微信
  • 有偿服务QQ

QQ|小黑屋|宝丽爱婴育儿网 ( 湘ICP备18010684号-1 )

GMT+8, 2026-3-2 10:07 , Processed in 0.074310 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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