The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
that's probably a stupid question, but i'm a beginner in modding...
i've just integrated that welcome panel mod and expanded it with the "currently active users" part - it works fine on the forum index, but on the other pages it doesn't show the numbers. i guess those variables need to be set as global somewhere, to be available on all pages? could you explain me how to do this? the code-bit with those variables is part of the navbar, and the url is http://www.musicportal.org/forum/ Code:
<!-- logged-in users --> <td class="alt2" valign="top"> <a href="online.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td> <td class="alt1" style="padding-right:10px"> <div class="smallfont"> <strong>$vbphrase[currently_active_users]:</strong> $totalonline<br />(<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)<br /> <div>$activeusers</div> <phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase> </div> </td> <!-- end logged-in users --> |
#2
|
||||
|
||||
![]()
Questions about modifying vBulletin's default behaviour and asking about modifications in general, should be posted in General vBulletin Questions. Please read the forum descriptions more carefully in future. I've moved your thread there for you
![]() Thanks, - Dean |
#3
|
|||
|
|||
![]()
at least i found out how to add it to all pages by editing each php-file.
have to fetch the navbar-template in every php-file, and add some more code-lines to each php-file to get the name of the newest member. but there surely is some file that is automatically included everywhere, so i don't have to modify each file. how can i do that? would be nice to get an answer... for the newest member i had to add 'userstats' to the specialtemplates-array, and Code:
$userstats = unserialize($datastore['userstats']); $newusername = $userstats['newusername']; $newuserid = $userstats['newuserid']; eval('$navbar = "' . fetch_template('navbar') . '";'); |
#4
|
|||
|
|||
![]()
Well you could add something to your php include template, eh?
|
#5
|
|||
|
|||
![]() Quote:
for showthread and forumdisplay it worked to move that codebit i posted above, but $specialtemplates = array('userstats'); or similiar doesn't work in there. and in other pages except those two nothing works at all. can't you explain me in more detail what to do, or tell me where to find a guide how to do such things? thanks. edit: i now got the online users stuff to work by moving all that logged in users code from index.php to global.php, but the newest member isn't shown anywhere except the index page. any idea what's missing? |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|