Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Guess whats wrong with this code.... (footer links)

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

Locked

Views: 1,848

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
30 Mar 2009, 12:23 AM
#1
customk1 avatar

customk1

Zen Follower

Join Date:
Mar 2009
Location:
Cornelius, NC
Posts:
334
Plugin Contributions:
0

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:

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.... :frusty:

define('FOOTER_TEXT_BODY',<a href="http://customk9design.com/catalogzen
/index.php?main_page=page&id=1">Copyright</a> '©
 ' . 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>');
30 Mar 2009, 12:27 AM
#2
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

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

customk1:

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

here is the original 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.... :frusty:
> 
> ```
define('FOOTER_TEXT_BODY',<a href="http://customk9design.com/catalogzen
/index.php?main_page=page&id=1">Copyright</a> '©
 ' . 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...

define('FOOTER_TEXT_BODY', '<a href="http://customk9design.com/catalogzen
/index.php?main_page=page&id=1">Copyright</a>©
 ' . 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>');
30 Mar 2009, 12:30 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

Try copying and pasting this:

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

define('FOOTER_TEXT_BODY',<a href="http://customk9design.com/catalogzen/index.php?main_page=page&id=1">Copyright</a>  © ' . 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>');
30 Mar 2009, 12:40 AM
#4
customk1 avatar

customk1

Zen Follower

Join Date:
Mar 2009
Location:
Cornelius, NC
Posts:
334
Plugin Contributions:
0

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!