Support Forums

Old 04-09-2009, 12:16 PM   #1
Member
 
marketingsolutions's Avatar
 
Join Date: Sep 2006
Location: Ilfracombe - England
Posts: 57
Rep Power: 12
marketingsolutions is on a distinguished road
Send a message via Skype? to marketingsolutions
Default Linebreaks stripped from Extra Fields

Hi

I have managed to find another post with the same problem, but there was no solution - How can i preserve linebreaks in extra fields when a user has used the return key? I would normally use str_replace() to replace all \n with <br />, but as they are removed from the listing upon insertion then I cant do this.

I have tried removing the trim() function from GetSQLValueString() in functions.php, and from the extra field functions in Listings.php, to no avail.

Can anyone tell me what I need to change this? The change is required as our extra fields allow users to enter sample menus - these obviously need to be seperated with breaks, not one massive line of text on one line!

Ben
marketingsolutions is offline   Reply With Quote
Old 04-09-2009, 08:55 PM   #2
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,694
Rep Power: 108
Eric Barnes is a jewel in the rough
Default

What type of extra field is this? A textarea?
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Line breaks stripped from multi-line text extra field HotAir v4 Questions & Support 4 11-17-2008 12:07 PM
extra fields redstar v4 Questions & Support 2 11-17-2008 10:36 AM
Extra Fields Paul v3.1 Questions & Support 4 02-01-2007 07:35 PM
Extra fields calaf6 v3.1 Questions & Support 2 05-17-2006 10:39 AM


All times are GMT -4. The time now is 06:56 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0