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 ] Control Member Title; can be closed
Topic Started: Aug 7 2015, 01:04 AM (413 Views)
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
ZB
URL in profile

Would it be possible to design a code that'll allow only some members to use the member title and disable it for everyone else? I want this code to enable member titles for a couple of users, but we would decide what the member title would say.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
So basically, you're wanting this code to apply to everyone except the members you want allow the use of the member title feature?
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
I think so, I'm wanting a code that'll disable the member title for everyone except for a few but they don't get the option to select it, we do it for them. Get it?
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">
$(function() {
var uIDS = [USER_ID, USER_ID, USER_ID];

for (var i = 0; i < uIDS.length; i++) {
if ($.zb.stat.mid !== uIDS[i]) {
$('div.usertitle').each(function() {
if ($(this).has('br')) {
var nTitle = $(this).html().split('<br>')[1];
$(this).html(nTitle);
}
});
}
}

$('#edit_profile td.c_desc:contains(Member Title:)').parent('tr').hide();
});
</script>
Edit the capitalized text as necessary.
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
Where would you type in the member title it would display for them?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
You can do that from the Member Search page in the Admin CP or the Edit Profile page found on the profile page under the Profile Options drop down menu.
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
Oh I get it, thanks!
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
On second thought, the code above is not what you are looking for. I'll have to think of an alternative method when I have more free time.
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
Oh ok
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Do you still need this?
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
Yes
Offline Profile Goto Top
 
Tyler Dream
Member Avatar
Member
[ *  *  *  * ]
UPDATE: Code is no longer needed as I've decided to just disable member titles in general and the only way to add a title would be through admin cp. Thank you anyways.
Edited by Tyler Dream, Aug 17 2015, 03:42 PM.
Offline Profile Goto Top
 
Roby
Member Avatar
#27

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