The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
You need to run profile fields through a vBulletin function that handles this: fetch_profilefield_display().
|
#3
|
|||
|
|||
Ah ok. Sorry (still learning PHP), but I have to ask; how will I proceed in doing this?
|
#4
|
|||
|
|||
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). |
#5
|
|||
|
|||
I do have Multiple-Line Text Box but vBulletin automatically doesn't convert the linebreak.
|
#6
|
||||
|
||||
You need to run the function yourself (via a plugin), vBulletin only runs it in certain pages.
|
#7
|
|||
|
|||
I tried adding
PHP Code:
PHP Code:
|
#8
|
|||
|
|||
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 .. |
#9
|
|||
|
|||
Whoops forgot about that .
Now getting a different error: PHP Code:
|
#10
|
|||
|
|||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|