The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Ok.
I'm in the process of writing a new hack, and I'm hoping to include a 'member of the month' function to it. I've been thinking of different ways to do this (preferably without Cron Jobs), and thought I'd come up with a solution, but I'm having problems. The motm is determined by a condition attached to each post. Basically, the way I thought I'd do it is (pseudocode): Code:
if (currentmonth != storedmonth) query_first( SELECT username, userid FROM user WHERE dateline <= todaysdate AND dateline >= a month ago ORDER BY condition DESC ) } Anyone any ideas on how I can do this? As a temp mock-up, I've used: Code:
WHERE p.dateline >= $today-(60*60*24*30) AND p.dateline <= $today-(60*60*24) I did try: Code:
WHERE ".date('mY',."p.dateline".)." = $currentmonth I hope this makes some sort of sense. I know I've been a little vague, but I don't wish to give too much away at this point. But if people need more info I will do my best to comply ![]() Hwu |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|