PDA

View Full Version : Variables in other forum templates


Flamma
08-13-2008, 07:41 PM
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/84aba734d0a6edd8767595fe1d5782c8.png?direct


http://www.grabup.com/uploads/67132dae71d23ab24d76664dc3bf4b26.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 1218673642 at 1218673642 ---------------

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.