求这种插件

查看: 11203|回复: 32
许多人求这种在首页四格下加一行今日发贴排行的插件.
安装方法:安装好首页四格后的朋友可以直接修改。无需上传附件.
简易程度:相当简单。
可按以下方法直接
第一步:修改index.php(修改前请先做好备份,以防万一)
查找$rsshead = $rssstatus复制代码在其上的代码前会有一段标识:/ /----首页多格代码开始& &//----首页多格代码结束复制代码在 //----首页多格代码结束 前加入//今日发贴排行
$tomonth=date(n);
$todate=date(j);
$toyear=date(Y);
$time=mktime(0,0,0,$tomonth,$todate,$toyear);
$query=$db-&query(&select count(pid) as num,authorid,author from $tablepre&.&posts where dateline&=$time group by authorid order by num desc limit 0,10&);
while($result=$db-&fetch_array($query)){
& && &&&$poststar.=&&a href=space.php?uid=&.$result[authorid].&&&.cutstr($result[author],10).&&/a& &font color=red&[&.$result[num].&]&/font&&&&;
}复制代码我的四格是在index.php&&里引用index_four.php文件。和我相同的朋友可以编辑index_four.php文件
在& && &&&writetocache(&showother&, '', $curdata);复制代码前加入://今日发贴排行
$tomonth=date(n);
$todate=date(j);
$toyear=date(Y);
$time=mktime(0,0,0,$tomonth,$todate,$toyear);
$query=$db-&query(&select count(pid) as num,authorid,author from $tablepre&.&posts where dateline&=$time group by authorid order by num desc limit 0,10&);
while($result=$db-&fetch_array($query)){
& && &&&$poststar.=&&a href=space.php?uid=&.$result[authorid].&&&.cutstr($result[author],10).&&/a& &font color=red&[&.$result[num].&]&/font&&&&;
}复制代码第二步:修改templates/你使用模板目录下/discuz.htm文件:
找到:&/table&
&/div&
&!-- 首页多格代码结束 --&复制代码在之前加入:&tr&
&td colspan=4&今日发贴TOP10:$poststar&/td&
&/tr&复制代码安装完成!
————————————————————————————————————————————————————————
如果希望在四格下加入三行发贴排行展示的朋友可把第一步加入代码换成
1.//今日发贴排行
$tomonth=date(n);
$todate=date(j);
$toyear=date(Y);
$time=mktime(0,0,0,$tomonth,$todate,$toyear);
$query=$db-&query(&select count(pid) as num,authorid,author from $tablepre&.&posts where dateline&=$time group by authorid order by num desc limit 0,10&);
while($result=$db-&fetch_array($query)){
& && &&&$poststar.=&&a href=space.php?uid=&.$result[authorid].&&&.cutstr($result[author],10).&&/a& &font color=red&[&.$result[num].&]&/font&&&&;
}
//本月发贴排行
$tomonth=date(n);
$toyear=date(Y);
$time=mktime(0,0,0,$tomonth,0,$toyear);
$query=$db-&query(&select count(pid) as num,authorid,author from $tablepre&.&posts where dateline&=$time group by authorid order by num desc limit 0,10&);
while($result=$db-&fetch_array($query)){
& && &&&$monthpoststar.=&&a href=space.php?uid=&.$result[authorid].&&&.cutstr($result[author],10).&&/a& &font color=red&[&.$result[num].&]&/font&&&&;
}
//当年发贴排行
$toyear=date(Y);
$time=mktime(0,0,0,0,0,$toyear);
$query=$db-&query(&select count(pid) as num,authorid,author from $tablepre&.&posts where dateline&=$time group by authorid order by num desc limit 0,10&);
while($result=$db-&fetch_array($query)){
& && &&&$yearpoststar.=&&a href=space.php?uid=&.$result[authorid].&&&.cutstr($result[author],6).&&/a& &font color=red&[&.$result[num].&]&/font&&&&;
}复制代码同时把第二步加入代码换成&tr&
&td colspan=4&今日发贴TOP10:$poststar&/td&
&/tr&
&tr&
&td colspan=4&本月发贴TOP10:$monthpoststar&/td&
&/tr&
&tr&
&td colspan=4&当年发贴TOP10:$yearpoststar&/td&
&/tr&复制代码更新缓存!
——————————————————————————————————————
有问题可以PM我。或Q我80155
贴内我给出的是针对不同情况的2种方法,请做修改的时候仔细按步骤来。
[ 本帖最后由 keigo583 于
05:54 编辑 ]
(91.31 KB, 下载次数: 215)
16:49 上传
自己坐个沙发
板凳我来做
谢谢LZ分享
不错哦.我正想要叱.
回复 1# 的帖子
不错哦,等会我也来试试
晕死,我的INDEX.PHP里怎么没有“$rsshead = $rssstatus。”
不错,顶一个。
按照楼主的方法安装后出现重复的POP榜单,是怎么回事呢,请高手指教!
我的论坛:
发贴之星截图.jpg (37.05 KB, 下载次数: 239)
22:50 上传
Powered by求这种软件!!(@再也没有什么合战了)… | 蛋花儿 趣图
Login登录蛋花儿 (
)下次自动登录 |WOW求这种插件_百度知道
提问者采纳
已经发送给你
或者留个邮箱再发试试
已经发送给你
其他类似问题
其他3条回答
这就是多玩墨盒啊,只不过使用了墨盒内置的动作条移动,还有把法术计时等插件改动了
看起来就是多玩魔盒,插件内置的设置稍作个人改动了,动作条、法术计时器什么的,自己调整的。
这个需要自己调整界面设置。多研究一下多玩也能整理成这样
但是建议使用单个插件进行整合,这样不拖运行速度,自己想要的操作界面也出的来
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁求这种插件_iphone4s吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:542,171贴子:
求这种插件收藏
锁屏后解锁的时候滑动的那个方块。可以让它变成肥皂之类的。并且可以去掉滑动槽的插件
ib…可以实现上述
不用插件。路径美化无压力。。不费电不费流量不出错。
登录百度帐号我的游戏推荐游戏
后查看最近玩过的游戏
为兴趣而生,贴吧更懂你。或

我要回帖

更多关于 集合石插件 的文章

 

随机推荐