The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hello, with this:
Code:
$maxtime = TIMENOW - $vbulletin->options['cookietimeout'];
$login = $vbulletin->db->query_first("
SELECT count(*) as number, host as host
FROM " . TABLE_PREFIX . "session
WHERE lastactivity >= $maxtime
AND userid = " . $vbulletin->userinfo[userid] . " GROUP BY number");
Can anyone help me? Thanks a lot Myself Code:
$maxtime = TIMENOW - $vbulletin->options['cookietimeout'];
$login = $vbulletin->db->query_first("
SELECT count(DISTINTC host) as host
FROM " . TABLE_PREFIX . "session
WHERE lastactivity >= $maxtime
AND userid = " . $vbulletin->userinfo[userid] . "");
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|