网站之家技术交流论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1056|回复: 0

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

[复制链接]
发表于 2017-6-16 01:01:22 | 显示全部楼层 |阅读模式
有很多童鞋问我下列图片中红框中  主题,听众,积分怎么修改城其他的?这里是可以的修改的,来我们来看下修改的过程。



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. 这里posts为帖子数,lang posts为语言 这里请注意修改的时候请结合语言包来修改。

  2. 修改总积分为金币
复制代码
这里extcredits2 为扩展积分 默认程序显示的为金钱    $_G['setting']['extcredits'][2]['title']  这里的2为扩展积分 比如extcredits1 extcredits2 extcredits3 等等

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

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

本版积分规则

小黑屋|手机版|Archiver|网站之家技术交流论坛 ( 粤ICP备09092995号 )

GMT+8, 2024-5-3 23:59 , Processed in 0.082867 second(s), 6 queries , File On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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