Post by pawl on Dec 29, 2012 12:32:41 GMT -8
Another request that I thought I'd post up.
First off, if you're using the 'hide info center from guest' mod, then you'll want to remove it, or this will be redundant.
Then, in your Home template (Admin Panel -> Themes -> Layout Templates -> Home), look for the following, approx lines 76-86;
<tr><th>Users Online</th></tr>
<tr><td>$[total_staff_online] Staff, $[total_members_online] Member{if $[total_members_online] != 1}s{/if}, $[total_guests_online] Guest{if $[total_guests_online] != 1}s{/if}.</td></tr>
<tr><td>
{foreach $[online_user]}
$[online_user]{if $[online_user.invisible]} <span class="small">(invisible)</span>{/if}$[online_user.comma]
{/foreach}
{if $[total_online_not_shown]}
, and <a class="$[view_active_members_link.class]" href="$[view_active_members_link.href]">$[total_online_not_shown] more...</a>
{/if}
</td></tr>
<tr><td>$[view_todays_active_members_link]</td></tr>
Replace it with the following, changes in bold;
{if $[current_user.is_member]}<tr><th>Users Online</th></tr>
<tr><td>$[total_staff_online] Staff, $[total_members_online] Member{if $[total_members_online] != 1}s{/if}, $[total_guests_online] Guest{if $[total_guests_online] != 1}s{/if}.</td></tr>
<tr><td>
{foreach $[online_user]}
$[online_user]{if $[online_user.invisible]} <span class="small">(invisible)</span>{/if}$[online_user.comma]
{/foreach}
{if $[total_online_not_shown]}
, and <a class="$[view_active_members_link.class]" href="$[view_active_members_link.href]">$[total_online_not_shown] more...</a>
{/if}
</td></tr>
<tr><td>$[view_todays_active_members_link]</td></tr>
{else}
<tr><td>To view the members currently online, please $[login_link] or $[register_link]. Thankyou!</td></tr>{/if}
The text in blue you can change to whatever you want.
This will give you a result like this;
If you want the entire table row to vanish for guests, look instead for the following, approx lines 68-93, and again make the changes in bold at the beginning and end;
{if $[current_user.is_member]}<tr class="last">
<td colspan="2">
<table>
<tr>
<td class="icon">$[image.online]</td>
<td class="info last">
<table>
<tbody>
<tr><th>Users Online</th></tr>
<tr><td>$[total_staff_online] Staff, $[total_members_online] Member{if $[total_members_online] != 1}s{/if}, $[total_guests_online] Guest{if $[total_guests_online] != 1}s{/if}.</td></tr>
<tr><td>
{foreach $[online_user]}
$[online_user]{if $[online_user.invisible]} <span class="small">(invisible)</span>{/if}$[online_user.comma]
{/foreach}
{if $[total_online_not_shown]}
, and <a class="$[view_active_members_link.class]" href="$[view_active_members_link.href]">$[total_online_not_shown] more...</a>
{/if}
</td></tr>
<tr><td>$[view_todays_active_members_link]</td></tr>
</tbody>
</table>
</td>
</tr>
</table>
</td>
</tr>{/if}
After this, look for the following, around lines 28-32. Once more, changes in bold;
<div class="content">
<table>
<tbody>
{if $[current_user.is_member]}<tr>{else}<tr class="last">{/if}
<td>
This should give you a result like this;
Hope that helps. If you have any trouble, let me know. =]
First off, if you're using the 'hide info center from guest' mod, then you'll want to remove it, or this will be redundant.
Then, in your Home template (Admin Panel -> Themes -> Layout Templates -> Home), look for the following, approx lines 76-86;
<tr><th>Users Online</th></tr>
<tr><td>$[total_staff_online] Staff, $[total_members_online] Member{if $[total_members_online] != 1}s{/if}, $[total_guests_online] Guest{if $[total_guests_online] != 1}s{/if}.</td></tr>
<tr><td>
{foreach $[online_user]}
$[online_user]{if $[online_user.invisible]} <span class="small">(invisible)</span>{/if}$[online_user.comma]
{/foreach}
{if $[total_online_not_shown]}
, and <a class="$[view_active_members_link.class]" href="$[view_active_members_link.href]">$[total_online_not_shown] more...</a>
{/if}
</td></tr>
<tr><td>$[view_todays_active_members_link]</td></tr>
Replace it with the following, changes in bold;
{if $[current_user.is_member]}<tr><th>Users Online</th></tr>
<tr><td>$[total_staff_online] Staff, $[total_members_online] Member{if $[total_members_online] != 1}s{/if}, $[total_guests_online] Guest{if $[total_guests_online] != 1}s{/if}.</td></tr>
<tr><td>
{foreach $[online_user]}
$[online_user]{if $[online_user.invisible]} <span class="small">(invisible)</span>{/if}$[online_user.comma]
{/foreach}
{if $[total_online_not_shown]}
, and <a class="$[view_active_members_link.class]" href="$[view_active_members_link.href]">$[total_online_not_shown] more...</a>
{/if}
</td></tr>
<tr><td>$[view_todays_active_members_link]</td></tr>
{else}
<tr><td>To view the members currently online, please $[login_link] or $[register_link]. Thankyou!</td></tr>{/if}
The text in blue you can change to whatever you want.
This will give you a result like this;
If you want the entire table row to vanish for guests, look instead for the following, approx lines 68-93, and again make the changes in bold at the beginning and end;
{if $[current_user.is_member]}<tr class="last">
<td colspan="2">
<table>
<tr>
<td class="icon">$[image.online]</td>
<td class="info last">
<table>
<tbody>
<tr><th>Users Online</th></tr>
<tr><td>$[total_staff_online] Staff, $[total_members_online] Member{if $[total_members_online] != 1}s{/if}, $[total_guests_online] Guest{if $[total_guests_online] != 1}s{/if}.</td></tr>
<tr><td>
{foreach $[online_user]}
$[online_user]{if $[online_user.invisible]} <span class="small">(invisible)</span>{/if}$[online_user.comma]
{/foreach}
{if $[total_online_not_shown]}
, and <a class="$[view_active_members_link.class]" href="$[view_active_members_link.href]">$[total_online_not_shown] more...</a>
{/if}
</td></tr>
<tr><td>$[view_todays_active_members_link]</td></tr>
</tbody>
</table>
</td>
</tr>
</table>
</td>
</tr>{/if}
After this, look for the following, around lines 28-32. Once more, changes in bold;
<div class="content">
<table>
<tbody>
{if $[current_user.is_member]}<tr>{else}<tr class="last">{/if}
<td>
This should give you a result like this;
Hope that helps. If you have any trouble, let me know. =]