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 ] Coding in Mini Profile Fields
Topic Started: Jul 18 2012, 08:59 PM (787 Views)
Sireana
Member Avatar
Member
[ * ]
Site URL: http://w11.zetaboards.com/JennifersTestBoard/
Format: Zetaboards

I'm looking for a code that will allow someone to put in a link in their mini profile fields as well as be able to break line. For example, I want to be able to have a character list in my mini profile field with each character as a link to the biography.
Is there a way to do a break line as well as making the text links?

I hope this makes sense.
Bump. ;S
Edited by Sireana, Jul 19 2012, 11:45 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">
$('dl.user_profile dd').each(function () {
$(this).html($(this).html().replace(/\[url=(.+?)\](.+?)\[\/url\]/gi, '<a href="$1" target="_blank">$2</a>').replace(/\[br\]/gi, '<br />'));
});
</script>
That will allow the following formats in custom mini profile fields:

Hyperlink:
Code:
 
[url=URL]Title[/url]
Line-break:
Code:
 
[br]
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