Page 1 of 10 123 ... LastLast
Results 1 to 10 of 93
  1. #1
    Join Date
    May 2007
    Location
    North Carolina
    Posts
    4
    Plugin Contributions
    0

    Default Define Pages / EZ Pages

    How do you add new define pages? I need another one and I'm not sure how to add one. For me, they're simple to manage and are not lost during upgrades using the override system.

    If a new define page will work, ignore the EZPage questions. I'll learn more about them later.

    I tried using EZPages and it was simple, but I have a lot of questions about them. 1. Where is code stored? 2. Will it be preserved during upgrades? 3. Where do I store images for EZPages? 4. What path do I used to reference the image in an EZPage.

    Or should I just order the e-Start your Web Site Book and stop worrying you guys. Will it have all the answers.

    Thanks,

    -Mulleycat

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Define Pages / EZ Pages

    There are about 4 places that you have to add the fact that there exists another page and then the additional files you have to create for html_includes.

    Pick one and use the search tools in the admin > tools > developers tools > and this will locate the files that the text is in - - like for privacy
    Zen-Venom Get Bitten

  3. #3
    Join Date
    May 2007
    Location
    North Carolina
    Posts
    4
    Plugin Contributions
    0

    Default Re: Define Pages / EZ Pages

    Thanks kobra for the information,

    I had already attempted this without success. I apparently missed FTPing one of the files. I tried again and when I clicked on the link in the <More Information> side box, I got a <Page Not Found> message. I then modified/added every reference to each file (override or not) and now I get a blank page and all the side boxes on the right and all my links and banners at the bottom of the page disappear. I have made many attempts to get this to work. I just can't see what I'm doing wrong. I've been programming for 20 years and know what just 1 bit can do sometimes. I tried to duplicate how page_2 was implemented, I just named it page_5. The new html_includes file does show up in the Define Page Editor in Admin.

    Any suggestion would be greatly appreciated.

    Below is a list of what I have done so far. I know I went over board modifying even the files I'm overriding. But I'm desperate to get this to work. That's why I bugging you again.

    Added new define:
    /var/www/html/docs2/includes/languages/english.php
    Line #167 : define('BOX_TOOLS_DEFINE_PAGE_5','Page 5');

    Added new define:
    /var/www/html/docs2/includes/languages/english/define_pages_editor.php
    Line #38 : define('TEXT_INFO_PAGE_5', 'Page 5');

    Added 2 new defines:
    /var/www/html/includes/filenames.php
    Line #64 : define('FILENAME_DEFINE_PAGE_5', 'define_page_5');
    Line #109 : define('FILENAME_PAGE_5', 'page_5');

    Added new define:
    /var/www/html/includes/languages/english.php
    Line #151 : define('BOX_INFORMATION_PAGE_5', 'Page 5');

    Created new file:
    /var/www/html/includes/languages/english/mulleycat/page_5.php
    Line #19 : // $Id: page_5.php 1969 2005-09-13 06:57:21Z drbyte $

    Created new file:
    /var/www/html/includes/languages/english/page_5.php
    Line #19 : // $Id: page_5.php 1969 2005-09-13 06:57:21Z drbyte $

    Added new define:
    /var/www/html/includes/languages/mulleycat/english.php
    Line #151 : define('BOX_INFORMATION_PAGE_5', 'Zimbabwe Orphans Endeavor');

    Created new folder and file:
    /var/www/html/includes/modules/pages/page_5/header_php.php
    Line #15 : $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_PAGE_5, 'false');

    Added new line of code
    /var/www/html/includes/modules/sideboxes/more_information.php
    Line #29 : $more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_5) . '">' . BOX_INFORMATION_PAGE_5 . '</a>';

    Added 2 new defines:
    /var/www/html/includes/mulleycat/filenames.php
    Line #64 : define('FILENAME_DEFINE_PAGE_5', 'define_page_5');
    Line #109 : define('FILENAME_PAGE_5', 'page_5');

    Created new file:
    /var/www/html/includes/languages/english/html_includes/define_page_5.php
    Line #4 : <li>Information and links to (ZOE) Zimbabwe Orphans Endeavor.</li>

    Created new file:
    /var/www/html/includes/languages/english/html_includes/mulleycat/define_page_5.php
    Line #4 : <li>Information and links to (ZOE) Zimbabwe Orphans Endeavor.</li>

    Created new file:
    /var/www/html/includes/languages/english/mulleycat/page_5.php
    Line #22 : define('NAVBAR_TITLE', 'Zimbabwe Orphans Endeavor');
    Line #23 : define('HEADING_TITLE', 'Zimbabwe Orphans Endeavor');
    Line #25 : define('TEXT_INFORMATION', 'Links and information about (ZOE) Zimbabwe Orphans Endeavor');

    Created new file:
    /var/www/html/includes/languages/english/page_5.php
    Line #22 : define('NAVBAR_TITLE', 'Zimbabwe Orphans Endeavor');
    Line #23 : define('HEADING_TITLE', 'Zimbabwe Orphans Endeavor');
    Line #25 : define('TEXT_INFORMATION', 'Links and information about (ZOE) Zimbabwe Orphans Endeavor');

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Define Pages / EZ Pages

    For illustration use the page_2 as a guide
    Try starting over and in these areas edit or create what is required changing only the reference to page_2 to page_5...get it to work in that default generic form before you begin changing things like "Zimbabwe Orphans Endeavor'"
    Just the straight page_5 references to start.

    Create/clone these as page_5
    /includes/modules/pages/page_2/header_php.php
    /includes/languages/english/page_2.php
    /includes/templates/template_default/templates/tpl_page_2_default.php

    Add/edit these to include page_5
    /includes/modules/sideboxes/more_information.php
    /includes/languages/english.php
    /includes/filenames.php

    Create define_page_5.php in both of these folders
    /includes/languages/html_includes
    /includes/languages/html_includes/your_template

    This should net you a generic page_5 in the "More Information" sidebox
    You can then begin using this in your overrides areas

    Once this works you can move on to custom titles etc - one at a time so you can track back if it breaks
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Mar 2007
    Location
    WAY out West
    Posts
    89
    Plugin Contributions
    0

    Default Re: Define Pages / EZ Pages

    I am having much the same problem. I have worked through Kobra's suggestions list and am STILL getting this message:

    Warning: main(includes/languages/english/html_includes/FILENAME_DEFINE_SIZE_INFO.php) [function.main]: failed to open stream: No such file or directory in /xxxxx/xxxxx/public_html/xxxxx/includes/templates/template_default/templates/tpl_size_info_default.php on line 23
    In YOUR LIST of things you have done the very first entry

    Added new define:
    /var/www/html/docs2/includes/languages/english.php
    Line #167 : define('BOX_TOOLS_DEFINE_PAGE_5','Page 5');
    does not look right to me (not that THAT means much LOL)

    If you are working in the Information box, surely this:

    // information box text in sideboxes/information.php

    define('BOX_HEADING_INFORMATION', 'Information');
    define('BOX_INFORMATION_PAGE_5', 'Page 5');
    If you are working in the More Information box, then surely this, there:

    // information box text in sideboxes/more_information.php - were TUTORIAL_

    define('BOX_HEADING_MORE_INFORMATION', 'More Information');
    define('BOX_INFORMATION_PAGE_5', 'Page 5');
    Henrietta


  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Define Pages / EZ Pages

    Henreitta,
    FILENAME_DEFINE_SIZE_INFO.php
    If following my list - this would be page_5.php...

    Get it to function in generic form first and later address titles
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Mar 2007
    Location
    WAY out West
    Posts
    89
    Plugin Contributions
    0

    Default Re: Define Pages / EZ Pages

    Thank you Kobra

    A few differences between Mulleycat's problem and mine:

    1. I am not trying to put a page in More Information
    2. I am not trying to use an EZ page, therefore cloning one probably wouldn't help.

    I ran through your list because you know far more than I, and I was hopeful that your list might point me to something I had missed. Evidently what I am trying to do requires something different.

    I know it is possible to do because I did it once before, now if only I could remember HOW I did it my current set of problems would be over. So since it IS different I will start a new thread.
    Henrietta


  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Define Pages / EZ Pages

    1. I am not trying to put a page in More Information
    2. I am not trying to use an EZ page, therefore cloning one probably wouldn't help.
    Actually, what I outlined is not for ezpages but cloning a defines page that cn be edited through the admin.

    For not using the "more information" box just change /includes/modules/sideboxes/more_information.php to
    /includes/modules/sideboxes/information.php

    Additionally, you can reference the about us mod in the downloads section
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Mar 2007
    Location
    WAY out West
    Posts
    89
    Plugin Contributions
    0

    Default Re: Define Pages / EZ Pages

    Its a big time "DUH moment", just realized you were in Admin and that is why BOX_TOOLS_DEFINE looked strange.
    Henrietta


  10. #10
    Join Date
    Mar 2007
    Location
    WAY out West
    Posts
    89
    Plugin Contributions
    0

    Default Re: Define Pages / EZ Pages

    Thanks again Kobra, I will go check that out right away.
    Henrietta


 

 
Page 1 of 10 123 ... LastLast

Similar Threads

  1. Blank Web Pages after changing Page_2_3_4 URLs in Define Pages
    By chevvychase81 in forum General Questions
    Replies: 14
    Last Post: 31 Mar 2011, 10:15 AM
  2. remove <meta description> from ez pages and define pages : help
    By vandiermen in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Oct 2010, 12:13 AM
  3. German pack: Define Pages editor works, EZ pages does not
    By jami1955 in forum Addon Language Packs
    Replies: 1
    Last Post: 8 Jul 2010, 10:52 AM
  4. Define Define Pages / Information pages Manager needed
    By thunderesl in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 2 Jun 2010, 02:42 PM
  5. index_default & define pages(4+ define pages on frontpage?)
    By mrmarcus66 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 May 2006, 07:38 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR