View Full Version : [3.0.7] Currently Online in Header
Mr Chad
08-13-2005, 05:42 AM
How would i make it so that it displays who is currently online in the header?
How would i make it so that it displays who is currently online in the header?
like would i edit the global.php file and add some php in it? anyone
Mr Chad
08-14-2005, 09:25 AM
*Bump*
soniceffect
08-14-2005, 12:09 PM
This would be a template edit ... Not looked to be honest, but would look at the FORUMHOME Template, find where it tells the browser to display it at the bottom, them move it to wherever you want it at the top.
Let us know exactly where you want to put it and I`ll have a look eg. under navbar?
Mr Chad
08-14-2005, 05:38 PM
I want it to be on the top of the page in the header.
I tried to ad the $totalonline cmds but it just is blank.
I think it is a global.php edit.
Andrew111888
08-16-2005, 06:24 AM
That's because $totalonline isn't the name of the variable.
Find the following in your FORUMHOME template:
<!-- logged-in users -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><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]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
<tr>
<td class="alt2"><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" width="100%">
<div class="smallfont">
<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
<div>$activeusers</div>
</div>
</td>
</tr>
</tbody>
<!-- end logged-in users -->
and cut it out. Paste it at the top of the FORUMHOME template where you want it. You may have to play with the HTML a bit for it to look as you want it to but that's the basics.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.