How to hide Who Is Online

456

Wed Feb 28, 2018 4:14 pm
Blabbing Noob
64 Posts
Hey, how's it going?

I need to know how to hide or disable the Who Is Online block located at the bottom of the Forum Index to where only registered members can view it.

Presently, the Who Is Online is visible to Guests and I would like to change it.

Thanks!
Go HeadShot
Wed Feb 28, 2018 7:11 pm
Clan Leader
Top Dog
2630 Posts
coRpSE
In-Game
State of Decay 2

Most Played:
This week: 91.9hrs.
Total Played: 137hrs.
  
Okay, this is fairly easy, but, you need to know the basics of HTML for it. What you will need to do is edit your theme you are using a bit. Each theme is different so I can't say for sure, find this line and change this. The best I can do is give you a close example of what to look for. If this proves to be too confusing, feel free to pack up your theme file that I specify and send it to me and I will do them, but before doing that, give it a try.

What you want to do is open up:
public_html/themes/Your_Theme/forums/index_body.tpl

Find in that file:

Code: [ Select all ]

{L_WHO_IS_ONLINE}


Once you find that, you will see a table that it is in. What you want to do is wrap the whole table with this:

Code: [ Select all ]

<!-- BEGIN switch_user_logged_in -->

 <!-- END switch_user_logged_in -->


So everything you want hidden when someone is not logged in goes in between those to lines.

Here is an example of a theme I am currently working on for someone.
Please login to see this link
Get registered or Log in


If you click that link, you will see that I just wrapped the Who is Online and left the Birthdays still visible.


Expand
Wed Feb 28, 2018 9:22 pm
Original Poster
Blabbing Noob
64 Posts
big grin
Well "f" me running ... PERFECTION!

Once again, you never cease to amaze me Oh Dreaded One! You are loved ...
Go HeadShot


 
Wed Feb 28, 2018 10:11 pm
Clan Leader
Top Dog
2630 Posts
coRpSE
In-Game
State of Decay 2

Most Played:
This week: 91.9hrs.
Total Played: 137hrs.
  
Glad it helped.


 
Thu Mar 01, 2018 2:30 pm
Clan Leader
Top Dog
2630 Posts
coRpSE
In-Game
State of Decay 2

Most Played:
This week: 91.9hrs.
Total Played: 137hrs.
  
Just note, you need to do this on all your themes your running, or at least your "Default" theme on your site.


 
Fri Mar 02, 2018 3:22 am
Original Poster
Blabbing Noob
64 Posts
— coRpSE wrote
Just note, you need to do this on all your themes your running, or at least your "Default" theme on your site.


Duhhh  ok -- I didn't do that  hrm

Thanks for the tip!!


 
Forums ©