View Full Version : html display errors when creating listing in v2.0
tsands
11-14-2006, 08:01 AM
whenever i create a new listing that includes html, the html code shows up as text. however, when i go to edit listing and click save the html shows up just fine. is there a reason this is happening and how do i fix it? it's really annoying having to re-edit each listing i create.
snerd
11-14-2006, 08:39 AM
Do you have Admin, Page Navigation & Listings, Allow HTML checked?
Mike
tsands
11-15-2006, 09:59 AM
Do you have Admin, Page Navigation & Listings, Allow HTML checked?
Mike
Sure do, Mike! All I have to do to fix the problem is edit the listing and click save. It's just really annoying to have to follow this procedure each time I add a new listing.
Dave Baker
11-15-2006, 09:06 PM
It seems the problem consist in the following
***Open admin/suggest-link.php and find code***
/** magic quotes stripping for text and textarea fields **/
if (($value['type'] == 'text') || ($value['type'] == 'textarea'))
{
$link[$field_name] = sql(html($field_value,ENT_QUOTES));
}
***Replace with following***
/** magic quotes stripping for text and textarea fields **/
if (($value['type'] == 'text') || ($value['type'] == 'textarea'))
{
if ($gDirConfig['html_tags'])
$link[$field_name] = sql($field_value);
else
$link[$field_name] = sql(html($field_value,ENT_QUOTES));
}
***Save file***
tsands
11-16-2006, 02:31 AM
thanks Dave! that did the trick.
Dave Baker
11-18-2006, 12:40 AM
Always at your service
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.