Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to change ezpages sidebox header??

How to change ezpages sidebox header??

Locked

Views: 5,169

Results 1 to 19 of 19
This thread is locked. New replies are disabled.
5 Sep 2007, 11:17 PM
#1
yairoz avatar

yairoz

New Zenner

Join Date:
May 2007
Posts:
60
Plugin Contributions:
0

How to change ezpages sidebox header??

hey guys

I've got a small question: how do i change the sidebox of the ez-pages header to something else. Right now it says "Imprtant Links"

You can see example in my site: www.academyfloor.com

Thanks for your help!!

5 Sep 2007, 11:44 PM
#2
ronlee67 avatar

ronlee67

Totally Zenned

Join Date:
Sep 2006
Location:
Colorado Springs CO USA
Posts:
519
Plugin Contributions:
0

Re: How to change ezpages sidebox header??

Figure it out yourself by using this tool. It will help you out with a lot of other questions that may come along:

In admin, go to tools > Developer's Toolkit and search on "Important Links" (without the quotation marks). I would start in the last section of the tookit under "Lookup in all files".

This will display everyplace the term "Important Links" is coded in. You'll probably come up with only one match and it will contain a define statement. Just change "Important Links" to whatever you want it to say.

If you get more than one match during the search, look for a file under the languages subdirectory with a filename that seems to match the box or page you are trying to revise.

You can use this tool to lookup which file contains certain text. It's great for tracking down problems where something is quoted in an error message and for finding where you previously entered custom language.

BTW, if you find your match in one of the core files, you probably should consider using the override method to put your custom title into your own custom template file. If you are not familiar with the override system, now is the time to learn and use it. Plenty of info in the FAQ and Wiki on override templates.

Ron

6 Sep 2007, 12:24 AM
#3
yairoz avatar

yairoz

New Zenner

Join Date:
May 2007
Posts:
60
Plugin Contributions:
0

Re: How to change ezpages sidebox header??

thank you!
I already had a lot of chages but i couldn't find this one... nice tool, i never used it until now... I can see how so much easier my life could be.... hahaha :P
anyway, as is said, i already change a lot of files, i'm not sure if they are core files or not... can i use this overide system now? will my changes will be the same if I'll update the zencart...?

10x for helping...

11 Oct 2007, 2:14 AM
#4
haostaff avatar

haostaff

Zen Follower

Join Date:
Oct 2007
Location:
Hong Kong
Posts:
112
Plugin Contributions:
0

Re: How to change ezpages sidebox header??

Great question and great Tool ! Thanks.:yes:

23 Dec 2007, 8:47 AM
#5
gayelston avatar

gayelston

New Zenner

Join Date:
Aug 2006
Location:
Wales
Posts:
80
Plugin Contributions:
0

Re: How to change ezpages sidebox header??

ronlee67:

Figure it out yourself by using this tool. It will help you out with a lot of other questions that may come along:

In admin, go to tools > Developer's Toolkit and search on "Important Links" (without the quotation marks). I would start in the last section of the tookit under "Lookup in all files".

This will display everyplace the term "Important Links" is coded in. You'll probably come up with only one match and it will contain a define statement. Just change "Important Links" to whatever you want it to say.

If you get more than one match during the search, look for a file under the languages subdirectory with a filename that seems to match the box or page you are trying to revise.

Ron

Hi,
I'm looking for the same bit to edit, so I did what was said above.
I came up with this result: /var/www/html/zen-cart-update/includes/languages/english/extra_definitions/ez_pages_definitions.php
I altered it to read as I wanted it to, then clicked save.
Went to my site & ..... nothing:censored:

Site completely disappeared!
I had actually found this file myself earlier, without using the toolkit, & altered it, with the same results.
Seems like something else is calling for it using the original title of Important Links, in which case, there must be something else to edit in another file somewhere, but it doesn't come up in the search I did in the toolkit.
Anyone got any ideas, please??:huh:
Thanks in advance
Gay

23 Dec 2007, 8:59 AM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to change ezpages sidebox header??

Exactly what does that define statement look like now? It is important to keep the single quotes around the defined text.

And Yairoz, it's never too late to start using the template override system. Even if you have edited core files, if you copy the edited files to your template folders they will function correctly, and in your next upgrade when the core files are overwritten, your changes will be safe.

