Results 1 to 10 of 19

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    61
    Plugin Contributions
    0

    Default 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!!

  2. #2
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default 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
    www.aspenshopsonline.com - ZenCart 1.3.9h
    www.wilkssupply.com - ZenCart 1.3.9h
    www.un-du.net - ZenCart 1.3.8a

  3. #3
    Join Date
    May 2007
    Posts
    61
    Plugin Contributions
    0

    Default 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
    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...

  4. #4
    Join Date
    Oct 2007
    Location
    Hong Kong
    Posts
    111
    Plugin Contributions
    0

    Default Re: How to change ezpages sidebox header??

    Great question and great Tool ! Thanks.

  5. #5
    Join Date
    Aug 2006
    Location
    Wales
    Posts
    87
    Plugin Contributions
    0

    Default Re: How to change ezpages sidebox header??

    Quote Originally Posted by ronlee67 View Post
    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

    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??
    Thanks in advance
    ######

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.
    Last edited by gjh42; 23 Dec 2007 at 10:03 AM.

  7. #7
    Join Date
    Aug 2006
    Location
    Wales
    Posts
    87
    Plugin Contributions
    0

    Default Re: How to change ezpages sidebox header??

    Quote Originally Posted by gjh42 View Post
    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', '&nbsp;*&nbsp;');
    define('NOT_CURRENT_PAGE_INDICATOR', '&nbsp;-&nbsp;');

    ?>

    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', '&nbsp;*&nbsp;');
    define('NOT_CURRENT_PAGE_INDICAhttp://www.zen-cart.com/forum/images/smilies/dontgetit.gif
    TOR', '&nbsp;-&nbsp;');

    ?>

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

    Regards
    ######

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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'

 

 

Similar Threads

  1. How do I change the Categories sidebox header?
    By breauxlg in forum General Questions
    Replies: 2
    Last Post: 17 Oct 2011, 03:36 PM
  2. Change EZPages Font Color in Header
    By axxess in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Jan 2011, 07:52 PM
  3. How do I change the header image of blank sidebox?
    By saminc in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Jul 2009, 08:53 AM
  4. Help...How to change sidebox header background color?
    By meiziwo in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 20 Jul 2008, 10:15 AM
  5. change ezpages Header
    By yabora in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Jul 2006, 12:03 PM

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