The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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. Code:
if ($profilefield['profilefieldid'] == 1) { $find = "\n"; $replace = "<br />"; $profilefield['value']= str_replace($find, $replace, $profilefield['value']); } Thanks for any help. -- Edit -- This is for member.php in the aboutme tab. |
#2
|
|||
|
|||
![]()
When you tried Lynne's plugin, did you change the '1' to your actual field id?
|
#3
|
|||
|
|||
![]()
Yes, the above is with two change I've made. The \n for the line break and the field value.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|