inherit
109820
0
Dec 10, 2013 0:45:52 GMT -8
daisyprincess
72
August 2007
daisyprincess
|
Post by daisyprincess on Dec 2, 2013 1:25:23 GMT -8
Hi there, just have 2 questions that I need answered if possible. Can I remove the Shoutbox from the forum completely, and if so how? And...can I remove the Users Online section at the bottom of the page? We only want it for admin to see. Any help would be great...thanks in advance.
|
|
inherit
153300
0
Jun 19, 2019 17:10:20 GMT -8
Tressa
874
April 2010
tressa
|
Post by Tressa on Dec 2, 2013 8:56:10 GMT -8
To disable the Shoutbox: Admin > Settings > Forum Settings > Shoutbox tab > set first setting to disabled. I'll let someone better at coding help you with restricting the Users Online. I'm sure it can be done.
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Dec 2, 2013 10:46:50 GMT -8
daisyprincess, it's simple enough to hide the Users Online section from everyone except the admin - it just requires a quick HTML modification. Go to Admin > Structure > Layout Templates > Home and scroll down to about line 68, where you should see this code:
Wrap this code with an If statement that checks to make sure the current user is the admin. Replace the above with the following:
|
|
inherit
109820
0
Dec 10, 2013 0:45:52 GMT -8
daisyprincess
72
August 2007
daisyprincess
|
Post by daisyprincess on Dec 7, 2013 18:21:06 GMT -8
To disable the Shoutbox: Admin > Settings > Forum Settings > Shoutbox tab > set first setting to disabled. I'll let someone better at coding help you with restricting the Users Online. I'm sure it can be done. Thank you David and Tressa...users online now hidden except for admin. Now...I know the above code is to disable the Shoutbox but can I remove it completely??
|
|
inherit
153300
0
Jun 19, 2019 17:10:20 GMT -8
Tressa
874
April 2010
tressa
|
Post by Tressa on Dec 7, 2013 18:37:58 GMT -8
With the Shoutbox disabled as above, it will not appear on your forum at all.
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Dec 8, 2013 10:08:52 GMT -8
I can confirm that the way Tressa does remove it completely, daisyprincess. Simply leave it disabled.
|
|
inherit
109820
0
Dec 10, 2013 0:45:52 GMT -8
daisyprincess
72
August 2007
daisyprincess
|
Post by daisyprincess on Dec 9, 2013 0:42:26 GMT -8
daisyprincess, it's simple enough to hide the Users Online section from everyone except the admin - it just requires a quick HTML modification. Go to Admin > Structure > Layout Templates > Home and scroll down to about line 68, where you should see this code:
Wrap this code with an If statement that checks to make sure the current user is the admin. Replace the above with the following: thanks for the shoutbox tip...its now all gone. but I got the users part wrong lol...I need to know if I can remove the Users Online in the Past 24hours section from general members and only have it viewable to admin...this code removed the Users Online part which I originally needed...can I remove the 24 hour users online only? (we would like to keep the Users Online section) thanks in advance! (again)
|
|
inherit
109820
0
Dec 10, 2013 0:45:52 GMT -8
daisyprincess
72
August 2007
daisyprincess
|
Post by daisyprincess on Dec 10, 2013 1:00:38 GMT -8
thanks for the shoutbox tip...its now all gone. but I got the users part wrong lol...I need to know if I can remove the Users Online in the Past 24hours section from general members and only have it viewable to admin...this code removed the Users Online part which I originally needed...can I remove the 24 hour users online only? (we would like to keep the Users Online section) thanks in advance! (again)
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Dec 13, 2013 11:18:46 GMT -8
You'll pretty much do the same thing David posted except go to line 95 and wrap that if statement around this bit:
{if $[current_user.username] == "admin"} <tr class="last"> <td colspan="2"> <table> <tr> <td class="icon">$[image.online_24]</td> <td class="info last"> <table> <tbody> <tr><th>Users Online in the Last 24 Hours</th></tr> <tr><td>$[total_staff_online_24] Staff, <a class="$[view_todays_active_members_link.class]" href="$[view_todays_active_members_link.href]">$[total_members_online_24] Member{if $[total_members_online_24] != 1}s{/if}</a>, $[total_guests_online_24] Guest{if $[total_guests_online_24] != 1}s{/if}.</td></tr> <tr><td> {foreach $[online_user_24]} $[online_user_24]{if $[online_user_24.invisible]} <span class="small">(invisible)</span>{/if}$[online_user_24.comma] {/foreach} {if $[total_online_not_shown_24]} , and <a class="$[view_todays_active_members_link.class]" href="$[view_todays_active_members_link.href]">$[total_online_not_shown_24] more...</a> {/if} </td></tr> </tbody> </table> </td> </tr> </table> </td> </tr> {/if}
|
|