vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Variables in other forum templates (https://vborg.vbsupport.ru/showthread.php?t=188059)

Flamma 08-13-2008 07:41 PM

Variables in other forum templates
 
Hello,

Is there any way to use variables for vBulletin inside a different template such as the footer template? My sidebar is located in the footer template (starts off in the header, loops into the footer).

I'd like to include variables such as the forum statistics variables (members, posts, threads etc.)


I'm also wondering why this happens with the sidebar:

it's fine on the main view, threadbit but on postbit it does this:

http://www.grabup.com/uploads/84aba7...2c8.png?direct


http://www.grabup.com/uploads/67132d...b26.png?direct

See how in the postbit(the bottom screenshot) is smaller?
All of the default values are the same concerning the postbit template and any of the main view templates.

Help is greatly appreciated.

--------------- Added [DATE]1218673642[/DATE] at [TIME]1218673642[/TIME] ---------------

No help whatsoever?:(

Marco van Herwaarden 08-14-2008 05:45 AM

I don't understand how these screenprints relate to variables?

But variables might only be available on certain pages.

Flamma 08-14-2008 05:48 PM

The screenshots were related to a different issue, which I stated - but I fixed them.

I need the variables to be available in other templates to work.

Marco van Herwaarden 08-15-2008 05:52 AM

IT will depend on the variable and where it is set. Some might only be available on certain pages, some might be available only late in a script (so can not be used in templates that are loaded before the variable is assigned)

Flamma 08-15-2008 01:04 PM

$activeusers
$totalthreads

The ones that are located in the what's going on box basically, I want them to go into the footer template

Marco van Herwaarden 08-16-2008 10:13 AM

Those variables are not available on all pages, so not really suitable to be placed in the footer.


All times are GMT. The time now is 01:56 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.00948 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)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