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 ] Limit the ability to delete shoutbox shouts to certain groups
Topic Started: Jul 18 2013, 01:23 AM (468 Views)
Byzantine
Member Avatar
Zathyus Networks Greek
[ *  *  *  * ]
Board Address: Clicky
Board Software: ZetaBoards
Description: I'd like to be able to allow only certain usergroups to be able to delete shouts in the shoutbox.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Themes Posted Image Board Template Posted Image Javascripts
Code:
 
<style type="text/css">
a[onclick*="shoutDelete"] {
display: none;
}
</style>
Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
//<![CDATA[
function addGroup(gID) {
if ($.zb.stat.gid === gID) {
$('a[onclick*="shoutDelete"]').show();
}
}

addGroup(GROUP_ID);
//]]>
</script>
Change GROUP_ID as necessary for the group you want to allow the deletion of shouts. The addGroup line can be repeated as many times as you wish.
Offline Profile Goto Top
 
Byzantine
Member Avatar
Zathyus Networks Greek
[ *  *  *  * ]
Awesome, thank you!
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