Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 22 May 2004, 11:35
GregorS's Avatar
GregorS GregorS is offline
 
Join Date: Dec 2003
Real name: Gregor
Question no line break with a profilefield

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

any chance to fetch out the custom-fields with line breaks???

thaks!
Attached Images
File Type: jpg custfields.jpg (46.7 KB, 20 views)
Reply With Quote
  #2  
Old 12 Aug 2004, 22:50
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
I am having the same problem. Anyone have an answer?
__________________
MODern ENGINEuity
Modular Ford Powered Community

Automotive Books, Movies, Games and More!
Reply With Quote
  #3  
Old 13 Aug 2004, 15:35
GregorS's Avatar
GregorS GregorS is offline
 
Join Date: Dec 2003
Real name: Gregor
Originally Posted by SVTBlackLight01
I am having the same problem. Anyone have an answer?
Hi!

I found the problem!

It is the "class" command!

Without you have no trouble!

cu
Reply With Quote
  #4  
Old 14 Aug 2004, 06:47
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
"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.
__________________
MODern ENGINEuity
Modular Ford Powered Community

Automotive Books, Movies, Games and More!

Last edited by SVTBlackLight01 : 25 Sep 2004 at 03:15.
Reply With Quote
  #5  
Old 14 Aug 2004, 12:22
GregorS's Avatar
GregorS GregorS is offline
 
Join Date: Dec 2003
Real name: Gregor
Originally Posted by SVTBlackLight01
"class", as is: 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.
please post your code....

My code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #6  
Old 18 Aug 2004, 23:19
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
In this case I am using a separate table that contains all the info of the user fields.

It looks something like this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Here is an example of a how the fields are being displayed.

http://www.modernengineuity.com/fm/feature.html?u=38
__________________
MODern ENGINEuity
Modular Ford Powered Community

Automotive Books, Movies, Games and More!
Reply With Quote
  #7  
Old 28 Aug 2004, 15:37
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Anybody have any ideas on this?
__________________
MODern ENGINEuity
Modular Ford Powered Community

Automotive Books, Movies, Games and More!
Reply With Quote
  #8  
Old 28 Aug 2004, 16:26
GregorS's Avatar
GregorS GregorS is offline
 
Join Date: Dec 2003
Real name: Gregor
Originally Posted by SVTBlackLight01
Anybody have any ideas on this?

it look´s ok, what´s the problem???
Reply With Quote
  #9  
Old 28 Aug 2004, 16:29
filburt1 filburt1 is offline
 
Join Date: Feb 2002
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 .
Reply With Quote
  #10  
Old 29 Aug 2004, 00:21
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
filburt1,

I've tried the second method, but I must not be looking in the right file. Where would this need to be added?
__________________
MODern ENGINEuity
Modular Ford Powered Community

Automotive Books, Movies, Games and More!

Last edited by SVTBlackLight01 : 24 Sep 2004 at 00:38.
Reply With Quote
  #11  
Old 21 Sep 2004, 03:45
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
This has really got me stumped.
__________________
MODern ENGINEuity
Modular Ford Powered Community

Automotive Books, Movies, Games and More!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 04:43.

Layout Options | Width: Wide Color: