osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Break <br> tag don't break line

This is a discussion on Break <br> tag don't break line within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; In credit card error message &lt;br> tag on screen: "The first four digits of the number entered are: 4111&lt;br>If that ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-21-2003, 05:07 AM
Lurker
 
Join Date: Nov 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kestas
Default Break <br> tag don't break line

In credit card error message &lt;br> tag on screen: "The first four digits of the number entered are: 4111&lt;br>If that number is correct, ..."

Bug report is still opened at
http://www.oscommerce.com/community/bugs,1344

Is there soliution, how &lt;br> break line, but do not display?

This error message is defined in english.php and other languages
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 01-16-2006, 08:30 PM
Lurker
 
Join Date: Jun 2005
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
ktough
Default RE: Break <br> tag don

Don't know if anyone still needs this, but I had the same problem myself. Go into /templates/{template_dir}/content/checkout_payment.tpl.php and near line 30, you should find a line like this:

Code:
&lt;?php echo tep_output_string_protected($error['error']); ?>
This particular tep function applies PHP's htmlspecialchars() to the string, converting the angle brackets to HTML entities, which causes the tags to be displayed rather than rendered.

Change the line to:

Code:
&lt;?php echo tep_output_string($error['error']); ?>
This should solve the problem.

-K
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

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

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
Sage Line 50 spottedhaggis osCMax v2 Customization/Mods 3 12-02-2006 07:27 AM
Price Break Integration ganast osCMax v1.7 General Mods Discussion 3 12-22-2004 01:47 PM
price-break-1.11 with ms2-max 1.5.5 fridgemags osCMax v1.7 General Mods Discussion 3 06-03-2004 06:47 AM
Automatically break a results set over multiple pages Anonymous osCMax v1.7 Discussion 0 04-02-2004 12:27 PM
how do i add a line break before the buy now button bagged89s10 osCMax v1.7 Discussion 2 03-04-2004 09:20 AM


All times are GMT -8. The time now is 04:56 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax