The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Images in Custom Fields
First off, this in NO WAY has anything to do with displaying anything in the postbit. I am wondering how to get a images to display in a custom field in a user PROFILE.
example: The custom "field7" asks what is your favorite instrument? option1:guitar option2:trumpet option3:drums when the user selects, for instance, "drums" then a picture of drums is displayed in his user profile NOT POSTBIT. --------------- Added [DATE]1324857983[/DATE] at [TIME]1324857983[/TIME] --------------- I found a post on how to parse links into user profile fields my creating a plugin for the member_customfields hook. I am wanting to do this but instead of it changing to a hyperlink in the profile field I want it to change to an image that I have on my server. How do I change this code to do this? Code:
if ($profilefield['value'] != '' AND $profilefield[profilefieldid] == 6) { $links = explode ("\n", $profilefield['value']); $output = array(); foreach ($links as $link) { $link = trim($link); if (!empty($link)) { $output[] = '<a href="' . $link . '">' . $link . '</a>'; } } $profilefield['value'] = implode('<br />', $output); } https://vborg.vbsupport.ru/showthrea...ht=parse+field |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|