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

 找回密码
 立即注册
搜索

[已解决] X1.5如何设置横排显示版主

[复制链接]
lian26680 发表于 2010-10-22 18:25:02 | 显示全部楼层 |阅读模式
问题描述
适用版本: Discuz! X1.5
浏览器: IE6 
使用模板: 其他模板(请在回帖中说明模板的名称或者是模板的下载地址)
BUG地址: 横排显示版主
在论坛找好很资料都没合适,请教高手如何设置横排显示版主,只要显示版主就可以,如何修改代码,谢谢。
回复

使用道具 举报

cr180 发表于 2010-11-18 12:07:47 | 显示全部楼层
本帖最后由 cr180 于 2010-11-18 12:10 编辑
lian26680 发表于 2010-10-22 18:25
在论坛找好很资料都没合适,请教高手如何设置横排显示版主,只要显示版主就可以,如何修改代码,谢谢。
文件:template\default\forum\discuz.htm

查找:

  1. <dd>
  2. <!--{if $forum['permission'] == 1}-->
  3. {lang private_forum}
  4. <!--{else}-->
  5. <!--{if $forum['redirect']}-->
  6. <a href="$forumurl" class="xi2">{lang url_link}</a>
  7. <!--{elseif is_array($forum['lastpost'])}-->
  8. <!--{if $cat['forumcolumns'] < 3}-->
  9. <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--></cite>
  10. <!--{else}-->
  11. <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
  12. <!--{/if}-->
  13. <!--{else}-->
  14. {lang never}
  15. <!--{/if}-->
  16. <!--{/if}-->
  17. </dd>
复制代码




改为:

<dd>
         <!--{if $forum['permission'] == 1}-->
          {lang private_forum}
         <!--{else}-->
          <!--{if $forum['redirect']}-->
           <a href="$forumurl" class="xi2">{lang url_link}</a>
          <!--{elseif is_array($forum['lastpost'])}-->
           <!--{if $cat['forumcolumns'] < 3}-->
            <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--></cite>
           <!--{else}-->
            <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
           <!--{/if}-->
          <!--{else}-->
           {lang never}
          <!--{/if}-->
         <!--{/if}-->
                                    <!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
         </dd>


蓝色代码就是版主相关变量
回复

使用道具 举报

642332128 发表于 2010-10-23 00:33:07 | 显示全部楼层
界面设置>论坛首页设置里不就可以设置么?

弱弱的AD下:
有其它问题建议去www.okzz.org寻求帮助
好站长
-资源不多、但都是精品
-会员不多、但都是好站长
主旨-互相帮助、实现共同进步,相互分享、实现资源共享。
-----------拒绝RP低劣的站长加入
回复

使用道具 举报

特种兵 发表于 2010-11-17 20:37:43 | 显示全部楼层
楼上的发广告能发到这个地步也不容易啊,就你这样解释什么界面设置,什么首页的,怎么能吸引人去?我们只去实实在在的地方,真正有用的地方。就你这样模模糊糊的还“拒绝人品低劣的站长加入”呢....
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-6 08:48 , Processed in 0.120249 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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