● How to hide Who Is Online

Wed Feb 28, 2018 4:14 pm
Blabbing Noob
64 Posts
Reputation: 270.4
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
Nuke Dev / Coder
3015 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 77.7hrs.
Total Played: 195hrs.


  
There is life outside of the game.
Reputation: 7317.9
votes: 7
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
Reputation: 270.4
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
Nuke Dev / Coder
3015 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 77.7hrs.
Total Played: 195hrs.


  
There is life outside of the game.
Reputation: 7317.9
votes: 7
Glad it helped.


 
Thu Mar 01, 2018 2:30 pm
Clan Leader
Top Dog
Nuke Dev / Coder
3015 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 77.7hrs.
Total Played: 195hrs.


  
There is life outside of the game.
Reputation: 7317.9
votes: 7
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
Reputation: 270.4
— 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 ©