Results 1 to 10 of 10
  1. #1
    Join Date
    Nov 2005
    Location
    Midland, Texas
    Posts
    35
    Plugin Contributions
    1

    Default Code does not work in blank sidebox?

    Can anyone help, I keep getting a parse error from this code

    <!--BEGIN: Constant Contact Stylish Email Newsletter Form --> <div align="center"> <div style="width:160; background-color:
    #ffffff;"> <form name="ccoptin"action="http://visitor.constantcontact.com/d.jsp"target="_blank" method="post"style="margin-bottom:3;"><span
    class=""style="background-color:#003399; float:right;margin-right:5;margin-top:3"><img
    src="http://img.constantcontact.com/ui/images1/visitor/email1_trans.gif"alt="Email Newsletter icon, E-mail Newsletter icon, Email List icon,E-mail List
    icon" border="0"></span> <font style="font-weight: bold; font-family:Georgia,'Times New Roman',Times,serif; font-size:16px; color:#003399;">Sign up for
    our Email Newsletter</font> <input type="text name="ea" size="20" value="" style="font-family:Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:10px;
    border:1px solid #999999;"> <input type="submit" name="go" value="GO"
    class="submit"style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;"> <input type="hidden"name="m" value="1101254139927"> <input
    type="hidden" name="p" value="oi"></form> </div> </div> <!-- END: Constant Contact Stylish Email Newsletter Form --> <!-- BEGIN: SafeSubscribe -->
    <div align="center" style="padding-top:5px;"> <a href="http://www.constantcontact.com/safesubscribe.jsp" target="_blank"><img
    src="http://img.constantcontact.com/ui/images1/safe_subscribe_logo.gif"border="0" width="168" height="14" alt=""/></a> </div> <!-- END:
    SafeSubscribe--><!-- BEGIN: Email Marketing you can trust --> <div align="center" style="font-family:Arial,Helvetica,sans-serif;font-
    size:10px;color:#999999;">For <a href="http://www.constantcontact.com" style="text-decoration:none;font-family:Arial,Helvetica,sans-serif;font-
    size:10px;color:#999999;" target="_blank">Email Marketing</a> you can trust</div><!-- END: Email Marketing you can trust -->

  2. #2
    Join Date
    Nov 2005
    Location
    Midland, Texas
    Posts
    35
    Plugin Contributions
    1

    Default Re: Code does not work in blank sidebox?

    does anyone know what is wrong?
    the code works everywhere but on the blank sidesbox?

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Code does not work in blank sidebox?

    It would seem you've not put it into the sidebox file correctly.
    But, since you've not posted the entire file, it's impossible to help you.
    You also haven't said "what" parse error you're getting.
    Without real information, you'll get no helpful answers.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Nov 2005
    Location
    Midland, Texas
    Posts
    35
    Plugin Contributions
    1

    Default Re: Code does not work in blank sidebox?

    its the tpl_blank_sidebox file

    heres the entire code.
    PHP Code:
    <?php
    /**
     * blank sidebox - allows a blank sidebox to be added to your site
     *
     * @package templateSystem
     * @copyright 2007 Kuroi Web Design
      * @copyright Portions Copyright 2003-2007 Zen Cart Development Team
     * @license [url]http://www.zen-cart.com/license/2_0.txt[/url] GNU Public License V2.0
     * @version $Id: blank_sidebox.php 2007-05-26 kuroi $
     */

      
    $content '';
      
    $content .= '<div id="' str_replace('_''-'$box_id 'Content') . '" class="sideBoxContent">';

      
    // Replace the text and HTML tags between the apostophes on lines 19 and 20.
      // Use as many or as few lines using this model as you need for your custom content.
      // If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox_defines.php and include it as shown in line 19.
      // If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!)
      
    $content .= '<p>' TEXT_BLANK_SIDEBOX '</p>';
      
    $content .= '<p><!--BEGIN: Constant Contact Stylish Email Newsletter Form --> <div align="center"> <div style="width:160; background-color:
    #ffffff;"> <form name="ccoptin"action="http://visitor.constantcontact.com/d.jsp"target="_blank" method="post"style="margin-bottom:3;"><span 
    class=""style="background-color:#003399; float:right;margin-right:5;margin-top:3"><img 
    src="http://img.constantcontact.com/ui/images1/visitor/email1_trans.gif"alt="Email Newsletter icon, E-mail Newsletter icon, Email List icon,E-mail List
    icon" border="0"></span> <font style="font-weight: bold; font-family:Georgia,'
    Times New Roman',Times,serif; font-size:16px; color:#003399;">Sign up for
    our Email Newsletter</font> <input type="text name="ea" size="20" value="" style="font-family:Verdana,Geneva,Arial,Helvetica,sans-serif;font-size:10px; 
    border:1px solid #999999;"> <input type="submit" name="go" value="GO"
    class="submit"style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;"> <input type="hidden"name="m" value="1101254139927"> <input
    type="hidden" name="p" value="oi"></form> </div> </div> <!-- END: Constant Contact Stylish Email Newsletter Form --> <!-- BEGIN: SafeSubscribe --> 
    <div align="center" style="padding-top:5px;"> <a href="http://www.constantcontact.com/safesubscribe.jsp" target="_blank"><img 
    src="http://img.constantcontact.com/ui/images1/safe_subscribe_logo.gif"border="0" width="168" height="14" alt=""/></a> </div> <!-- END: 
    SafeSubscribe--><!-- BEGIN: Email Marketing you can trust --> <div align="center" style="font-family:Arial,Helvetica,sans-serif;font-
    size:10px;color:#999999;">For <a href="http://www.constantcontact.com" style="text-decoration:none;font-family:Arial,Helvetica,sans-serif;font-
    size:10px;color:#999999;" target="_blank">Email Marketing</a> you can trust</div><!-- END: Email Marketing you can trust --></p>'
    ;

      
    $content .= '</div>';
    ?>


    The error I am getting is this

    Parse error: syntax error, unexpected T_STRING in /home/wish/public_html/store/includes/templates/template_default/sideboxes/tpl_blank_sidebox.php on line 24

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Code does not work in blank sidebox?

    Try removing just this part from the middle:
    Code:
    'Times New Roman',
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Nov 2005
    Location
    Midland, Texas
    Posts
    35
    Plugin Contributions
    1

    Default Re: Code does not work in blank sidebox?

    what omg lol it worked, I guess tired eyes just cant catch everything eh. i cant tell you how long i looked at that code lol. thanks so much its working now :)
    Avie

  7. #7
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Code does not work in blank sidebox?

    An editor that has syntax highlighting can save hours and hours of work !

    Try Notepad++
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Nov 2005
    Location
    Midland, Texas
    Posts
    35
    Plugin Contributions
    1

    Default Re: Code does not work in blank sidebox?

    where would i find such an editor?

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Code does not work in blank sidebox?

    Notepad++ above, or check out the various items suggested here:
    http://www.zen-cart.com/wiki/index.php/Useful_Tools
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Nov 2005
    Location
    Midland, Texas
    Posts
    35
    Plugin Contributions
    1

    Default Re: Code does not work in blank sidebox?

    thank you :)

 

 

Similar Threads

  1. Replies: 5
    Last Post: 22 Nov 2014, 04:26 AM
  2. v150 why does this code not work?
    By nazca in forum General Questions
    Replies: 6
    Last Post: 9 Oct 2013, 02:19 PM
  3. v151 my custom jQuery code does not work, why??
    By tlyczko in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 27 Dec 2012, 12:09 AM
  4. v150 Blank sidebox mod not showing html code
    By coucho in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 24 Jun 2012, 03:18 AM
  5. change sidebox width does not work??
    By humbll in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 6 Jun 2007, 05:58 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR