![]() |
Thanks For Your Help
But can you post the whole code? I didnt understand your directions! Thanks |
Sorry, I changed the code but it shows me 0members and 0 visitors!
;) You are on the right way, but there should be one mistake... |
Couldnt get it to work either
|
Hmm. I noticed the 0 people yesterday, with different settings.
Just tried out: I just changed "$datecut = time()-$cookietimeout;" into "$datecut = time()-300;" And that worked. It just means it shows who's online in the last 5 minutes... Can it be that the $cookietimeout query doesn't return a number but plain text? |
This works. I have the timeout settings on 500 seconds in the vbulletin board, so the working skript looks now like that: (remember the right path to the admin/config file!)
Code:
<? |
Hey Peter, I tried your exact code,
and it listed 3 members online, But the thing is.... it'sa test board and I only have 2 members total! I don't think it works. Can anyone make this actually list the members name like in the index.php file? |
hmm, thats right, something is more wrong, i have nearly the right results like in the vbulletib forum, but only nearly, so i thought at the beginning, the code is right. Sorry, I was to fast ;)
|
Quote:
Quote:
OK after a bit of scratching my head, I think I have this thing figured out. Code:
<? |
Now it lists 0 members and 0 guests online
|
1 Attachment(s)
OK I figured it out, finally. Change the code as follows. Replace this:
Code:
$cookietimeout = mysql_query("SELECT value FROM setting WHERE varname = 'cookietimeout'"); Code:
$cookievalue = mysql_query("SELECT value FROM setting WHERE varname = 'cookietimeout'"); Code:
<? include("/path/to/online.php"); ?> Code:
<!--#include virtual="/path/to/online.php"--> Problems? Let me know. It should work now. :) |
All times are GMT. The time now is 07:42 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|