The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
Linkable Custom Profile Fields
I have a custom profile field appearing in a custom template as $userinfo[field32], I want the output to be linkable. However the content is a list of items seperated by commas.
Basically I am looking to do something similar to this hack here, but for VBulletin 3.7 and applied to a custom template with custom profile fields: https://vborg.vbsupport.ru/showthread.php?t=148705 So i'd like each item seperately linkable to the memberlist search. Here is the code I have which doesn't seem to be working: Code:
if ($userinfo['field32'] != '') { $links = explode ("\n", $userinfo['field32']); $output = array(); foreach ($links as $link) { $link = trim($link); if (!empty($link)) { $ouput[] = '<a href="' . $link . '">' . $link . '</a>'; } } $userinfo['field32'] = implode('<br />', $output); } |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|