Forums / General Questions / Adding to the Copyright@ zencart

Adding to the Copyright@ zencart

Locked

Views: 1,480

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
16 Jul 2008, 1:40 PM
#1
theeggman avatar

theeggman

New Zenner

Join Date:
Jul 2008
Posts:
18
Plugin Contributions:
0

Adding to the Copyright@ zencart

My website deals with images, so i would like to add an additional © notice at the bottom, but trying to do so, i managed to totally get rid of everything.

The /englis.php file still show up as originally, but nothing is showing now :no:

define('FOOTER_TEXT_BODY', 'Copyright © ' . date('Y') . ' <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>. Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>');

How do it get it all back on track?

16 Jul 2008, 1:50 PM
#2
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Location:
AZ
Posts:
1,890
Plugin Contributions:
0

Re: Adding to the Copyright@ zencart

TheEggman:

My website deals with images, so i would like to add an additional © notice at the bottom, but trying to do so, i managed to totally get rid of everything.

The /englis.php file still show up as originally, but nothing is showing now :no:

define('FOOTER_TEXT_BODY', 'Copyright © ' . date('Y') . ' <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>. Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>');

How do it get it all back on track?

Did you make a copy of this file and place in it in your "custom" folder?
What does the file in the "custom" folder read for the define Footer_Text?

You can simply copy from the orig and paste the correct lines to the edited
file.

Tina

16 Jul 2008, 2:02 PM
#3
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Adding to the Copyright@ zencart

This is what I have in one of my custom english.php files (includes/languages/MY_TEMPLATE/english.php). You can see it in action at the Fan Odyssey site in my sig.

define('FOOTER_TEXT_BODY', 'Copyright © 2001-2007 <a href="http://www.fanodyssey.org" target="_self">Fan Odyssey</a> and <a href="http://www.pamperedwebsites.com" target="_blank">Pampered Websites</a>.
<br />Maintained by <a href="http://www.pamperedwebsites.com" target="_blank">Pampered Websites</a>.
<br />Hosted by <a href="http://www.camelot-hosting.com" target="_blank">Camelot Hosting</a>.
<br />Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart</a>.');

HTH!

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

16 Jul 2008, 2:25 PM
#4
theeggman avatar

theeggman

New Zenner

Join Date:
Jul 2008
Posts:
18
Plugin Contributions:
0

Re: Adding to the Copyright@ zencart

I dont have a custom made template...just use the classic zen cart one.
So all i should need to do is change the /english.php files (according to what ive read), which i did, and ended up with...nothing. The whole text line went poof

Atm all i have showing is the ip address.

Im not sure what you mean by -
What does the file in the "custom" folder read for the define Footer_Text? -
not sure which file your referring to...

Im new at this, so i probably need specific details :blush:

16 Jul 2008, 2:51 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Adding to the Copyright@ zencart

Before you go any further, go here:

https://www.zen-cart.com/tutorials/index.php?article=142

and create your own template, even if it's just a copy of 'classic'.

A new version of Zencart is due this year sometime, and when you upgrade, all your modifications will be overwritten if you use the 'classic' template.

Chances are when you edited the file, you accidentally left a space or something. I'd re-upload an unmodified copy of english.php to the original folder and to the override folder you create as part of your template and start over, using afo's example as a guide.

16 Jul 2008, 2:52 PM
#6
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Adding to the Copyright@ zencart

PLEASE create a custom template! If you don't, all your changes will be overwritten by the next upgrade/update and all the work you put into your site will be LOST. :shocking:

There's a ton of information on the override (custom template) system in the tutorials/FAQ.

To create a very basic custom template (you can build from there), you need:

  • includes/languages/YOUR_TEMPLATE/english.php
  • includes/languages/english/YOUR_TEMPLATE/index.php
  • includes/languages/english/YOUR_TEMPLATE/meta_tags.php
  • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
  • includes/templates/YOUR_TEMPLATE/template_info.php
  • includes/templates/YOUR_TEMPLATE/common/tpl_header.php
  • includes/templates/YOUR_TEMPLATE/common/tpl_footer.php
  • includes/templates/YOUR_TEMPLATE/images/logo.gif
  • includes/templates/YOUR_TEMPLATE/css/stylesheet.css

Anywhere you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder, the /template_default/ folder or the parent folder.

Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying information so you'll recognize it in the admin under tools->template selection.

You can see the free templates available for Zen Cart in action at http://(sorry, site offline)/.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

17 Jul 2008, 9:20 AM
#7
theeggman avatar

theeggman

New Zenner

Join Date:
Jul 2008
Posts:
18
Plugin Contributions:
0

Re: Adding to the Copyright@ zencart

Ok..done, done and done :)

Everything copied into custom folders and updated. I now have 2 identical templates. Thx guys :)

However, i still have a problem with the footer © notice.

I copied afos code and put it into the new custom /english.php file, uploaded and...still nothing...and no nothing is missing :)

So im guessing that it in some way has been deactivated.
Is there somewhere where i can activate it again?

17 Jul 2008, 12:52 PM
#8
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Adding to the Copyright@ zencart

There's no place in admin to deactivate that.

The only other way I can think of to delete it would be to do a display:none;
in the legal stuff in the stylesheet, but I'd think you'd remember doing that.

Can we see a link to your site?

17 Jul 2008, 2:42 PM
#9
theeggman avatar

theeggman

New Zenner

Join Date:
Jul 2008
Posts:
18
Plugin Contributions:
0

Re: Adding to the Copyright@ zencart

Fixed it.
Downloaded a new version of the file from zencart.
I studied it closely, and i honestly didnt see any difference, but it worked with the new files so :clap:

Thx for all the help :blush: