Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Custom footer producing error

Custom footer producing error

Views: 724

Results 1 to 5 of 5
29 Apr 2011, 6:40 PM
#1
inestine avatar

inestine

New Zenner

Join Date:
Aug 2010
Posts:
51
Plugin Contributions:
0

Custom footer producing error

ok, I am editing /languages/CUSTOM/english.php with the following line:

 define('FOOTER_TEXT_BODY', '<div class="footer">
        © 2010 Cities West Publishing, Inc. All rights reserved. 15169 N. Scottsdale Road Suite 310 Scottsdale, AZ 85254<br>
        <a class="" title="Home" href="http://www.phgmag.com">Home</a> | <a class="" title="For the Home" href="http://www.phgmag.com/home/">For the Home</a> | <a class="" title="For the Garden" href="http://www.phgmag.com/garden/">For the Garden</a> | <a class="" title="Food & Entertaining" href="http://www.phgmag.com/food/">Food & Entertaining</a> | <a class="" title="Resources" href="http://www.phgmag.com/resources/">Resources</a> | <a class="" title="Article Archives" href="http://www.phgmag.com/archive/">Article Archives</a> | <a class="" title="Events" href="http://www.phgmag.com/global/events/">Events</a> | <a class="" title="About Us" href="http://www.phgmag.com/global/about/">About Us</a> | <a class="" title="Contact Us" href="http://www.phgmag.com/global/contact/">Contact Us</a> | <a class="" target="_blank" title="Subscribe Today!" href="http://w1.buysub.com/online/PHG/website">Subscribe Today!</a><br>
        <a target="_blank" class="" title="Phoenix Magazine" href="http://www.phoenixmag.com/">Phoenix Magazine</a> | <a class="" title="Subscriber Services" href="http://www.phgmag.com/global/services/">Subscriber Services</a> | <a class="" title="Advertise" href="http://www.phgmag.com/global/advertise/">Advertise</a> | <a class="" title="Media Kit" id="ctl00_ctl00_A1" href="http://www.phgmag.com/global/media/">Media Kit</a> | <a class="" title="Privacy Policy" href="http://www.phgmag.com/global/privacy/">Privacy Policy</a> | <a class="" title="Terms of Use" href="http://www.phgmag.com/global/terms/">Terms of Use</a> | <a class="" title="Site Map" href="http://www.phgmag.com/global/sitemap/">Site Map</a><br>
        </div>');

save it, then I get this:
PHP Parse error: syntax error, unexpected $end in /home/shopphgm/public_html/includes/languages/PHG_Template/english.php on line 1

I have another site that I've done this to and it works, not sure why this isn't

Any ideas?

btw - the site is https://www.shopphgmag.com/index.php
although you can't see anything unless i add the old file back...

29 Apr 2011, 6:47 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Custom footer producing error

Perhaps the LINE BREAKS ?

The whole statement needs to be on ONE LINE in your php file.

define('FOOTER_TEXT_BODY', '<div class="footer"> © 2010 Cities West Publishing, Inc. All rights reserved. 15169 N. Scottsdale Road Suite 310 Scottsdale, AZ 85254<br><a class="" title="Home" href="http://www.phgmag.com">Home</a> | <a class="" title="For the Home" href="http://www.phgmag.com/home/">For the Home</a> | <a class="" title="For the Garden" href="http://www.phgmag.com/garden/">For the Garden</a> | <a class="" title="Food & Entertaining" href="http://www.phgmag.com/food/">Food & Entertaining</a> | <a class="" title="Resources" href="http://www.phgmag.com/resources/">Resources</a> | <a class="" title="Article Archives" href="http://www.phgmag.com/archive/">Article Archives</a> | <a class="" title="Events" href="http://www.phgmag.com/global/events/">Events</a> | <a class="" title="About Us" href="http://www.phgmag.com/global/about/">About Us</a> | <a class="" title="Contact Us" href="http://www.phgmag.com/global/contact/">Contact Us</a> | <a class="" target="_blank" title="Subscribe Today!" href="http://w1.buysub.com/online/PHG/website">Subscribe Today!</a><br><a target="_blank" class="" title="Phoenix Magazine" href="http://www.phoenixmag.com/">Phoenix Magazine</a> | <a class="" title="Subscriber Services" href="http://www.phgmag.com/global/services/">Subscriber Services</a> | <a class="" title="Advertise" href="http://www.phgmag.com/global/advertise/">Advertise</a> | <a class="" title="Media Kit" id="ctl00_ctl00_A1" href="http://www.phgmag.com/global/media/">Media Kit</a> | <a class="" title="Privacy Policy" href="http://www.phgmag.com/global/privacy/">Privacy Policy</a> | <a class="" title="Terms of Use" href="http://www.phgmag.com/global/terms/">Terms of Use</a> | <a class="" title="Site Map" href="http://www.phgmag.com/global/sitemap/">Site Map</a><br></div>');
29 Apr 2011, 6:49 PM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Custom footer producing error

Oh... and you may also get html validation errors by not having CLASS parameters defined... (class=""). If there is no CLASS to define, then get rid of the parameter.

29 Apr 2011, 8:32 PM
#4
inestine avatar

inestine

New Zenner

Join Date:
Aug 2010
Posts:
51
Plugin Contributions:
0

Re: Custom footer producing error

Nope, still got nothing. Very strange

29 Apr 2011, 8:37 PM
#5
inestine avatar

inestine

New Zenner

Join Date:
Aug 2010
Posts:
51
Plugin Contributions:
0

Re: Custom footer producing error

ok, just closed everything and reopened. Resaved and it worked... Gremlins.

Thanks for the help.