帖子内容页面左侧信息栏修改教程

有很多童鞋问我下列图片中红框中  主题,听众,积分怎么修改城其他的?这里是可以的修改的,来我们来看下修改的过程。
<ignore_js_op> 

1.我们首先知道这块代码文件在那里\template\default\forum\viewthread_node.htm
  1.             <div class="tns xg2">
  2.                 <table cellspacing="0" cellpadding="0">
  3.                     <th><p><a href="home.php?mod=space&uid=$post[authorid]&do=thread&view=me&from=space" class="xi2"><!--{echo dnumber($post[threads])}--></a></p>{lang threads}</th>
  4.                     <th>
  5.                         <!--{if helper_access::check_module('follow')}-->
  6.                         <p><a href="home.php?mod=follow&do=follower&uid=$post[authorid]" class="xi2"><!--{echo dnumber($post[follower])}--></a></p>{lang follower}
  7.                         <!--{else}-->
  8.                         <p><a href="home.php?mod=space&uid=$post[authorid]&do=friend&view=me" class="xi2"><!--{echo dnumber($post[friends])}--></a></p>{lang friends}
  9.                         <!--{/if}-->
  10.                     </th>
  11.                     <td><p><a href="home.php?mod=space&uid=$post[authorid]&do=profile" class="xi2"><!--{echo dnumber($post[credits])}--></a></p>{lang credits}</td>
  12.                 </table>
  13.             </div>
复制代码
2.给你们解释下对应代码是什么
$post[threads]=主题
$post[follower]=听众数量
$post[credits]=总积分

3.这里如果想修改字的话 在语言包文件内 source\language

4.这里我们举个列子修改下
修改主题数为帖子数
  1. <th><p><a href="home.php?mod=space&uid=$post[authorid]&do=thread&view=me&from=space" class="xi2"><!--{echo dnumber($post[posts])}--></a></p>{lang posts}</th>
复制代码
这里posts为帖子数,lang posts为语言 这里请注意修改的时候请结合语言包来修改。

修改总积分为金币
  1. <td><p><a href="home.php?mod=space&uid=$post[authorid]&do=profile" class="xi2"><!--{echo dnumber($post[extcredits2])}--></a></p>$_G['setting']['extcredits'][2]['title']</td>
复制代码
这里extcredits2 为扩展积分 默认程序显示的为金钱    $_G['setting']['extcredits'][2]['title']  这里的2为扩展积分 比如extcredits1 extcredits2 extcredits3 等等

如图:
<ignore_js_op> 



大家手动的试试呗,有问题可以楼下跟帖,这里注意修改完成以后 后台更新下缓存,特别注意修改之前请备份好原文件
posted @ 2014-01-26 15:08  alibabaidu  阅读(299)  评论(0编辑  收藏  举报