The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
Linkable Custom Profile Fields
I don't know why for the love of god this hasn't been requested sooner, but I cannot find a way to get this script to work:
Code:
if ($profilefield['value'] != '' AND $profilefield[profilefieldid] == 02) { $links = explode ("\n", $profilefield['value']); $output = array(); foreach ($links as $link) { $link = trim($link); if (!empty($link)) { $ouput[] = '<a href="' . $link . '">' . $link . '</a>'; } } $profilefield['value'] = implode('<br />', $output); } I have managed to find a work around whereas if the user inputs a word that doesn't include any spaces, I can make it linkable and show accurate results. HOWEVER, when the inputed content has a space, or commas, it would link the entire content, rather than seperating it, which is essentially what I hoped I could accomplish. This should either be possible or included as a feature within the next version of VBulletin, it seems logical to me as atm the only way to find matching people based on profile fields is through the Advanced User Search only. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|