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:
Add Reply
Restrict Member Title Usage on a Group-Basis
Topic Started: Apr 12 2012, 11:42 AM (1,019 Views)
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Code Name: Restrict Member Title Usage on a Group-Basis

What the code does: This code restricts the usage of member titles for a specific group so the users in a specific group won't be able to change their member title. Preview

How to use the code: Change the capitalized text in the last line of code and repeat that line to restrict member title usage for more groups.

How to install the code:

Admin CP >> Themes >> Board Template >> Below the Board
Code:
 
<script type="text/javascript">
if (location.href.indexOf('/home/?c=6') !== -1) {
function addGroup(group_name) {
$.get($('#top_info strong a').attr('href') + '?force_ads', function (data) {
if ($('dl.user_info dt:contains(Group:) + dd', data).html() === group_name) {
$('td.c_desc:contains(Member Title:)').closest('tr').remove();
}
});
}
}

addGroup('GROUP_NAME');
</script>
Edited by Cory, Oct 29 2016, 01:01 AM.
Online Profile Quote Post Goto Top
 
.Realm
Member Avatar
Crowd in the Face
[ *  * ]
Thank you!
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards Codes & Modifications · Next Topic »
Add Reply