phpBB

Development Discussion Board

phpBB's testing ground of bleeding edge code
Advanced search

Custom profile field

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

Custom profile field

Postby kerry2008 » Tue Oct 14, 2008 8:35 am

Hi, I'm quite new to being admin on a forum. I apologise if this is posted in wrong section. I am trying to add a custom profile field to display blinkies, mainly so i can use blinkies as competition prizes such as poster of the month etc. I had tried to do the profile field but when I copy and pste the code for the blinkies it is just text and no blinkie. Can anyone help me with this please. Thank you in advance for any replies. :D
I am using phpbb3
kerry2008
Registered User
 
Posts: 1
Joined: Tue Oct 14, 2008 8:32 am

Re: Custom profile field

Postby nic jackson » Mon Nov 17, 2008 12:13 pm

im tryin to find this out tried all i can think of still no joy so please help :D
nic jackson
Registered User
 
Posts: 1
Joined: Thu Nov 13, 2008 2:46 pm

Re: Custom profile field

Postby darcie » Mon Nov 17, 2008 3:39 pm

This is because custom profile fields do not parse BBCode, smilies, or links automatically. You'll need to add a MOD like Parse BBCode in Custom Profile Fields. Please direct all similar questions to the main board, http://www.phpbb.com/community/, as this one is for development rather than support.
User avatar
darcie
Moderator Team
Moderator Team
 
Posts: 186
Joined: Mon Mar 12, 2007 7:32 pm
Location: Almost the coast

Re: Custom profile field

Postby PayBas » Wed Nov 26, 2008 1:31 pm

Darcie wrote:This is because custom profile fields do not parse BBCode, smilies, or links automatically. You'll need to add a MOD like Parse BBCode in Custom Profile Fields. Please direct all similar questions to the main board, http://www.phpbb.com/community/, as this one is for development rather than support.

Are you sure about that? I remember making a mod that would display an image in the template that would turn into a blue image if the user has specified an URL in a specific CPF. It kept screwing up because it parsed the URL every time, even though it was a CPF.

I had to mod the functions_profile_fields.php just to get it to work:
Code: Select all
            $value = make_clickable($value);
            $value = censor_text($value);
            $value = bbcode_nl2br($value);
            return $value;

Changed to:
Code: Select all
            $value = censor_text($value);

            if ($field_ident == ('mycpf1' || 'mycpf2'))
            {
               // Do nothing
            }
            else
            {
               $value = make_clickable($value);
               $value = bbcode_nl2br($value);
            }
            return $value;
PayBas
Registered User
 
Posts: 6
Joined: Tue Jul 29, 2008 6:08 pm


Return to [3.0/Olympus] Styling

Who is online

Users browsing this forum: Bing [Bot] and 8 guests