View Full Version : I want to display current users online
carteretpeople
05-22-2008, 12:18 PM
Hi, im using ver 3.7 and i would like to display the users online in my header right above
the links where the forum name appears. i would like to remove the forum name
and put online users. i've attached a pic of what im asking.
Thank you for any help.:)
michael5472
05-23-2008, 05:22 AM
I just tested this and i think what you wanted was this.
I put 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_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].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>
Under the $navbar in FORUMHOME template
Let me know if this is what you wanted if not i will have another look :)
Mike
carteretpeople
05-23-2008, 11:16 PM
Hi mike,
Thank you for your response. Question...where can I find the forumhome template?
Is it name forumhome.php
thanks
Rob
--------------- Added 1211588563 at 1211588563 ---------------
I found the templates...
I will try it and let you know..
Thanks
--------------- Added 1211601042 at 1211601042 ---------------
Hi mike.
First, Thank you, you were very helpful and smart..
I actuall wanted it in the frame with the links in the place of the forum title "carteretpeople.com feel free to talk about you town and the people in it.
I figured it out. I pasted the script that you posted in the navbar template under navigation breadcrum templates, to get it where i have it now.
How can move it to where the forum name/ phase "carteretpeople.com feel free to speak your mind" is.
I would like to remove the forum name and phase. Put the users online script in it's place.
Lastly, i would like to put the staticts" num of post, thread and welcome newest member section" where i have the currently active users at now. I just need the script.
Please!
take a look
www.carteretpeople.com
Thank you
I just tested this and i think what you wanted was this.
I put 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_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].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>
Under the $navbar in FORUMHOME template
Let me know if this is what you wanted if not i will have another look :)
Mike
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.