The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#7
|
||||
|
||||
![]()
What I've found is that the code works great for any Single-Line and Multi-Line text box. However, I've had trouble converting the code for Multiple/Single menu. It keeps outputting errors which either means that the code is wrong, or the way I'm converting it is incorrect. In any case, I will post the code below in case someone with a more skilled php brain is willing to help:
Here is my functional code once again which applies to Single-Line and Multi-Line text box: Code:
if ($userinfo[field12] != '') { $links = explode (",", $userinfo[field12]); $output = array(); foreach ($links as $link) { $link = trim($link); if (!empty($link)) { $output[] = '<a href="' .$vbulletin->options['bburl']. '/memberlist.php?' .$vbulletin->session->vars['sessionurl']. 'do=getall&field12=' .trim($link). '">' . $link . '</a>'; } } $userinfo[field12] = implode(', ', $output); } Here is the code included that I need converted into a similar format as above: Code:
$data = unserialize($profilefield['data']); $fieldvalues = explode(",", $profilefield['value']); $profilefield['value'] = ''; foreach ($data as $key => $value) { $key++; foreach ($fieldvalues as $key2 => $value2) { if (trim($value) == trim($value2)) { $profilefield['value'] .= '<a href="' .$vbulletin->options['bburl']. '/memberlist.php?' .$vbulletin->session->vars['sessionurl']. 'do=getall&field' .$profilefield[profilefieldid]. '=' .$key. '">' .$value2. '</a>, '; } } } $profilefield['value']= substr_replace($profilefield['value'],'',-2); $userinfo['field' . $profilefield[profilefieldid]] = $profilefield['value']; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|