The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
[sql]SELECT username FROM user ORDER BY posts DESC LIMIT 1;[/sql]
|
#12
|
||||
|
||||
never mind did it ^^
PHP Code:
PHP Code:
anyone? |
#13
|
|||
|
|||
You will have to limit to the rows with a dateline later then the current time minus cookie timeout.
|
#14
|
||||
|
||||
Quote:
|
#15
|
|||
|
|||
To put it more simple. Rows are added to the session table all the time. The table gets cleaned again once an hour (i think by default) by a scheduled task.
A user is 'online' however if his last action (page load) was less the the cookie timeout ago. So if the cookie timeout is set to 900 (seconds, 15 minutes, default), then you only want to rows from the session table of the last 900 seconds. |
#16
|
||||
|
||||
yea but the time it shows in the table is a huge number like 8 digits
How would i make it just count the rows with userid > 0 |
#17
|
|||
|
|||
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|