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 ] Active Users List; can be closed
Topic Started: Jul 26 2015, 08:35 PM (207 Views)
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
ZB
Url in mini profile
I noticed that if I didn't allow users to see the active users list, I couldn't see it either, would it be possible to create a code that'll allow administrators and moderators to see the list but not regular users?
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[
if ($.zb.moderator === 0) {
$('#active_list').prev('ul.cat-pages').hide().end().next('ul.cat-pages').hide();
$('#active_list').replaceWith('<table cellspacing="0" id="error_box"><thead><tr><th>Error:</th></tr></thead><tbody><tr class="generic"><td>The feature you have requested is not enabled.<br /><small>Error Code: 2001:6090946</small></td></tr></tbody></table>');
}
//]]>
</script>
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
Works great, Thanks Cory!
Offline Profile Goto Top
 
Cody
Member Avatar
Member
[ *  *  *  *  *  * ]
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