The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hi,
I would like to know which mySQL query I have to run to see all forums which have 0 posts for 1 month... Any help would be appreciated. |
|
#2
|
||||
|
||||
|
forums have a lastpost field which stores the dateline of the last post.
You thus need to grab the lastpost and check it against some measure of "month" one possibility: select forumid from forum where to_days(now()) - to_days(from_unixtime(lastpost)) > 30 |
|
#3
|
|||
|
|||
|
thanks, it works...
is there any way I can exclude some of the forums from search? |
|
#4
|
|||
|
|||
|
where forumid != x
|
|
#5
|
||||
|
||||
|
It'd be AND in this particular case, as there's already a WHERE statement.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|