The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
what is the lastpost in thread table format?
i need to select threads from the past 48 hours and where the lastpost is > 7 days i'm not sure the best way to do this. i have the following so far. Code:
$check=$vbulletin->db->query_read("
SELECT * from `" . TABLE_PREFIX . "thread`
WHERE `forumid` IN($from)
AND `lastpost` <= (TIMENOW - 7 DAYS)
AND `dateline` <= (TIMENOW - 2 days)");
thanks for your help! |
|
#3
|
|||
|
|||
|
i think i got it
i'll try <= '" . (TIMENOW - ($days * 86400)) . "' |
|
#4
|
||||
|
||||
|
That should work.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|