![]() |
no line break with a profilefield
1 Attachment(s)
Hi!
I adapt the template memberinfo and have a small problem with a profilefield (Biography) with the variable "userinfo[fieldX]" i use it in a table and the variable make no line break my code: Code:
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="500" align="center"> thaks! |
I am having the same problem. Anyone have an answer?
|
Quote:
I found the problem! It is the "class" command! Without you have no trouble! ;) cu |
"class", as in: class="custlisting"
I'm using standard classes (alt1), and removing the class doesn't have an affect on the display. I don't know if it matters, but I am using custom profile fields. |
Quote:
My code: Code:
..... |
In this case I am using a separate table that contains all the info of the user fields.
It looks something like this: Code:
<tr> http://www.modernengineuity.com/fm/feature.html?u=38 |
Anybody have any ideas on this?
|
Quote:
it look?s ok, what?s the problem??? |
If you mean the user typed a newline and it doesn't show up, that is because the \n character has no effect in HTML other than adding a space if there wasn't one there initally. Two solutions:
1. Use vB's BB code parsing functions to convert it to vB code, which interprets newline characters. 2. Use http://www.php.net/nl2br . |
filburt1,
I've tried the second method, but I must not be looking in the right file. Where would this need to be added? |
All times are GMT. The time now is 09:02 PM. |
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:
|