Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2010
    Posts
    51
    Plugin Contributions
    0

    Default Custom footer producing error

    ok, I am editing /languages/CUSTOM/english.php with the following line:
    HTML Code:
     define('FOOTER_TEXT_BODY', '<div class="footer">
            &copy; 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 &amp; Entertaining" href="http://www.phgmag.com/food/">Food &amp; 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 www.shopphgmag.com/index.php
    although you can't see anything unless i add the old file back...

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: Custom footer producing error

    Perhaps the LINE BREAKS ?

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

    PHP Code:
    define('FOOTER_TEXT_BODY''<div class="footer"> &copy; 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 &amp; Entertaining" href="http://www.phgmag.com/food/">Food &amp; 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>'); 
    20 years a Zencart User

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default 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.
    20 years a Zencart User

  4. #4
    Join Date
    Aug 2010
    Posts
    51
    Plugin Contributions
    0

    Default Re: Custom footer producing error

    Nope, still got nothing. Very strange

  5. #5
    Join Date
    Aug 2010
    Posts
    51
    Plugin Contributions
    0

    Default Re: Custom footer producing error

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

    Thanks for the help.

 

 

Similar Threads

  1. Replies: 3
    Last Post: 13 Jun 2012, 01:43 PM
  2. Login in page completely blank not producing error
    By cshart in forum General Questions
    Replies: 1
    Last Post: 27 Apr 2011, 02:20 AM
  3. Custom Footer Background
    By tagon in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 15 Apr 2010, 07:15 AM
  4. Custom Footer for home page
    By jamesdenny in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 Feb 2009, 12:32 PM
  5. Producing Quotations
    By daveydimwit in forum General Questions
    Replies: 1
    Last Post: 19 Nov 2008, 11:56 PM

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