Who's online?

h@ck3r

New Member
I unticked the box(es) in certain usergroups, so those members cannot see who's online, but the names still show at the very bottom of the forums (In the 'Whats going on' section).

It's removed the link in the navbar to 'Whos online', but....

How can I hide the bottom 'Whos online' section from certain usergroups?
 

Grinderhand

New Member
Did you uncheck admin as being able to see the whos online? If not, that's why you can see it. Doesn't mean anyone else who shouldn't be able to can see it. Or am I not understanding you?
 

h@ck3r

New Member
Grinderhand said:
Did you uncheck admin as being able to see the whos online? If not, that's why you can see it. Doesn't mean anyone else who shouldn't be able to can see it. Or am I not understanding you?

No, I want Admin only to be able to see it. I'm trying to do it without editing the template with any further conditionals.

I have a test account that is in the 'registered user' usergroup, and whilst logged into my forum in Firefox with my admin account, I was logged in to the site in IE8, with the test account- Both accounts are still able to see the who's online section at the bottom of the forums.
 

h@ck3r

New Member
Ah.. I've found it in the adminCP now...

Forums Home Page Options->Display Logged in Users?-> Set to no


But this will turn this off for all members, including me.

Oh well.. looks like I need to do another template edit and add a conditional :)
 

fireworks

New Member
h@ck3r said:
Ah.. I've found it in the adminCP now...

Forums Home Page Options->Display Logged in Users?-> Set to no


But this will turn this off for all members, including me.

Oh well.. looks like I need to do another template edit and add a conditional :)


If you are successful with your template edit, would you post it in this thread. I too would like to hide the who's online list (at the forum bottom) from unregistered users, and another group I have called "initiates".

I've seen a hack for this on this forum, but it's for an old ver of vb and by the feedback in it's thread, it doesn't seem to work for ver 3x.

This would be a handy option to have!
Cheerz ;)
 

h@ck3r

New Member
fireworks said:
If you are successful with your template edit, would you post it in this thread. I too would like to hide the who's online list (at the forum bottom) from unregistered users, and another group I have called "initiates".

I've seen a hack for this on this forum, but it's for an old ver of vb and by the feedback in it's thread, it doesn't seem to work for ver 3x.

This would be a handy option to have!
Cheerz ;)

Post your FORUMHOME template here and I'll edit it for you.

I think it's the FORUMHOME.. Look for 'What's going on' in that template.. if it exists.. then post your template here and I'll edit it for you.

I also need the usergroup ID's of which you want to SEE the who's online section :)
 

fireworks

New Member
Ok, here's the list of user id's that are allowed to see the "what's going on":
Code:
5,6,7,10,11,12,13,14,15,16,17,18

Here's the section of code I think you'll need:
Code:
<!-- what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
	<tr>
		<td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
	</tr>
</thead>
$template_hook[forumhome_wgo_pos1]
<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
	<tr>
		<td class="thead" colspan="2">
			<a style="float:$stylevar[align=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]">$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]"><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 -->

Thanks a lot for your offer to help! It's much appreciated!
 

fireworks

New Member
Ok.....Here's the usergroup ID's that are allowed to see the "what's going on" info:

Code:
5,6,7,10,11,12,13,14,15,16,17,18

And here's the piece of code that I think you're looking for:

Code:
<!-- what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
	<tr>
		<td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
	</tr>
</thead>
$template_hook[forumhome_wgo_pos1]
<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
	<tr>
		<td class="thead" colspan="2">
			<a style="float:$stylevar[align=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]">$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]"><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 -->

Thanks a lot for any help you can give, I think this will be a major benefit to my site to hide this info from unregistered and other groups.......Thanks!
 

fireworks

New Member
Ok.....Here's the usergroup ID's that are allowed to see the "what's going on" info:

Code:
5,6,7,10,11,12,13,14,15,16,17,18

And here's the piece of code that I think you're looking for:

Code:
<!-- what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
	<tr>
		<td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
	</tr>
</thead>
$template_hook[forumhome_wgo_pos1]
<if condition="$show['loggedinusers']">
<!-- logged-in users -->
<tbody>
	<tr>
		<td class="thead" colspan="2">
			<a style="float:$stylevar[align=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]">$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]"><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 -->

Thanks a lot for any help you can give, I think this will be a major benefit to my site to hide this info from unregistered and other groups.......Thanks!
 
Top