Page 1 of 3 123 LastLast
Results 1 to 10 of 93

Hybrid View

  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,755
    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,755
    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,755
    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
    Jan 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Define Pages / EZ Pages

    I made all the changes... but i am getting a blank page for page 5. Page 5 heading is there... i can also access page 5 in the admin section under define pages editor. All my html text is there, but is is not showing up. Where should i look to see if i missed something??

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

    Default Re: Define Pages / EZ Pages

    I made all the changes... but i am getting a blank page for page 5. Page 5 heading is there... i can also access page 5 in the admin section under define pages editor. All my html text is there, but is is not showing up. Where should i look to see if i missed something??
    Double check that you have a define_page_5.php file in your includes/languages/html_includes/ - folder even if it is a blank one along with your edited one in your overrides folder
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Apr 2006
    Location
    Labuan Island
    Posts
    361
    Plugin Contributions
    2

    Default Define Pages / EZ Pages

    Quote Originally Posted by kobra View Post
    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
    Just follow this kobra's steps but DO NOT change the following;

    1.
    /includes/templates/template_default/templates/tpl_page_2_default.php

    PHP Code:
    <?php if (DEFINE_PAGE_2_STATUS >= and DEFINE_PAGE_2_STATUS <= 2) { ?>
    - just remain the code as the Define Pages was actually trigger by their status. Then, change the filenames as you wish.

    2.
    /includes/templates/template_default/templates/tpl_site_map_default.php

    PHP Code:
    <?php if (DEFINE_PAGE_2_STATUS <= 1) { ?>
    <li><?php echo '<a href="' zen_href_link(FILENAME_PAGE_2) . '">' BOX_INFORMATION_PAGE_2 '</a>'?></li>
    <?php ?>
    - same goes to this code for those who are enabling the site map feature.
    [FONT=Comic Sans MS]"Whether you think you can, or you think you can't... YOU ARE RIGHT."[/FONT]
    [FONT=Comic Sans MS]GOOD LUCK !!![/FONT]

  10. #10
    Join Date
    May 2006
    Posts
    6
    Plugin Contributions
    0

    Default Re: Define Pages / EZ Pages

    I'm having a strange problem with this. I've added my links to the box, the page loads with the heading I set but the text defined in define pages editor does not.
    I have define_page_5.php in /includes/languages/english/html_includes and also /includes/languages/english/html_includes/mytemplate (which is being edited by the editor without problems).
    So I can only conclude that it's looking in the wrong place for the text or I've messed up a file somewhere.
    Any ideas?
    Thanks in advance.

 

 
Page 1 of 3 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

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