PDA

View Full Version : Format Profilefield


Infinity101
09-17-2012, 07:48 PM
Hello,

I have a custom field which user's generally write several paragraphs. I display this field manually {vb:raw bbuserinfo.field}.

When the field displays, it does not include the formatting the user specified. For example, a input with 3 paragraphs will display the entire field as one paragraph.

I have tried a plugin I found posted by Lynne, however had no such luck.

if ($profilefield['profilefieldid'] == 1)
{
$find = "\n";
$replace = "<br />";

$profilefield['value']= str_replace($find, $replace, $profilefield['value']);
}

I used member_complete and multiple other plugin locations in the hopes that I'd get lucky before posting.

Thanks for any help.


-- Edit --
This is for member.php in the aboutme tab.

kh99
09-18-2012, 02:27 AM
When you tried Lynne's plugin, did you change the '1' to your actual field id?

Infinity101
09-18-2012, 04:18 AM
Yes, the above is with two change I've made. The \n for the line break and the field value.