View Full Version : Separate "Currently Online" from "What's Going On"
yinyang
03-16-2006, 07:15 PM
this may be pretty obvious, but it totally escapes me!
i want to split out the "Currently Online" section from the "What's Going On" portion of ForumHome and put it above the navbar.
Can someone please help me with this? thanks!
merwejr
03-16-2006, 09:49 PM
Good question I want to ask the same...
Stangsta
03-16-2006, 10:02 PM
In the FORUMHOME template, just type in or move:
$activeusers
merwejr
03-16-2006, 10:12 PM
Dear,
What I would like todo is adding the active users to the navbar.
I simply added $activeusers in the navbar template. However, that didn't do the trick. Should I copy more info?
Andre
Freesteyelz
03-17-2006, 06:21 PM
Do you want to do something similar to what I did on my board? I have the Currently Active Members and Calendar Events at the top (before the forum listings) and Statistics and Birthdays at the bottom (after forum listings).
Click here for an example (http://www.bac-clan.com/forum/index.php)
To do it (and this will work in Forum Home and should work in the navbar) add this code bit anywhere:
<!-- what's going on box -->
<if condition="$show['loggedinusers']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="1" border="0" width="100%" align="center">
<!-- 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_q]" rel="nofollow">$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_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>$activeusers</div>
</div>
</td>
</tr>
</tbody>
</table>
</if>
<!-- end logged-in users -->
merwejr
03-17-2006, 06:57 PM
Thanks a lot
Freesteyelz
03-17-2006, 08:44 PM
Np. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.