23 Dec 2007, 9:33 AM
#7
gayelston avatar

gayelston

New Zenner

Join Date:
Aug 2006
Location:
Wales
Posts:
80
Plugin Contributions:
0

Re: How to change ezpages sidebox header??

gjh42:

Exactly what does that define statement look like now? It is important to keep the single quotes around the defined text.

This is the file that works, default:

<?php /** * ezpages language components - used when displaying components for EZ-Pages content * * @package languageDefines * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: ez_pages_definitions.php 2739 2005-12-30 19:00:50Z birdbrain $ */ // ez-pages sidebox title name define('BOX_HEADING_EZPAGES','Important Links'); define('TEXT_EZ_PAGES_TABLE_CONTEXT', 'Table of Contents'); define('CURRENT_PAGE_INDICATOR', ' * '); define('NOT_CURRENT_PAGE_INDICATOR', ' - '); ?>

This is the one that doesn't, when I change the HEADER_EZPAGES text:

<?php /** * ezpages language components - used when displaying components for EZ-Pages content * * @package languageDefines * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: ez_pages_definitions.php 2739 2005-12-30 19:00:50Z birdbrain $ */ // ez-pages sidebox title name define('BOX_HEADING_EZPAGES','FAQ's, Help & Projects'); define('TEXT_EZ_PAGES_TABLE_CONTEXT', 'Table of Contents'); define('CURRENT_PAGE_INDICATOR', ' * '); define('NOT_CURRENT_PAGE_INDICAhttp://www.zen-cart.com/forum/images/smilies/dontgetit.gif :dontgetitTOR', ' - '); ?>

Total balnk page results!
Really don't understand why, unless something else is calling it using the header title?
:dontgetit
Regards
Gay

23 Dec 2007, 9:51 AM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to change ezpages sidebox header??

This is easy, and important to know for future reference.

'FAQ's, Help & Projects'

The single quote inside a single-quoted text string will be interpreted as the end of the string, and what follows will be interpreted as code. This will cause an error.

To use a quote or apostrophe here, you need to escape it with a backslash \ . So

'FAQ's, Help & Projects'

23 Dec 2007, 10:12 AM
#9
gayelston avatar

gayelston

New Zenner

Join Date:
Aug 2006
Location:
Wales
Posts:
80
Plugin Contributions:
0

Re: How to change ezpages sidebox header??

gjh42:

This is easy, and important to know for future reference.

'FAQ's, Help & Projects'

The single quote inside a single-quoted text string will be interpreted as the end of the string, and what follows will be interpreted as code. This will cause an error.

To use a quote or apostrophe here, you need to escape it with a backslash \ . So

'FAQ's, Help & Projects'

Amazing!!!
What you can do when you know what you're doing!!:blush:

Thank you, all fixed.

I have a page of links, that I keep adding to, to help with all this Zen Cart editing stuff.
This page link is now added & has been emphasised, 'cos I'm getting on a bit now & my memory don't work anymore :unsure: That's if it every did!:blink:
Thank you, so quick too, you Zenners are the very best.
Happy Christmas!

23 Dec 2007, 4:41 PM
#10
gayelston avatar

gayelston

New Zenner

Join Date:
Aug 2006
Location:
Wales
Posts:
80
Plugin Contributions:
0

Re: How to change ezpages sidebox header??

gjh42:

This is easy, and important to know for future reference.

'FAQ's, Help & Projects'

The single quote inside a single-quoted text string will be interpreted as the end of the string, and what follows will be interpreted as code. This will cause an error.

To use a quote or apostrophe here, you need to escape it with a backslash \ . So

'FAQ's, Help & Projects'

Hi,
I really thought everything was sorted, but somehow it has disappeared again!
Just the EZPages this time though.
I altered the file as recommended & all worked great, but I wanted to redo what had been done so I deleted one of the pages I had already made.
Actually, perhaps the name of the page had something to do with what has happened, because it was called the same as the title of the box quoted above.
I originally made the page because I needed a title & couldn't find how to change that heading, so I made a page to take it's place , not very satisfactory, which is why I deleted it, but now I have lost all the EZPages & I really don't understand why!
I deleted the page, & that was all I did, but the lot dispapeared.
Any ideas?
I have tried turning everything off, then on again, checked all my settings etc but I didn't alter any to start with.
Am I going to have to reload?
Would be grateful for any help.
Again.
Regards
Gay
ps I've been working on this since 10 mins after you previous reply :blush:

