View Full Version : Currently Active Users In Header
Blindchild02
07-23-2006, 06:14 AM
Would it be possible for anyone to help me get the 'currently active users' section from the forumhome, to work in the header template?
bashy
07-23-2006, 08:48 PM
Hi
Find in forumhome
<!-- 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]" rel="nofollow">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest" 3="$numberspiders">$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_q]" rel="nofollow"><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>
<a href="http://www.bashys-place.com/forums/member.php?u=560"><span style="color: red; font-weight: bold;">Sherlock Holmes</span></a> , <a href="http://www.bashys-place.com/forums/member.php?u=8"><span style="color: orange; font-weight: bold;">TinyTim</span></a> , <a href="http://www.bashys-place.com/forums/member.php?u=239">superstar</a> , <a href="http://www.bashys-place.com/forums/member.php?u=378">dogby</a> , $activeusers</div>
</div>
</td>
</tr>
</tbody>
<!-- end logged-in users -->
Put below in the header
<!-- /logo -->
Thats just a quickie but you get the idea?
Blindchild02
07-23-2006, 09:48 PM
yeah, i took the info from forumhome and put it in footer (which i need not header :p sorry)
but it doesnt work on every page in footer :(
Renmiri
07-28-2006, 12:35 PM
Got it!
Inspired on vBExternal (https://vborg.vbsupport.ru/showthread.php?t=83005&page=24) and live stats on header (https://vborg.vbsupport.ru/showthread.php?t=95493)
1. Add a plugin to set the value of $onlineusers
2. Edit header template to add $onlineusers
Check it out
my site w/ it
http://sinsdawn.ffproject.net/index.php
The mod
https://vborg.vbsupport.ru/showthread.php?t=122388
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.