phpBB

Development Discussion Board

phpBB's testing ground of bleeding edge code
Advanced search

Custom field being a image url

All style (template, theme and imageset) related questions for the new release; advice, feedback here please.

Custom field being a image url

Postby tamat » Sun Aug 03, 2008 2:31 pm

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

Postby tamat » Sun Aug 03, 2008 6:59 pm

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;
tamat
Registered User
 
Posts: 3
Joined: Fri Aug 01, 2008 11:34 pm


Return to [3.0/Olympus] Styling

Who is online

Users browsing this forum: No registered users and 2 guests