We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Hide from Guests
Topic Started: Jul 7 2011, 07:18 AM (407 Views)
.Rayne
Member
[ * ]
Board Address: Private
Board Software: ZetaBoards
Description: Is there a code to hide the members list and forum statistics from Guests only? I may have overlooked them if they already exist, for which I apologise.

Thank you in advance.
Offline Profile Goto Top
 
§korp
Member Avatar
Never Underestimate Yourself.
[ *  *  *  *  *  *  * ]
To hide board stats from guests try this code:

Code:
 
<script type="text/javascript">
if($("div#top_info:contains('Guest')").html()) { $("div#stats").hide();}
</script>


To hide members list from guest,
Go to Admin CP
→ Groups
→ Edit the Group Guests

Go to View Members Profiles and Put in "No"


Edited by §korp, Jul 7 2011, 10:50 AM.
Offline Profile Goto Top
 
.Rayne
Member
[ * ]
The code works fine for the forum, but it doesn't work on the Portal page (which is the forums main page for my board). I still want Members to view the board stats on the portal, though, just not guests. Is there something for this, as well?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code:
 
<script type="text/javascript">
if($("div#top_info:contains('Guest')").html()) { $("div#stats, #portal_foot").hide();}
</script>
Try that instead.
Offline Profile Goto Top
 
.Rayne
Member
[ * ]
Works perfect! Thanks guys :D
Offline Profile Goto Top
 
Nivexonix
Member Avatar
Love
[ *  *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic