![]() |
Call up $activeusers in templates... don't work...
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 |
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.
|
The code for $activeusers is only in index.php, so it won't work anywhere else without hacking it.
|
Quote:
Any hint..? Don't know how to begin. Chris |
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.
|
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 |
All times are GMT. The time now is 07:34 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:
|