Results 1 to 2 of 2

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 &amp;lt;br&gt; tag on screen: &quot;The first four digits of the number entered are: 4111&amp;lt;br&gt;If that ...

      
  1. #1
    Lurker
    Join Date
    Nov 2003
    Posts
    1
    Rep Power
    0


    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

  2. #2
    Lurker
    Join Date
    Jun 2005
    Posts
    2
    Rep Power
    0


    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&#40;$error&#91;'error'&#93;&#41;; ?>
    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&#40;$error&#91;'error'&#93;&#41;; ?>
    This should solve the problem.

    -K

Similar Threads

  1. Sage Line 50
    By spottedhaggis in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 12-02-2006, 07:27 AM
  2. Price Break Integration
    By ganast in forum osCMax v1.7 General Mods Discussion
    Replies: 3
    Last Post: 12-22-2004, 01:47 PM
  3. price-break-1.11 with ms2-max 1.5.5
    By fridgemags in forum osCMax v1.7 General Mods Discussion
    Replies: 3
    Last Post: 06-03-2004, 06:47 AM
  4. Automatically break a results set over multiple pages
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 04-02-2004, 12:27 PM
  5. how do i add a line break before the buy now button
    By bagged89s10 in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 03-04-2004, 09:20 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •