![]() |
Putting the NUMBER of users online on forum on a non-vB page?
I just want to have something on a webpage which is not in my forum's directory, which will say: XX Users online in forum!
How do I grab that number? |
Stick this code somewhere on the page maybe?
PHP Code:
Regards - miSt |
You need global.php too though...
Would using phpinclude to include global.php then use that code work? |
Of course you have to include global.php :)
But do it in the file and not the phpinclude template - miSt |
obviously not the php include template :p
|
You could:
1) include() config.php 2) connect to the database 3) SELECT count(*) as count FROM session |
Quote:
|
PHP Code:
|
Is the 3600 in there the timeout? Say if I have timeout set at 900 seconds on my forums, would I change it to 900 in that code?
|
Yup.
|
All times are GMT. The time now is 11:17 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:
|