![]() |
Have custom pages, no active users
I've built some custom pages off of vb. The pages include global.php, call some templates, but anyone who visits these pages isn't listed on the active users list. Do I need to include another file? Is it possible to define where the users are in each page? Or maybe through a few hooks? One thing to note: these pages are not within the main forum directory.
|
you will need to update the session to include where they're currently on your site.
I think the variable is this Code:
$userinfo['location'] |
Thanks for the suggestion. I tried setting that ($userinfo['location'] = "wherever";) on my page, above where global.php is called, and the user still isn't listed.
|
not that simple.
You need to update the session table with the current location of the user. |
Is there another page you can suggest I look at? I'd love to have a code sample to work off of.
I thought any inclusion of global.php added a user to the active users table. I'm really confused since I have one page where users do wind up on the list and I'm not sure exactly what code is triggering it. |
Well, I haven't made much progress, but I have found a workaround. I create a blank template and then call it at the end of everything I do:
PHP Code:
|
All times are GMT. The time now is 08:26 PM. |
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:
|