vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Call up $activeusers in templates... don't work... (https://vborg.vbsupport.ru/showthread.php?t=81876)

suryoyena 05-22-2005 11:02 PM

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

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

Quote:

Originally Posted by Paul M
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


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
  • Page Generation 0.01183 seconds
  • Memory Usage 1,718KB
  • 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_quote_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