The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Stats In Header
Threads: X
Posts: X Members: X Welcome to our newest member, X Last Visit: X and i would also need to know how to get Username Avatar Login/Logout Total Users Online (like in the "What's Going On?" Box) i need this info, to show up in the header, and show up on ALL the pages... please, thanks to anyone who helps! |
#2
|
||||
|
||||
I think that you would have to add this to your header template (This is code from the forumhome template that shows your stats)
Code:
<tbody> <tr> <td class="thead" colspan="2"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a> <phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase> </td> </tr> </tbody> <tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]"> <tr> <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td> <td class="alt1" width="100%"> <div class="smallfont"> <div>$vbphrase[threads]: $totalthreads, $vbphrase[posts]: $totalposts, $vbphrase[members]: $numbermembers</div> <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div> </div> </td> </tr> </tbody> |
#3
|
||||
|
||||
nope, didnt work. im sure something has to be put into phpinclude or something :|
|
#4
|
||||
|
||||
I don't think phpinclude, but you would probably have to edit global.php to make it work.
|
#5
|
||||
|
||||
Quote:
I am not sure of the edits exactly |
#6
|
||||
|
||||
Well, i need to know how to do that if any1 knows please help!
and i also edited the 1st post |
#7
|
|||
|
|||
Do this:
In template "phpinclude_start" Add: PHP Code:
As for the login/logout. Do this in the header template: HTML Code:
<if condition="$bbuserinfo['userid']"> <a href="login.php?$session[sessionurl]do=logout" onclick="return log_out()">Logout</a> <else /> <!-- login form --> <form action="login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)"> <script type="text/javascript" src="clientscript/vbulletin_md5.js"></script> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" valign="bottom"> <tr> <td class="smallfont">User:</td> <td><input type="text" class="button" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="1" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td> <td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" checked="checked" />$vbphrase[remember_me]</label></td> </tr> <tr> <td class="smallfont">Pass:</td> <td><input type="password" class="button" name="vb_login_password" size="10" accesskey="p" tabindex="2" /></td> <td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="4" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td> </tr> </table> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="do" value="login" /> <input type="hidden" name="forceredirect" value="1" /> <input type="hidden" name="vb_login_md5password" /> <input type="hidden" name="vb_login_md5password_utf" /> </form> <!-- / login form --> </if> HTML Code:
$bbuserinfo[username] |
#8
|
||||
|
||||
Ill give it a try, i hope they show up on all pages.
|
#9
|
||||
|
||||
Nice, those all work thanks.
but i still need... Newest Member Last Login and Avatar |
#10
|
||||
|
||||
Ok.
so i got, last login in the head. now i still need Avatar (has to show on all pages) Newest member |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|