Discuz教程网

解决 Discuz X2.5 0701 抢楼活动未开始,-1楼已中奖的显示问题

[复制链接]
authicon dly 发表于 2012-8-25 13:33:49 | 显示全部楼层 |阅读模式
如果有遇到标题所示问题,可以按照以下3步来解决-1楼已中奖的问题。

1、打开文件:source/language/forum/lang_template.php
找到代码:
  1. 'thread_rushreply_rewardnum' => '个楼层已中奖',
复制代码

在它下面添加一行如下:
  1. 'thread_rushreply_noreward' => '暂时还没有楼层中奖',
复制代码

2、打开文件:source/module/forum/forum_viewthread.php
找到代码:
  1. $_G['forum_thread']['replies'] = $countrushpost = count($rushids) - 1;
复制代码

将代码替换为
  1. $_G['forum_thread']['replies'] = $countrushpost = max(0, count($rushids) - 1);
复制代码

3、打开文件:template/default/forum/viewthread.htm
找到代码:
  1. <!--{if $countrushpost}-->[<strong>$countrushpost</strong>]{lang thread_rushreply_rewardnum} <!--{/if}-->
复制代码

将其替换为:
  1. <!--{if $countrushpost}-->[<strong>$countrushpost</strong>]{lang thread_rushreply_rewardnum}<!--{else}--> {lang thread_rushreply_noreward} <!--{/if}-->
复制代码

然后上传覆盖更新缓存即可解决,如果有问题可以在站长互助版块发帖提问。

Discuz! X2.5 0701 后台开启“启用登录密码加密”后 前台登录页面报错
https://www.discuz.1314study.com/thread-76369-1-1.html



上一篇:Discuz X2.5 0701 后台开启“启用登录密码加密”后 前台登录页面报错
下一篇:解决 Discuz X2.5 0701 勋章设置后出现500错误,页面空白问题
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-2 12:35

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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