vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Variables Questions (https://vborg.vbsupport.ru/showthread.php?t=85609)

imported_JakeC 12-09-2002 05:38 AM

Variables Questions
 
What is the variable that calls the total number of guests and members currently online (if there is one)? I see one for each but not both. If there isn't one, how do I go about making one?

Also, I am trying to find the variable that is used to show the number of posts and threads since you last visited. What variables handle this or is it a hack?

Thanks in advance.

JakeC

Tony G 12-09-2002 08:29 AM

Guests online - $numberguest
Members online - $numberregistered

That total posts since last visit etc. is a mod, so you'll need to install it before the variables can be used

imported_JakeC 12-09-2002 12:48 PM

I reread my post just now and it did not get across what I really wanted to know. Is there a total users online? What I mean is if there are 12 guests and 12 members online, I would like it to say 24 users online. Is there a way to combine the two?

Thanks for the information on the mod, I'll head over to the dark side and grab it.

Another quick question, is there a list floating around with all of the standard vB variables and what they correspond to? Someone must have compiled one by now I would think. If not, maybe I should compile one and post it.

Thanks.

JakeC

imported_JakeC 12-09-2002 02:07 PM

One other problem is that some of the Variables will show up and some will not. The table I am creating is in the welcometext template. The $unreadpm, $newusername, and the $allpm work fine but the $activeusers, and the $recordusers will not show up. Is this a parsing (not sure what that is) issue? Any advice would be very much appreciated.

JakeC

Cypher720 12-09-2002 09:54 PM

i believe the variable you are lookig for is $onlineuser(s) - not sure if there is an "s"

im not sure about your other problem...ill take a look

Tony G 12-09-2002 11:01 PM

Maybe because those variables only work in the Who's online templates.

Cypher720 12-09-2002 11:02 PM

is that true...or are you asking that??

Tony G 12-09-2002 11:05 PM

It's true.

imported_JakeC 12-10-2002 01:13 AM

aha, so how do I get them to work, or do I need to go to vbulletin.org?

JakeC

filburt1 12-10-2002 01:23 AM

If a variable doesn't show up then it's probably not in scope when that template is eval'ed, in which case you usually need a hack.


All times are GMT. The time now is 02:42 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.01148 seconds
  • Memory Usage 1,723KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete