The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
I am going to run a promotion on my forum where i will give a free domain to the top poster between two dates, these need to be defined by me. If there a hack that will let me show a table of top posters between these two dates? Thanks Matthew |
#2
|
||||
|
||||
![]()
Hmm, if it's just for you, you can simply run a query in phpmyadmin:
[sql]SELECT DISTINCT(userid),COUNT(postid) AS posts FROM post WHERE userid > 0 AND post.dateline>=startdate AND post.dateline<=enddate GROUP BY userid ORDER BY posts DESC[/sql] you'll get the userids then (at least you should ![]() |
#3
|
|||
|
|||
![]()
Thanks!
that would be fine, but where do i enter the dates? or could you explain dateline to me ![]() Thanks Matthew |
#4
|
||||
|
||||
![]()
you should use the mktime function of php to get the dateline
http://www.php.net/manual/en/function.mktime.php |
#5
|
|||
|
|||
![]()
thanks
![]() |
#6
|
|||
|
|||
![]()
i cant do it! Could anyone explain it in lamens terms for me
![]() Thanks Matthew |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|