Custom field being a image url

All style (template, theme and imageset) related questions for the new release; advice, feedback here please.
Post Reply
tamat
Registered User
Posts: 3
Joined: Fri Aug 01, 2008 11:34 pm

Custom field being a image url

Post by tamat »

Hi:

Im strying to put the url of an image as a custom field but when I use the {postrow.PROFILE_PERSONALIMAGE_VALUE} the forum dump something like this:
<!-- m --><a class="postlink" href="http://image_url...">http://image_url...</a><!-- m -->
Then is hard to put a <img> tag because it add all these tags that I don't want, I just want to specific content, not all that extra data.

How can I do this? Thanks.

tamat
Registered User
Posts: 3
Joined: Fri Aug 01, 2008 11:34 pm

Re: Custom field being a image url

Post by tamat »

Well I solved it changing a little bit the PHP code of the forum, I changed the function get_profile_value in includes/functions_profile_fields.php

Code: Select all

			case 'string':
			case 'text':
				if (!$value)
				{
					return NULL;
				}

				/* tamat removed this to enhace CPF with urls
				$value = make_clickable($value);
				$value = censor_text($value);
				$value = bbcode_nl2br($value);
				*/
				return $value;

Post Reply