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 ] Color Edit Custom Profile Field
Topic Started: Aug 9 2012, 07:41 PM (813 Views)
enias
Member
[ *  * ]
Board Address: ( 'Private')
Board Software: (ZetaBoards )
Description:

is there a code for enable bold and color to Edit Custom Profile Field, what I want is that when I fill this filed for some users to appear in their profile they can see it bold and with color...
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
I could make a code that enables the bold and color BBCodes for custom profile fields, but that would allow users to use those BBCodes in custom profile fields as well, were you looking for the option to bold and color custom profile fields for administrators only?
Offline Profile Goto Top
 
enias
Member
[ *  * ]
It would be ok, onlu for administrator... but if you cant do it because it is more complicated it is ok if all users can too
hey cory I am gonna make you this ask, because I am looking for a code for being able to edit/change the joinable date of any member... I have found some related to profile made by you but thy are to hide and edit other things but not the join date
Edited by enias, Aug 10 2012, 11:28 AM.
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 styleField(profileID, fieldName, color) {
if (location.href.indexOf('/profile/' + profileID + '') !== -1) $('dl.user_profile dt:contains(' + fieldName + ') + dd').css({
'font-weight': '700',
'color': color
});

$('td.c_username').each(function () {
$(this).has('a[href*="/profile/' + profileID + '"]').parent('tr[id*="post-"]').next('tr').find('td.c_user dl.user_profile dt:contains(' + fieldName + ') + dd').css({
'font-weight': '700',
'color': color
});
});
}

styleField('PROFILE_ID', 'FIELD_NAME', 'COLOR');
</script>
Edit the capitalized text and you may repeat that line to style more profile fields on a user basis.
Offline Profile Goto Top
 
enias
Member
[ *  * ]
I was thinking of one like the colored tpic, a code and you are able to use BB Code in topics, or like the color for groups... just think about it, I think it would be more practical
what I am looking for is that when I make the new field example

Award 2012: (Admin only, shown in topic)

Best player

i want the user to see that in their profile, but i want the title AWRAD 2012 can be colored or bold...

I dare to request because you said that you were able to do it but that would allow users to use those BBCodes in custom profile fields as well

I dont care if they can use it too.. i prefere a practical way to look for every ID user

Please
Edited by enias, Aug 10 2012, 12:53 PM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
So you were thinking allow bold and color BBCode in custom profile fields for administrators only? Members will receive an error message if they try to use BBCode in custom profile fields? If you wanted to style the field name instead of the result, you would probably have to use what I used above, only removing '+ dd'.
Offline Profile Goto Top
 
enias
Member
[ *  * ]
let me do a capture
Posted Image

What I want to be colored and bold it the title TVA+ Awards 2011 and TVA+ De ORO the title fields.

So I want to be able to use BBCodes when I create those field

So if you did this:

Posted Image

As a result every user could see the title in red and bold as this example id BB code worked there

Similar to a code I saw here the allows you to use BBcode in topic title but as usual I cant find it


Edited by enias, Aug 10 2012, 01:14 PM.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
BBCode in Topic Titles: http://resources.zetaboards.com/topic/5145807/1/

Admin CP Posted Image Themes Posted Image Board Template Posted Image Below the Board
Code:
 
<script type="text/javascript">
$('dl.user_profile dt').each(function () {
$(this).html($(this).html().replace(/\[color=(.+?)\](.+?)\[\/color\]/gi, '<span style="color: $1">$2</span>').replace(/\[b\](.+?)\[\/b\]/gi, '<strong>$1</strong>'));
});
</script>
Try that to allow color and bold BBCodes to be used in profile field titles.
Offline Profile Goto Top
 
enias
Member
[ *  * ]
Posted Image

yes perfect I alredy did it with one!!

Should I do a different post for the joined date request??


Thank you so Much cory!!!!!!!
:D :D :D :D :D :D :D
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 changeDate(profileID, newDate) {
if (location.href.indexOf('/profile/' + profileID + '') !== -1) $('dl.user_info dt:contains(Joined:) + dd').html(newDate);

$('td.c_username').each(function () {
$(this).has('a[href*="/profile/' + profileID + '"]').parent('tr[id*="post-"]').next('tr').find('td.c_user dl.user_info dt:contains(Joined:) + dd').html(newDate);
});
}

changeDate('PROFILE_ID', 'NEW_DATE');
</script>
Change the capitalized text and repeat that line to change more users joined dates.
Offline Profile Goto Top
 
Steve
Member Avatar
patriot
[ *  *  *  *  *  *  *  *  *  * ]
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