木易 发表于 2024-10-31 14:21:45

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

如何让分类信息内容一直显示,意思就是访客、设在购买主题的帖子 分类信息 内容依然显示。
我在模板里 viewthread_node_body.htm 找到了这段分类信息代码,我把这段代码移到的模板的顶端,可以实现了此功能,但是有个问题就是,所有回复的帖子也会显示这个分类,但我这需要主题显示即可。。这个不知如何解决?请高手指教下。。。

[*]<!--{if $threadsort && $threadsortshow}-->
[*]                        <!--{if $threadsortshow['typetemplate']}-->
[*]                              $threadsortshow
[*]                        <!--{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[$_G]</caption>
[*]                                                      <tbody>
[*]                                                                <!--{loop $threadsortshow['optionlist'] $option}-->
[*]                                                                        <!--{if $option['type'] != 'info'}-->
[*]                                                                              <tr>
[*]                                                                                        <th>$option:</th>
[*]                                                                                        <td><!--{if $option['value'] !== ''}-->$option $option<!--{else}-->-<!--{/if}--></td>
[*]                                                                              </tr>
[*]                                                                        <!--{/if}-->
[*]                                                                <!--{/loop}-->
[*]                                                      </tbody>
[*]                                                </table>
[*]                                        <!--{/if}-->
[*]                              </div>
[*]                        <!--{/if}-->                <!--{/if}-->



来源:https://www.dismall.com/thread-23937-1-1.html
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
页: [1]
查看完整版本: 关于帖子分类信息的问题?