vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Have custom pages, no active users (https://vborg.vbsupport.ru/showthread.php?t=137994)

VodkaFish 01-31-2007 12:50 AM

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.

webmazter 01-31-2007 03:13 AM

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']
I haven't tested. :)

VodkaFish 01-31-2007 03:41 AM

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.

webmazter 01-31-2007 08:44 AM

not that simple.

You need to update the session table with the current location of the user.

VodkaFish 02-02-2007 03:48 AM

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.

VodkaFish 02-07-2007 05:57 PM

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:

eval('print_output("' fetch_template('BLANK') . '");'); 

I haven't been able to find exactly how my other pages that don't use print_output are updating the session table, but they are. I just hope this doesn't bog down the site any, as these pages are pretty active.


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
  • Page Generation 0.01698 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete