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 ] Mini Profile Links; hyperlinks in custom profile field
Topic Started: Nov 20 2017, 11:16 PM (342 Views)
Strifefox
Member Avatar
Tú Eres Pirata!
[ *  * ]
Board Address: http://w11.zetaboards.com/Dracadia/index/
Board Software: ZetaBoards
Description: So what I would like, is to allow my members to put multiple links in a mini profile field. However, instead of displaying a link, be able to customize the name of the link like you would with a URL code. My forum is an RP site and I'd like a way for members to share links to characters on the mini profiles instead of in the signature, if they wanted.
Edited by Strifefox, Nov 20 2017, 11:19 PM.
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">
//<![CDATA[
$('dl.user_profile dd:contains([/url])').each(function() {
$(this).html($(this).html().replace(/\[url=(.+?)\](.+?)\[\/url\]/ig, '<a href="$1" target="_blank">$2</a>'));
});
//]]>
</script>
Offline Profile Goto Top
 
Strifefox
Member Avatar
Tú Eres Pirata!
[ *  * ]
Thank you Cory! Though how would i use this after instaliation? I tried using a URL profile field and used the [url] bbcode, which looks very broken.
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Create a 1 line text or textbox profile field and use [url][/url] accordingly.
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
My code supports this format:
Code:
 
[url=][/url]
Offline Profile Goto Top
 
Helena
Member Avatar
M is for Mod

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.
Online Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic