If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Trying to rename links just giving me a blank page

Trying to rename links just giving me a blank page

Locked

Started by hcd888 on 29 Oct 2008, 11:14 PM · Views: 1,310

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
29 Oct 2008, 11:14 PM
#1
hcd888 avatar

hcd888

Zen Follower

Join Date:
May 2008
Posts:
348
Plugin Contributions:
0

Post #1 by hcd888

Hi, iam trying to rename:

In the categories sidebox:
"New Products ..." to "Newly Listed ..."
"All Products ..." to " List All ..."

And also the box:
"New Products in October" To "newly Listed in October"

and also remove "Power by Zen cart" at the footer of my page

I been trying to do this in my english.php initially it looks fine, but then i realised sometimes i get blank page, and also the "write a review" and "Tell a friend" function dosent work. :no:

Just wondering of iam missing out on something??? :wacko:

This really been stressing me out, hope somebody can help. Thanks :bigups:

30 Oct 2008, 3:42 AM
#2
afo avatar

afo

Totally Zenned

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

Post #2 by afo

Post the contents of your english.php file. You may have an error in the php. What did you use to edit the file?

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

30 Oct 2008, 8:35 AM
#3
hcd888 avatar

hcd888

Zen Follower

Join Date:
May 2008
Posts:
348
Plugin Contributions:
0

Post #3 by hcd888

Hi, thanks for getting back to me. I edited the file includes/languages/english.php and saved it to includes/languages/custom/english.php

I changed these lines:

define('FOOTER_TEXT_BODY', 'Copyright © ' . date('Y') . ' <a href="' . zen_href_link(FILENAME_DEFAULT) . '" target="_blank">' . STORE_NAME . '</a>. <a href=" " target="_blank"> </a>');

define('TEXT_DISPLAY_NUMBER_OF_PRODUCTS_NEW', 'Displaying <strong>%d</strong> to <strong>%d</strong> (of <strong>%d</strong> Newly Listed)');

// whats_new box text in sideboxes/whats_new.php

define('BOX_HEADING_WHATS_NEW', 'Newly Listed');

define('CATEGORIES_BOX_HEADING_WHATS_NEW', 'Newly Listed ...');

define('TEXT_NO_ALL_PRODUCTS', 'More Listings will be added soon. Please check back later.');

define('CATEGORIES_BOX_HEADING_PRODUCTS_ALL', 'List All ...');

Everything looks fine, but when a try clicking on "Write a review" or "Tell a friend" it displays a blank page.

30 Oct 2008, 4:39 PM
#4
afo avatar

afo

Totally Zenned

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

Post #4 by afo

Take out what I've highlighted in red and see what happens. I don't know why you have it there.

define('FOOTER_TEXT_BODY', 'Copyright © ' . date('Y') . ' <a href="' . zen_href_link(FILENAME_DEFAULT) . '" target="_blank">' . STORE_NAME . '</a>. <a href=" " target="_blank"> </a>');

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

30 Oct 2008, 10:45 PM
#5
hcd888 avatar

hcd888

Zen Follower

Join Date:
May 2008
Posts:
348
Plugin Contributions:
0

Post #5 by hcd888

Hi tried ur suggestion it looks ok, but when i click on either "Write a review" or "Tell a Friend" it just shows a blank screen

Was wondering would this be because i renamed:
In the categories sidebox:
"New Products ..." to "Newly Listed ..."
"All Products ..." to " List All ..."

And also the box:
"New Products in October" To "newly Listed in October"

Is this because some other folder or file needs to be renamed???

Hope u can help, Thanx

31 Oct 2008, 3:27 AM
#6
afo avatar

afo

Totally Zenned

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

Post #6 by afo

Changing the literals shouldn't make any difference. Nothing in that file should have an impact on "write a review" or "tell a friend".

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

31 Oct 2008, 10:00 PM
#7
hcd888 avatar

hcd888

Zen Follower

Join Date:
May 2008
Posts:
348
Plugin Contributions:
0

Post #7 by hcd888

:clap: Yay!!! :clap:

Managed to rename the links and footer :clap:

Just downloaded a fresh copy of the english.php file and done what i prevously done, and everything seems to work fine m:clap:

Strange, huh

1 Nov 2008, 3:31 AM
#8
afo avatar

afo

Totally Zenned

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

Post #8 by afo

Yes and no. There could have been a tiny mistake in the php (like a missing ; or extra blank spaces at the end) which caused it. I'm glad you got it worked out.

:clap:

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