找回密码
 注册
查看: 2717|回复: 0
收起左侧

[分享] 回复帖子的时候,加上回复的楼层标记 DX1.5

[复制链接]

5412

主题

8453

帖子

1万

积分

管理员

出售国内外虚拟空间

Rank: 10Rank: 10Rank: 10

积分
14896
帖子
8453
精华
67
体力
14896 点
蓝豆
2391 点
注册时间
2007-6-8

终身成就奖LY官方团队会员身份ID卡

发表于 2010-11-8 13:18:32 | 显示全部楼层 |阅读模式
7.2时有的功能,x系列被去掉了,但是很实用,很有必要,能看出回复者回复的到底是哪个楼层
修改文件  source/include/post/post_new_reply.php

将 第218行
  1. $message = "[b]$language[post_reply] [url=forum.php?mod=redirect&goto=findpost&pid=$_G[gp_reppost]&ptid=$thapost[tid]]$thapost[author] $language[post_thread][/url][/b]";
复制代码
替换成
  1. $thapostnumber = DB::fetch_first("SELECT count(*) as lou FROM ".DB::table($posttable)." WHERE tid='$thapost[tid]' AND dateline<='$thapost[dateline]'"); //netfeiniao

  2. $message = "[b]$language[post_reply] $thapostnumber[lou] # [url=forum.php?mod=redirect&goto=findpost&pid=$_G[gp_reppost]&ptid=$thapost[tid]]$thapost[author] $language[post_thread][/url][/b]";
复制代码
出售国内或美国高性能虚拟空间,高速VPS以及服务器! 同时承接各种类型的网站制作,网站维护,支付宝交易安全放心!    联系QQ:6102031
懒得打字嘛,点击右侧快捷回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

网站公告上一条 /2 下一条

GMT+8, 2025-4-28 09:53 , Processed in 0.102231 second(s), 23 queries , Gzip On.

© 2006-2022 Powered by Discuz! X3.4

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