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 state from guests
Topic Started: Jul 23 2013, 08:20 PM (283 Views)
polocolo
Member Avatar
Member
[ *  *  * ]
Board Address: http://wallacehuoforum.info/site/
Board Software: Zetaboards
Description: I want to hide the Board Statistics and Active Users from guests. Also, I want to hide '[date], 01:46 PM, a record 138 users were online' from members.

Thanks


EDIT: I'm referring to the portal page.
Edited by polocolo, Jul 23 2013, 08:22 PM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
//<![CDATA[
$(function () {
if (location.href.indexOf('/site') !== -1) {
var stats = $('div.portal_box h2:contains(Board Statistics)').parent('div.portal_box').find('div.portal_content');
var posts = stats.html().split('<br>')[0];
var members = stats.html().split('<br>')[1];
stats.html(posts + '<br / >' + members);

if ($.zb.logged_in === false) {
$('div.portal_box h2:contains(Board Statistics), div.portal_box h2:contains(Active Users)').parent('div.portal_box').hide();
}
}
});
//]]>
</script>
Edited by Cory, Jul 24 2013, 08:36 PM.
Offline Profile Goto Top
 
polocolo
Member Avatar
Member
[ *  *  * ]
Thanks. Works perfectly.
Offline Profile Goto Top
 
Moonface
Member Avatar


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