Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2009
    Location
    Cornelius, NC
    Posts
    334
    Plugin Contributions
    0

    Default Guess whats wrong with this code.... (footer links)

    ok, so im trying to make the "copyright 2009" in the footer actually link to my copyright page...

    here is the original code:
    Code:
    define('FOOTER_TEXT_BODY', 'Copyright © ' . 
    date('Y') . ' <a href="' . zen_href_link(FILENAME_DEFAULT)
     . '" target="_blank">' . STORE_NAME . '</a>. Powered by 
    <a href="http://www.zen-cart.com" target="_blank">Zen 
    Cart</a>');

    heres what i "thought" it should be, but ive got a ' or a ? or a @#$%#$%(%#@ in the wrong place i guess, because when i make a change and reload page, it is blank....

    Code:
    define('FOOTER_TEXT_BODY',<a href="http://customk9design.com/catalogzen
    /index.php?main_page=page&id=1">Copyright</a> '&copy;
     ' . date('Y') . ' <a href="' . zen_href_link(FILENAME_DEFAULT)
     . '" target="_blank">' . STORE_NAME . '</a>. Powered by 
    <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>');

  2. #2
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: Guess whats wrong with this code.... (footer links)

    Quote Originally Posted by customk1 View Post
    ok, so im trying to make the "copyright 2009" in the footer actually link to my copyright page...

    here is the original code:
    Code:
    define('FOOTER_TEXT_BODY', 'Copyright &copy; ' . 
    date('Y') . ' <a href="' . zen_href_link(FILENAME_DEFAULT)
     . '" target="_blank">' . STORE_NAME . '</a>. Powered by 
    <a href="http://www.zen-cart.com" target="_blank">Zen 
    Cart</a>');

    heres what i "thought" it should be, but ive got a ' or a ? or a @#$%#$%(%#@ in the wrong place i guess, because when i make a change and reload page, it is blank....

    Code:
    define('FOOTER_TEXT_BODY',<a href="http://customk9design.com/catalogzen
    /index.php?main_page=page&id=1">Copyright</a> '&copy;
     ' . date('Y') . ' <a href="' . zen_href_link(FILENAME_DEFAULT)
     . '" target="_blank">' . STORE_NAME . '</a>. Powered by 
    <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>');
    You forgot to move the ' from in front of &copy to the start of your defined content...

    Code:
    define('FOOTER_TEXT_BODY', '<a href="http://customk9design.com/catalogzen
    /index.php?main_page=page&id=1">Copyright</a>&copy;
     ' . date('Y') . ' <a href="' . zen_href_link(FILENAME_DEFAULT)
     . '" target="_blank">' . STORE_NAME . '</a>. Powered by 
    <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>');
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Guess whats wrong with this code.... (footer links)

    Try copying and pasting this:

    You are using a "plain text editor" for this ? correct??

    Code:
    define('FOOTER_TEXT_BODY',<a href="http://customk9design.com/catalogzen/index.php?main_page=page&id=1">Copyright</a>  &copy; ' . date('Y') . ' <a href="' . zen_href_link(FILENAME_DEFAULT) . '" target="_blank">' . STORE_NAME . '</a>. Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>');
    Zen-Venom Get Bitten

  4. #4
    Join Date
    Mar 2009
    Location
    Cornelius, NC
    Posts
    334
    Plugin Contributions
    0

    Default Re: Guess whats wrong with this code.... (footer links)

    buyip, thanks for your prompt reply...
    i figured there was a wayward ' somewhere... unfortunately, i know just enough at this point to get in trouble, when it comes to writing scripts and code..

    but your version worked just fine!

    thanks kobra also for replying so quick!

 

 

Similar Threads

  1. v150 What's wrong with this code...
    By Coins2012 in forum Addon Templates
    Replies: 7
    Last Post: 3 Feb 2012, 03:13 PM
  2. whats wrong with this css for my dropdown menu?
    By 1kell in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 28 May 2010, 02:47 AM
  3. Whats wrong with my add_cart code?!
    By enigmabomb in forum General Questions
    Replies: 3
    Last Post: 1 Feb 2008, 11:58 PM
  4. Whats wrong with this query? Fresh eyes needed ;)
    By Reesy in forum General Questions
    Replies: 9
    Last Post: 11 Sep 2006, 05:15 AM

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