The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
This would be a cool idea..
NOrmally on a forum you tend to get 10 or so people that ALWAYS post more and are so far ahead the top XX posters overall doesnlt ever change.. If it reset each week it would give newbies a chance to have their name on there.. Can this be done? Pretty please? |
#2
|
||||
|
||||
That is an AWESOME idea.
Amy |
#3
|
|||
|
|||
Anyone ?
|
#4
|
|||
|
|||
yahoooo!
Firefly whiped up some code for this one.. Code:
<?php error_reporting(7); require("./global.php"); // how many users would like to display? $usernum="10"; // path to your vBulletin? (no trailing slash please) $pathtovb="http://www.wannabebigforums.com"; // timeframe? (in days) $days="7"; $userlist=""; $datecut=time()-($days*24*60*60); $allusers=$DB_site->query("SELECT userid,username,COUNT(postid) AS count FROM post WHERE dateline>='$datecut' AND userid<>'0' GROUP BY userid ORDER BY count DESC LIMIT $usernum"); while ($user=$DB_site->fetch_array($allusers)) { $userlist.="<tr>\n <td align=\"center\" bgcolor=\"#ffffff\" style=\"color: #000000; font-family: Verdana,Helvetica,sans-serif; font-size: 8pt\"><a href=\"/member.php?&action=getinfo&userid=$user[userid]\" style=\"color: #336699\">$user[username]</a></td>\n <td align=\"center\" bgcolor=\"#ffffff\" style=\"color: #000000; font-family: Verdana,Helvetica,sans-serif; font-size: 8pt\">$user[count]</td>\n</tr>\n"; } echo "<table>"; echo "$userlist"; echo "</table>"; ?> Thanks Firefly!!!!!!!! |
#5
|
|||
|
|||
thats a neat idea but where wud u put that code???
|
#6
|
|||
|
|||
How would i make that actively show in forumhome?
|
#7
|
||||
|
||||
yep, works like a charm, thanks Firefly!
|
#8
|
||||
|
||||
Put it in it's own PHP file...to include in forumhome, open your 'phpinclude' template and change the file paths to the new file you just made, then use the variable from phpinclude in the template.
|
#9
|
|||
|
|||
theres hardly any code in my phpinclude template
and whats the name of the variable to insert in forum home? |
#10
|
|||
|
|||
ok go to your phpinclude file...
add the following ob_start(); require("/home/xxxxxx/www/new.php"); $noreplytopic = ob_get_contents(); ob_end_clean(); where /home/xxxxxx/www/new.php = the path to the file with the code in... Also $noreplytopic = the variable you wish to use. You will also need to remove this line in the code if you are going to be doing this: require("./global.php"); If you need any help let me know |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|