![]() |
Break in custom profile field?
I created a custom textfield and it doesn't break.
Here is my custom field, $userinfo[field3]. Is there anyway to add nl2br to it? |
You need to run profile fields through a vBulletin function that handles this: fetch_profilefield_display().
|
Quote:
|
AdminCP > User Profile Fields > User Profile Field Manager > (The profile field you are interested in) > Edit > Profile Field Type > Multiple-Line Text Box
vBulletin automatically converts linebreak to <br/> when the profile field value is displayed in profile pages (About Me). |
I do have Multiple-Line Text Box but vBulletin automatically doesn't convert the linebreak.
|
You need to run the function yourself (via a plugin), vBulletin only runs it in certain pages.
|
I tried adding
PHP Code:
PHP Code:
|
Err you forgot half of your colon .... your semicolon!
You might as well paint your semicolon key on your keyboard with bright yellow before doing any coding in C, C++, Java, Javascript, PHP etc .. ;);););););) |
Whoops forgot about that :o.
Now getting a different error: PHP Code:
|
The error means that fetch_profilefield_display() is expecting some arguments yet you didn't supply any.
Refer to vB API for the function at http://members.vbulletin.com/api/vBu...efield_display that states that the function fetch_profilefield_display() expects two arguments. |
All times are GMT. The time now is 03:31 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|