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
  • Pages:
  • 1
[ C ] 2 members titles
Topic Started: Jul 9 2015, 08:15 AM (510 Views)
Devourz
Member Avatar
Member
[ *  *  * ]
Board Address: Private
Board Software: zetaboards
what you want your code to do?:

Is there a code that would allow me to have 2 titles (the original one and another one?)
Edited by Devourz, Jul 9 2015, 08:18 AM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Admin CP Posted Image Users & Groups Posted Image Profile Fields

Create a new 1 line text profile field with the following specifications:

Title: Your Choice
On Registration: No
Show field in topics: Yes
Admin Only Edit: No
Maximum input length: Your Choice

Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
$(function() {
var pName = 'PROFILE_FIELD_NAME';

$('dl.user_profile dt:contains(' + pName + ')').next('dd').andSelf().hide();

$('dl.user_profile dt:contains(' + pName + ')').each(function() {
var dd = $(this).next('dd').text();
$(this).parents('td.c_user').find('div.usertitle').append(dd);
});
});
</script>
Edit the capitalized text as necessary.
Offline Profile Goto Top
 
Devourz
Member Avatar
Member
[ *  *  * ]
Cory
Jul 9 2015, 01:16 PM
Admin CP Posted Image Users & Groups Posted Image Profile Fields

Create a new 1 line text profile field with the following specifications:

Title: Your Choice
On Registration: No
Show field in topics: Yes
Admin Only Edit: No
Maximum input length: Your Choice

Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
$(function() {
var pName = 'PROFILE_FIELD_NAME';

$('dl.user_profile dt:contains(' + pName + ')').next('dd').andSelf().hide();

$('dl.user_profile dt:contains(' + pName + ')').each(function() {
var dd = $(this).next('dd').text();
$(this).parents('td.c_user').find('div.usertitle').append(dd);
});
});
</script>
Edit the capitalized text as necessary.
What's a profile field name? (sorry i'm still not used to zetaboards lol)
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
It's what you fill out for the 'Title' field.
Offline Profile Goto Top
 
Devourz
Member Avatar
Member
[ *  *  * ]
Cory
Jul 10 2015, 04:14 PM
It's what you fill out for the 'Title' field.
is there any way to get it to look like this: http://i884.photobucket.com/albums/ac41/syikin97/MODERATING/Asking.jpg ?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
You're saying you want it to prepend to the default mini profile instead of be added directly below the default member title?
Offline Profile Goto Top
 
Devourz
Member Avatar
Member
[ *  *  * ]
Cory
Jul 10 2015, 07:44 PM
You're saying you want it to prepend to the default mini profile instead of be added directly below the default member title?
Yea man
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Try this instead:
Code:
 
<script type="text/javascript">
$(function() {
var pName = 'PROFILE_FIELD_NAME';

$('dl.user_profile dt:contains(' + pName + ')').next('dd').andSelf().hide();

$('dl.user_profile dt:contains(' + pName + ')').each(function() {
var dd = $(this).next('dd').text();
$(this).parents('td.c_user').find('dl.user_info').prepend('<dt>Title:</dt><dd>' + dd + '</dd>');
});
});
</script>
Offline Profile Goto Top
 
FB92
Member Avatar
Member
[ *  * ]
Sorry for butting into someone elses topic but this is also something I want. How do I make the field bold?
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Which version are you using?
Offline Profile Goto Top
 
FB92
Member Avatar
Member
[ *  * ]
Cory
Aug 12 2015, 12:57 AM
Which version are you using?
http://support.zathyus.com/single/?p=18098267&t=5226191
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Try this instead:
Code:
 
<script type="text/javascript">
$(function() {
var pName = 'PROFILE_FIELD_NAME';

$('dl.user_profile dt:contains(' + pName + ')').next('dd').andSelf().hide();

$('dl.user_profile dt:contains(' + pName + ')').each(function() {
var dd = $(this).next('dd').text();
$(this).parents('td.c_user').find('div.usertitle').append('<strong>' + dd + '</strong>');
});
});
</script>
Offline Profile Goto Top
 
FB92
Member Avatar
Member
[ *  * ]
That works, any way to make it red? Thanks for all your help.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
Try this instead:
Code:
 
<script type="text/javascript">
$(function() {
var pName = 'PROFILE_FIELD_NAME';

$('dl.user_profile dt:contains(' + pName + ')').next('dd').andSelf().hide();

$('dl.user_profile dt:contains(' + pName + ')').each(function() {
var dd = $(this).next('dd').text();
$(this).parents('td.c_user').find('div.usertitle').append('<span style="font-weight: 700; color: red">' + dd + '</span>');
});
});
</script>
Offline Profile Goto Top
 
FB92
Member Avatar
Member
[ *  * ]
Yay! Thank you.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Closed Requests · Next Topic »
Locked Topic
  • Pages:
  • 1