View Full Version : Call up $activeusers in templates... don't work...
suryoyena
05-22-2005, 11:02 PM
Hi,
I wrote a template which will be open from a php-file in my forumroot.
I want to list all onlineusers with $activeusers, like in FORUMHOME on the bottom.
But it don't work... Why? Must I include something in my php file to recognize $activeusers?
:ermm:
chris
Marco van Herwaarden
05-23-2005, 10:12 AM
If you want this to work in a custom php-file, you will have to duplicate the functions that fill those var's in the original files.
Paul M
05-23-2005, 11:09 AM
The code for $activeusers is only in index.php, so it won't work anywhere else without hacking it.
suryoyena
05-23-2005, 01:43 PM
The code for $activeusers is only in index.php, so it won't work anywhere else without hacking it.
Any hint..? Don't know how to begin.
Chris
Paul M
05-23-2005, 02:12 PM
Just so I understand what you have done - have you written your own, seperate, xxxxx.php file that you link to from somewhere ? If so, you will need to add some online users code to it. Either write your own or copy it from index.php.
suryoyena
05-23-2005, 02:55 PM
Yes I wrote my own x.php file and want to use the $onlineusers
I copied the source from the index.php, but I get errors. After fix some errors the arrays are empty. It's very confusing. Now I'm looking into the code of the cmps portal onlineusers block. ..
Chris
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.