The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Custom Pages/Template Help
Thanks for taking a few moments,
I understand how to create basic templates & external vb pages and include vb vars into those templates/pages. What I am now strugling with is how to create more advanced templates to be able to take advantage of some of the more advanced vb internals. If you could assist me with a simple example I will likely be able to gain the knowledge I need to move forward. Here's my basic example; Template Code:
<!-- logged-in users --> <a style="float:$stylevar[right]" href="#top"> <img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a> <a href="online.php$session[sessionurl_q]" rel="nofollow">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>) <!-- end logged-in users --> PHP file PHP Code:
Currently Active Users: ( members and guests) The data is empty as if I am not including the proper files, however no error or anything suggesting a solution. The problem is likely obvious to the pro's. I just can't seem to figure out how to take advantage of the vb vars such as $totalonline, etc. I believe the issue is likely related to a missing require file, but it has not been made clear to me yet. You're help with this simple example would be greatly apprecaited. Thank you. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|