Forums / General Questions / Code does not work in blank sidebox?

Code does not work in blank sidebox?

Locked

Started by avief on 14 Dec 2007, 6:21 AM · Views: 2,042

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
14 Dec 2007, 6:21 AM
#1
avief avatar

avief

New Zenner

Join Date:
Nov 2005
Location:
Midland, Texas
Posts:
28
Plugin Contributions:
1

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 -->
15 Dec 2007, 2:37 AM
#2
avief avatar

avief

New Zenner

Join Date:
Nov 2005
Location:
Midland, Texas
Posts:
28
Plugin Contributions:
1

Re: Code does not work in blank sidebox?

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

15 Dec 2007, 2:41 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

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.

15 Dec 2007, 5:41 AM
#4
avief avatar

avief

New Zenner

Join Date:
Nov 2005
Location:
Midland, Texas
Posts:
28
Plugin Contributions:
1

Re: Code does not work in blank sidebox?

its the tpl_blank_sidebox file

heres the entire 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

15 Dec 2007, 5:47 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Code does not work in blank sidebox?

Try removing just this part from the middle:```
'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.

15 Dec 2007, 5:49 AM
#6
avief avatar

avief

New Zenner

Join Date:
Nov 2005
Location:
Midland, Texas
Posts:
28
Plugin Contributions:
1

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

15 Dec 2007, 5:53 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

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.

15 Dec 2007, 5:54 AM
#8
avief avatar

avief

New Zenner

Join Date:
Nov 2005
Location:
Midland, Texas
Posts:
28
Plugin Contributions:
1

Re: Code does not work in blank sidebox?

where would i find such an editor?

15 Dec 2007, 5:55 AM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

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.

15 Dec 2007, 5:56 AM
#10
avief avatar

avief

New Zenner

Join Date:
Nov 2005
Location:
Midland, Texas
Posts:
28
Plugin Contributions:
1

Re: Code does not work in blank sidebox?

thank you :)