找回密码
 立即注册

QQ登录

只需一步,快速开始

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

2024-10-31 22:38| 发布者: f5db4| 查看: 113| 评论: 1

摘要: 如何让分类信息内容一直显示,意思就是访客、设在购买主题的帖子 分类信息 内容依然显示。我在模板里 viewthread_node_body.htm 找到了这段分类信息代码,我把这段代码移到的模板的顶端,可以实现了此功能,但是有个


如何让分类信息内容一直显示,意思就是访客、设在购买主题的帖子 分类信息 内容依然显示。
我在模板里 viewthread_node_body.htm 找到了这段分类信息代码,我把这段代码移到的模板的顶端,可以实现了此功能,但是有个问题就是,所有回复的帖子也会显示这个分类,但我这需要主题显示即可。。这个不知如何解决?请高手指教下。。。
  1.   <!--{if $threadsort && $threadsortshow}-->
  2.                         <!--{if $threadsortshow['typetemplate']}-->
  3.                                 $threadsortshow[typetemplate]
  4.                         <!--{elseif $threadsortshow['optionlist']}-->
  5.                                 <div class="typeoption">
  6.                                         <!--{if $threadsortshow['optionlist'] == 'expire'}-->
  7.                                                 {lang has_expired}
  8.                                         <!--{else}-->
  9.                                                 <table summary="{lang threadtype_option}" cellpadding="0" cellspacing="0" class="cgtl mbm">
  10.                                                         <caption>$_G[forum][threadsorts][types][$_G[forum_thread][sortid]]</caption>
  11.                                                         <tbody>
  12.                                                                 <!--{loop $threadsortshow['optionlist'] $option}-->
  13.                                                                         <!--{if $option['type'] != 'info'}-->
  14.                                                                                 <tr>
  15.                                                                                         <th>$option[title]:</th>
  16.                                                                                         <td><!--{if $option['value'] !== ''}-->$option[value] $option[unit]<!--{else}-->-<!--{/if}--></td>
  17.                                                                                 </tr>
  18.                                                                         <!--{/if}-->
  19.                                                                 <!--{/loop}-->
  20.                                                         </tbody>
  21.                                                 </table>
  22.                                         <!--{/if}-->
  23.                                 </div>
  24.                         <!--{/if}-->
  25.                 <!--{/if}-->



来源:https://www.dismall.com/thread-23937-1-1.html
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
发表评论

最新评论

引用 44f6fa4f5 2024-10-31 23:41
通过多次摸索,终于找到了解决方法,供大家参考:解决方法: \template\default\forum\viewthread_node_body.htm29-53行代码删除,将以下代码粘贴到顶部第二行 <div class="pcb"> 代码下即可。<!--{if $post['first']}-->                 <!--{if $threadsort && $threadsortshow}-->                        <!--{if $threadsortshow['typetemplate']}-->                                $threadsortshow[typetemplate]                        <!--{elseif $threadsortshow['optionlist']}-->                                <div class="typeoption">                                        <!--{if $threadsortshow['optionlist'] == 'expire'}-->                                                {lang has_expired}                                        <!--{else}-->                                                <table summary="{lang threadtype_option}" cellpadding="0" cellspacing="0" class="cgtl mbm">                                                        <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}--> <!--{/if}-->

查看全部评论(1)

关闭

站长推荐上一条 /6 下一条

QQ|手机版|小黑屋|梦想之都-俊月星空 ( 粤ICP备18056059号 )|网站地图

GMT+8, 2025-9-5 05:59 , Processed in 0.029739 second(s), 19 queries .

Powered by Mxzdjyxk! X3.5

© 2001-2025 Discuz! Team.

返回顶部