Log in

View Full Version : From Custom to Custom


SpeedStreet
03-17-2003, 02:00 PM
Question:

I've edited my forum to allow a text box vs. text line in a few of my custom profile fields. What I need, is when a user checks a profile, that the line breaks used in the Text Box are parsed properly.

e.g.

When you type in the text box, you can hit enter to return to the next line.

When you view a profile, it still shows everything on one line.

Any ideas?

SVTBlackLight01
08-12-2004, 09:54 PM
Did you get this figured out?

SpeedStreet
08-13-2004, 12:33 PM
Nope.

SiMateoAko
12-27-2006, 02:01 PM
Just figured this out if anyone is interested.

This works for vb 3.5.4. I'm sure it works on versions above this as well.

create a plugin with hook location "member_complete"

The code will look like this:

//This parses BBCODE and linebreaks for the memberinfo page

$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());

$userinfo[field1] = $parser->do_parse($userinfo[field1]);


Change the userfield accordingly (field2, field4, etc.)