The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I am using a php file to display the top ten posters:
PHP Code:
![]() My question is, is there a way to set this so it displays the top posters of the last 7 days and the number of posts during that time period? I had tried changing some things and got the top list for last 7 days, but it would only display the total number of posts, not just for those 7 days.. I hope Im making sense. |
#2
|
|||
|
|||
![]()
I did something like this only I calculate based on the past 24 hours.
PHP Code:
Change the line: $lts = $uts - (86401); to: $its = $uts - (604800); Then add the templats: highpost, and highpostbit. In the highpost bit you can use $user[userid] $user[username] and $user[count]. What this will also do, if there are less then $numberHighPostPerPage top posters it will fill the remaining slots with "Unclaimed". This is a part of the site integration script I am writing for my site. |
#3
|
|||
|
|||
![]()
Using
PHP Code:
I get parse errors? Quote:
|
#4
|
|||
|
|||
![]()
hey leadZERO
Can you post your templates? |
#5
|
|||
|
|||
![]()
The reason why you are getting parse errors is not because of a coding error on anyone's part.
It is a problem that vBulletin currently has with [ php ] blocks and escaped characters... watch this: Code:
eval("\$bits .= \"".gettemplate("bit")."\";"); PHP Code:
|
#6
|
|||
|
|||
![]()
I did manage to get rid of the parse errors..
![]() ![]() |
#7
|
|||
|
|||
![]()
Templates:
~highpost <table width="165" border="0" cellspacing="0" cellpadding="0"> $highpostbits </table> ~highpostbit <tr bgcolor="#370000"> <td width="5"><img src="/images/spacer.gif" width="5"></td> <td><a href="/forum/member.php?s=$session[sessionhash]&action=getinfo&userid=$user[userid]"><font color="#E0E0E0">$user[username]</font></a></td> <td>$user[count]</td> <td width="5"><img src="/images/spacer.gif" width="5"></td> </tr> Those are copied straight from my templates, so just ignore things like my spacer GIF. |
#8
|
|||
|
|||
![]()
Works great leadZERO, I appreciate the help!
|
#9
|
|||
|
|||
![]() Quote:
|
#10
|
|||
|
|||
![]()
The \ is missing before $bits
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|