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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[插件] 最新四格调用(最新话题/最新回复/热门话题/精华文章)+美化+作者[FOR 4.1]

[复制链接]
loveks 发表于 2006-5-1 15:05:19 | 显示全部楼层
不可以用啊。加入之后,可以显示但进不了子论坛,提示:指定的子论坛不存在请返回!
帮帮忙!!!非常感谢!论坛是:discuz.4.1

[ 本帖最后由 loveks 于 2006-5-1 19:24 编辑 ]
回复

使用道具 举报

whatever 发表于 2006-5-5 17:17:02 | 显示全部楼层
请问能不能加一个会员排行呢?
回复

使用道具 举报

dyan2004 发表于 2006-5-5 21:12:45 | 显示全部楼层
谢谢,已经做好了。
回复

使用道具 举报

kook12368 发表于 2006-5-9 17:03:41 | 显示全部楼层
//---------------hack Meminfo start
if(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "MSIE 6.0")) {
                $visitor_browser = "Internet Explorer 6.0";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "MSIE 5.5")) {
                $visitor_browser = "Internet Explorer 5.5";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "MSIE 5.0")) {
                $visitor_browser = "Internet Explorer 5.0";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "MSIE 4.01")) {
                $visitor_browser = "Internet Explorer 4.01";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "NetCaptor")) {
                $visitor_browser = "NetCaptor";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Netscape")) {
                $visitor_browser = "Netscape";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Lynx")) {
                $visitor_browser = "Lynx";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Opera")) {
                $visitor_browser = "Opera";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Konqueror")) {
                $visitor_browser = "Konqueror";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Mozilla")) {
                $visitor_browser = "Mozilla";
        } else {
                $visitor_browser = "其它";
        }
//上面的是浏览器//
        if(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "NT 5.1")) {
                $visitor_os = "Windows XP";
        }elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "NT 5.2")) {
                $visitor_os = "Windows Server 2003";
        }elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "NT 5")) {
                $visitor_os = "Windows 2000";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "4.9")) {
                $visitor_os = "Windows ME";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "NT 4")) {
                $visitor_os = "Windows NT 4.0";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "98")) {
                $visitor_os = "Windows 98";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "95")) {
                $visitor_os = "Windows 95";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Mac")) {
                $visitor_os = "Mac";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Linux")) {
                $visitor_os = "Linux";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "Unix")) {
                $visitor_os = "Unix";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "FreeBSD")) {
                $visitor_os = "FreeBSD";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "SunOS")) {
                $visitor_os = "SunOS";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "BeOS")) {
                $visitor_os = "BeOS";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "OS/2")) {
                $visitor_os = "OS/2";
        } elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "PC")) {
                $visitor_os = "Macintosh";
        }elseif(strpos($HTTP_SERVER_VARS[HTTP_USER_AGENT], "AIX")) {
                $visitor_os = "AIX";
        } else {
                $visitor_os = "其他";
        }

这有用到吗,我感觉不出来,,你用在哪里了?
回复

使用道具 举报

dzxw 发表于 2006-5-10 12:33:12 | 显示全部楼层

此插件有一个小小的bug!

我安装过后,发现“热门话题”的最后回复人和“精华文章”的作者的名称正确,可是实际链接到的往往是另外一个人的。
经过仔细研究作者的帖子,终于发现了问题,并最终解决。方案如下

在index.htm查找:


<!--{loop $new_hot_threadlist $mthread}-->
<table border=0 width='100%' cellspacing=2><tr><td height=12 width='78%'><FONT face=Wingdings>z</FONT>
<a href="viewthread.php?tid=$mthread[tid]" $mthread['highlight'] title="热门话题 {LF}所在论坛: $mthread[forumname]{LF}主题标题: $mthread[subject]{LF}主题作者: $mthread[author]{LF}发表时间: $mthread[date]{LF}浏览次数: $mthread[views] 次{LF}回复次数: $mthread[replies] 次{LF}最后回复: $mthread[lastreplytime]{LF}{lang lastpost}: $mthread[lastposter]">$mthread[view_subject]</a></td><td> <a href="viewpro.php?username=$rthread[lastposter]" class="smalltxt">$mthread[view_lastposter]</a></td></tr></table>
<!--{/loop}-->
</td>
<td class="altbg1">
<!--{loop $new_digest_threadlist $dthread}-->
<table border=0 width='100%' cellspacing=2><tr><td height=12 width='78%'><FONT face=Wingdings>z</FONT>
<a href="viewthread.php?tid=$dthread[tid]"  $dthread['highlight'] title="精华文章 {LF}所在论坛: $dthread[forumname]{LF}主题标题: $dthread[subject]{LF}主题作者: $dthread[author]{LF}发表时间: $dthread[date]{LF}浏览次数: $dthread[views] 次{LF}回复次数: $dthread[replies] 次{LF}最后回复: $dthread[lastreplytime]{LF}{lang lastpost}: $dthread[lastposter]">$dthread[view_subject]</a></td><td> <a href="viewpro.php?username=$rthread[lastposter]" class="smalltxt">$dthread[view_author]</a></td></tr></table>
<!--{/loop}-->
</td></tr>
</table><br>
</div>



请注意红色的部分!!!
将第一个$rthread改成$mthread,将$rthread[lastposter]改成$dthread[author]即可,这应该是作者粗心大意造成的:)

[ 本帖最后由 dzxw 于 2006-5-15 22:40 编辑 ]
回复

使用道具 举报

fan5858 发表于 2006-5-10 18:22:08 | 显示全部楼层
谢谢,太好了
回复

使用道具 举报

chenxiwei 发表于 2006-5-14 14:13:14 | 显示全部楼层
郁闷啊.改了后出现乱码了怎么回事?
回复

使用道具 举报

chenxiwei 发表于 2006-5-14 14:40:28 | 显示全部楼层
晕了.怎么回事会乱码呢?
回复

使用道具 举报

gn01752 发表于 2006-6-15 00:15:13 | 显示全部楼层
原帖由 拒買日本貨 於 2006-4-20 20:52 發表
隨機精華...................呢???

這個重要呀.................

繼續頂,.,,,,,,,,,,,,,,,,,,,,樓主上來的話....幫幫忙.




是呀...這個個重要

隨機精華..請大幫幫忙..快快拿出來@@"


環有!!怎麼設一區內的貼仔不在 四格出現??
回复

使用道具 举报

alonsoz 发表于 2006-6-17 09:53:51 | 显示全部楼层
谢谢楼主!
很好用的阿
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-19 12:28 , Processed in 0.095792 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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