ANIM8R Posted April 3, 2013 Share Posted April 3, 2013 First off .. This is a GREAT forum !!! ... Im very new to PS but am absolutely loving it !!! Ok .. Once again need your help .. the site is 99% complete and I'm just tweaking some things that are annoying me lol ... One thing is the Block Contact Infos ... It doesn't matter how i put it into the field ( \n <br /> etc ) it is just lining up all the text on one like on the page ... Ive looked at the sql and it does have the line breaks represented. Anyone else run into this ? Cheers & thank you in advance - B Link to comment Share on other sites More sharing options...
vekia Posted April 3, 2013 Share Posted April 3, 2013 the answer is in blockcontactinfos.php file you've got there something like (line ~72) Configuration::updateValue('blockcontactinfos_address', ((isset($_POST['address']) && $_POST['address'] != '') ? $_POST['address'] : '')); construction of updateValue function looks like: public static function updateValue($key, $values, $html = false, $id_shop_group = null, $id_shop = null) cso, by default script deleted all html tags ($html = false) from field value ($values). What to do? it is easy. Just add true param there: Configuration::updateValue('blockcontactinfos_address', ((isset($_POST['address']) && $_POST['address'] != '') ? $_POST['address'] : ''), true); hope this will work Link to comment Share on other sites More sharing options...
maniot Posted June 13, 2013 Share Posted June 13, 2013 the answer is in blockcontactinfos.php file you've got there something like (line ~72) Configuration::updateValue('blockcontactinfos_address', ((isset($_POST['address']) && $_POST['address'] != '') ? $_POST['address'] : '')); construction of updateValue function looks like: public static function updateValue($key, $values, $html = false, $id_shop_group = null, $id_shop = null) cso, by default script deleted all html tags ($html = false) from field value ($values). What to do? it is easy. Just add true param there: Configuration::updateValue('blockcontactinfos_address', ((isset($_POST['address']) && $_POST['address'] != '') ? $_POST['address'] : ''), true); hope this will work Hi Vekia, Works perfect in PS 1.5.4.1 if you don't forget to add the comma before "true", for you it's obvious to add the comma to the parameter but for non coders like me it doesn't. In the configuration of the module add the <br /> after each line. regards, Maniot Link to comment Share on other sites More sharing options...
Recommended Posts