View Full Version : Online now box position
PamelaE
10-10-2005, 03:45 PM
Hi,
Is there a way I can customise the Online Now box, basically I want it to display at the top of forum home.
I managed to get it up there http://www.soapchat.net
But the box is missing. Any help would be appreciated. Thanks
teach1st
10-10-2005, 07:33 PM
See my 3.5.0 at http://www.tuff-teach.com
Here's what I did to get Active Users on top at tuff-teach.com (http://www.tuff-teach.com/pcs/). Use it with caution, since I am a relative goof-up. I don't always know what I'm doing:
Be careful, because this code includes commenting out the "most ever online" line.
From the original forumhome template, in the "What's Up" box that is at the bottom, I removed this code:
<if condition="$show['loggedinusers']">
<!-- 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>
<!-- end logged-in users -->
</if>
And pasted it near the top of forumhome, in between "navbar" and "main".
I also added this to the end, right after the <!-- end logged-in users -->
</if>
</thead>
</table>
I don't know if that's needed or not, but that's what my examdif program shows.
PamelaE
10-10-2005, 10:42 PM
Thanks but I did exactly what you did and I don't get the nice neat box you do. No table, its just messy. It seems to have worked fine for you. I wonder why.
http://www.soapchat.net
Actually I this thread explains it http://www.vbulletin.com/forum/showthread.php?t=104605
Im not sure whats different but that has created a table cell for me. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.