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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已解决] 帖子内容页面左侧信息栏修改教程

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


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 等等

如图:




大家手动的试试呗,有问题可以楼下跟帖,这里注意修改完成以后 后台更新下缓存,特别注意修改之前请备份好原文件



本帖子中包含更多资源

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

x

评分

2

查看全部评分

 楼主| 下砂 发表于 2012-4-17 16:20:32 | 显示全部楼层
保留沙发
回复

使用道具 举报

64243354 发表于 2012-4-17 16:20:58 | 显示全部楼层
抢SF
回复

使用道具 举报

北北″ 发表于 2012-4-17 16:21:00 | 显示全部楼层
不是沙发...
回复

使用道具 举报

花到飞靡 发表于 2012-4-17 16:21:03 | 显示全部楼层
表示你们的速度不是一般的快···············
回复

使用道具 举报

qichengzx 发表于 2012-4-17 16:22:09 | 显示全部楼层
前排、。。。
回复

使用道具 举报

bobofashion 发表于 2012-4-17 16:23:34 | 显示全部楼层
前排支持。,
回复

使用道具 举报

腐朽的木头 发表于 2012-4-17 16:26:02 | 显示全部楼层
有么有左边变右边的教程?
回复

使用道具 举报

 发表于 2012-4-17 16:31:21
转播微博[tthread=mingvs520mm, 刘灼明]http://app.qlogo.cn/mbloghead/de6950b2e180d1810f1e[/tthread]
回复

使用道具

肥爺 发表于 2012-4-17 16:33:15 | 显示全部楼层
啊 居然没叫上我 杜杜
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-28 11:19 , Processed in 0.222825 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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