The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Moving "Currently Active Users" from FORUMHOME to FOOTER
I'm modifying a vB setup in a relatively radical way; at the end of the day, it will be spartan and look very different from 'normal' vB setups. One thing I've been asked to do is move the "Currently Active Users" (the 'loggedinusers' list) out of the "What's Going On" box (which is being deleted) and down to the FOOTER section, right above the "Contact Us - FAQ - etc." bar.
The weird thing is that the code works fine when it's in the FORUMHOME template, but it doesn't when it's in the FOOTER template. When it's in FOOTER then all the variables are missing. So instead of saying "Most users ever online was 5, 08-28-2004 at 05:48 PM." like it should, it says "Most users ever online was , at ." Which is really annoying. In fact, if I leave the exact same code in both the FORUMHOME and FOOTER at the same time, then it displays properly up in the FORUMHOME section but not in the FOOTER SECTION. When I say "same code" I'm referring to everything between the HTML Code:
<!-- logged-in users --> ... <!-- end logged-in users --> Does anyone know why this is happening?? I thought that all $ variables, such as: HTML Code:
<phrase 1="$recordusers" 2="$recorddate" 3="$recordtime"> $vbphrase[most_users_ever_online_was_x_y_at_z] </phrase> <div>$activeusers</div> |
#2
|
||||
|
||||
the footer template is being evaluated before those variables are given values, somewhere in global.php i think. You can try moving the whole WOL part out of index.php to global above the spot where the footer template is evaluated.
|
#3
|
|||
|
|||
Quote:
Thanks for the info! |
#4
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|