23 Dec 2007, 4:51 PM
#11
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to change ezpages sidebox header??

The only thing I can think of is if the apostrophe caused the "delete" function to end prematurely, leaving an invalid piece of name in the database. I have no idea whether that could happen. If it did,someone who knows the db better can tell you how to search it for possible bad strings, and where to look. (There will be one or more tables in the db for ez-pages.)

Have you looked for a fragment of the name in Tools > EZ-Pages?

23 Dec 2007, 5:17 PM
#12
gayelston avatar

gayelston

New Zenner

Join Date:
Aug 2006
Location:
Wales
Posts:
80
Plugin Contributions:
0

Re: How to change ezpages sidebox header??

Thanks for answering so quickly!

I know almost nothing about d/b's , so would definately need help to do that sort of search.

gjh42:

The only thing I can think of is if the apostrophe caused the "delete" function to end prematurely, leaving an invalid piece of name in the database. I have no idea whether that could happen. If it did,someone who knows the db better can tell you how to search it for possible bad strings, and where to look. (There will be one or more tables in the db for ez-pages.)

Have you looked for a fragment of the name in Tools > EZ-Pages?

I don't know how to look for a fragment:unsure:

What I have noticed though, is that the EZ page id still refers to the previous page(s) (now plural) because I only have 4, 3 newly created, & they are numbered 5 - 9!
Could this be what you mean?
How would I get rid of any "fragment"?
Thanks for your help
Regards
fieryoptimist
ps if this takes too long I might be better off trying to reload :unsure:

23 Dec 2007, 5:24 PM
#13
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to change ezpages sidebox header??

EZ-Page ids will be numbered in order of creation, and deleted ones will not be filled in with new pages or cause the ids of other pages to be reset. If you don't see anything odd in the ez-page names in the list, the problem is not there. I can't help you with searching the database. You might try a forum search for "search database" or something; then you will know as much as I could tell you.

23 Dec 2007, 5:41 PM
#14
gayelston avatar

gayelston

New Zenner

Join Date:
Aug 2006
Location:
Wales
Posts:
80
Plugin Contributions:
0

Re: How to change ezpages sidebox header??

Thanks for your help.
If I manage to sort it, I will let you know.
Regards
Gay
ps Happy Christmas:D

20 Apr 2008, 10:44 AM
#15
vivaraquel avatar

vivaraquel

Zen Follower

Join Date:
Sep 2004
Location:
Australia
Posts:
305
Plugin Contributions:
0

Re: How to change ezpages sidebox header??

At my site http://www.easybeading.com.au I have set up the ez pages sidebox with links.

The problem I have is that the heading of the box says BOX_HEADING_EZPAGES rather than Important Links.

I have done as this thready suggested to try to fix it but nothing has done the trick.

Is there anything else which could be causing the problem?

Thank you.

21 Apr 2008, 2:45 AM
#16
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to change ezpages sidebox header??

What does your define statement look like? That is the first place to look for the problem.

22 Apr 2008, 2:24 PM
#17
vivaraquel avatar

vivaraquel

Zen Follower

Join Date:
Sep 2004
Location:
Australia
Posts:
305
Plugin Contributions:
0

Re: How to change ezpages sidebox header??

gjh42:

What does your define statement look like? That is the first place to look for the problem.

Where would I find the required define statement? Thank you.

22 Apr 2008, 6:11 PM
#18
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to change ezpages sidebox header??

Post #2 describes the method in detail. If you follow that, you will find the define statement's file location; then you can open that file in a text editor and change the define.

22 Apr 2008, 10:13 PM
#19
vivaraquel avatar

vivaraquel

Zen Follower

Join Date:
Sep 2004
Location:
Australia
Posts:
305
Plugin Contributions:
0

Re: How to change ezpages sidebox header??

I worked it out. My ezy_pages_definitions.php (includes/languages/english/extra_definitions/CUSTOM/ezy_pages_definitions.php) was missing some define statements so I replaced it with the original file and it's now working.

Thank you.