Results 1 to 10 of 10
  1. #1
    Join Date
    Aug 2007
    Posts
    38
    Plugin Contributions
    0

    Default Moved Define Pages to Information Box Now Some Issues

    OK. I have moved the define pages to appear in the Information box. I have renamed Page 2 to "Top Ten Reasons". Now, when I click on the link to it, the software simply dumps me on the home page. There is content in includes/languages/english/html_includes/define_page_2.php and the setting in Admin -> Configuration -> Define Pages Status -> Page 2 is 1 (Link ON, Define Text ON) which is the same for every other page I want to show up and work. I additionally have Page 3 (unmodified link text) up for testing.

    If you go to http://www.pheniks.net/zen/ you can look at the information box on the right side and see what I mean. Every link except Top Ten Reasons works correctly.

    Any ideas here?

    I am running:
    ZC 1.3.8
    multiple mods/third party add-ons

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,197
    Plugin Contributions
    0

    Default Re: Moved Define Pages to Information Box Now Some Issues

    PH,
    ....... Developers Tool Kit

    admin panel/ tools/ developers tool kit
    1. In the bottom box (left hand corner) enter in your destinctive Search wording.
    2. Click the drop down menu under All Files Look-ups: Choose: All Files-Catalog/Admin
    3. Click search, and WALA, you will find the files associated with this search.
    4. Open that file in a good text editor and change the Wording, or eliminate it leaving only the two single quotes ''.
    5. The two single quotes '' must always stay.

    I would clone or search for Page 3,
    Then clone Top Ten Reasons
    1. You will be missing a file here you should be able to detect.

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

    Default Re: Moved Define Pages to Information Box Now Some Issues

    There default link code for these is in includes/modules/sideboxes/more_information.php
    Like:
    Code:
      if (DEFINE_PAGE_2_STATUS <= 1) {
    
        $more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>';
    
      }
    That needs to be copied/moved to includes/modules/sideboxes/information.php

    If you open these in a text or code editor you will see the pattern -
    In that folder there is a "classic" folder so these can/should be edited and your edited copy placed in a folder there named for your template name

  4. #4
    Join Date
    Aug 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: Moved Define Pages to Information Box Now Some Issues

    Quote Originally Posted by kobra View Post
    There default link code for these is in includes/modules/sideboxes/more_information.php
    Like:
    Code:
      if (DEFINE_PAGE_2_STATUS <= 1) {
    
        $more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>';
    
      }
    That needs to be copied/moved to includes/modules/sideboxes/information.php

    If you open these in a text or code editor you will see the pattern -
    In that folder there is a "classic" folder so these can/should be edited and your edited copy placed in a folder there named for your template name
    This I have done. Here is what my file "information.php" looks like in /includes/modules/sideboxes/LCC_template/
    Code:
    <?php
    /**
     * information sidebox - displays list of general info links, as defined in this file
     *
     * @package templateSystem
     * @copyright Copyright 2003-2006 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: information.php 4132 2006-08-14 00:36:39Z drbyte $
     */
    
      unset($information);
      // test if links should display
      if (DEFINE_PAGE_2_STATUS <= 1) {
        $information[] = '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>';
      }
      if (DEFINE_PAGE_3_STATUS <= 1) {
        $information[] = '<a href="' . zen_href_link(FILENAME_PAGE_3) . '">' . BOX_INFORMATION_PAGE_3 . '</a>';
      }
      if (DEFINE_PAGE_4_STATUS <= 1) {
        $information[] = '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . BOX_INFORMATION_PAGE_4 . '</a>';
      }
      if (DEFINE_SHIPPINGINFO_STATUS <= 1) {
        $information[] = '<a href="' . zen_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>';
      }
      if (DEFINE_PRIVACY_STATUS <= 1) {
        $information[] = '<a href="' . zen_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a>';
      }
      if (DEFINE_CONDITIONS_STATUS <= 1) {
        $information[] = '<a href="' . zen_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>';
      }
      if (DEFINE_CONTACT_US_STATUS <= 1) {
        $information[] = '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>';
      }
    
    // Forum (phpBB) link:
      if ( (isset($phpBB->phpBB['db_installed_config']) && $phpBB->phpBB['db_installed_config']) && (isset($phpBB->phpBB['files_installed']) && $phpBB->phpBB['files_installed'])  && (PHPBB_LINKS_ENABLED=='true')) {
        $information[] = '<a href="' . zen_href_link($phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX, '', 'NONSSL', false, '', true) . '" target="_blank">' . BOX_BBINDEX . '</a>';
    // or: $phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX
    // or: str_replace(str_replace(DIR_WS_CATALOG, '', DIR_FS_CATALOG), '', DIR_WS_PHPBB)
      }
    
      if (DEFINE_SITE_MAP_STATUS <= 1) {
        $information[] = '<a href="' . zen_href_link(FILENAME_SITE_MAP) . '">' . BOX_INFORMATION_SITE_MAP . '</a>';
      }
    
      // only show GV FAQ when installed
      if (MODULE_ORDER_TOTAL_GV_STATUS == 'true') {
        $information[] = '<a href="' . zen_href_link(FILENAME_GV_FAQ) . '">' . BOX_INFORMATION_GV . '</a>';
      }
      // only show Discount Coupon FAQ when installed
      if (DEFINE_DISCOUNT_COUPON_STATUS <= 1 && MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') {
        $information[] = '<a href="' . zen_href_link(FILENAME_DISCOUNT_COUPON) . '">' . BOX_INFORMATION_DISCOUNT_COUPONS . '</a>';
      }
    
      if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK == 'true') {
        $information[] = '<a href="' . zen_href_link(FILENAME_UNSUBSCRIBE) . '">' . BOX_INFORMATION_UNSUBSCRIBE . '</a>';
      }
    
      require($template->get_template_dir('tpl_information.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_information.php');
    
      $title =  BOX_HEADING_INFORMATION;
      $title_link = false;
    
      require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
    ?>
    What appears in the status bar when you hover over the link for "Top Ten Reasons"/Page 2 is:
    Code:
    http://www.pheniks.net/zen/index.php?main_page=page_2
    However, when you click on it, it dumps you out on the main index page. This is not the case for Page 3 which I have enabled for testing purposes. In the end, it will not be enabled or showing.

    Haredo - I must simply admit, that I do not understand exactly what you are suggesting and how it will be helpful.

    Thanks Haredo and Kobra for your help thus far.

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

    Default Re: Moved Define Pages to Information Box Now Some Issues

    However, when you click on it, it dumps you out on the main index page. This is not the case for Page 3 which I have enabled for testing purposes. In the end, it will not be enabled or showing.
    Check the other file alterations for page_2 in comparison to page_3 as there must be a difference(error) in some other area. Or you can provide a link and someone might be able to see an issue

  6. #6
    Join Date
    Aug 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: Moved Define Pages to Information Box Now Some Issues

    Kobra:

    I will start to dig a little to see what I might see in the files for Page 2 vs. Page 3.

    The test site is up at:

    http://www.pheniks.net/zen

    In the Information (blue color) sidebox, the top two links are Top Ten Reasons/Page 2 and Page 3.

    It appears that the links are forming correctly. However, it just keeps doing that thing with Page 2.

    Thanks again for your assistance!

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

    Default Re: Moved Define Pages to Information Box Now Some Issues

    It appears that the links are forming correctly.
    Yes your moved code is correct - so this must be in another where you altered the define or something else

  8. #8
    Join Date
    Aug 2007
    Posts
    38
    Plugin Contributions
    0

    Default Re: Moved Define Pages to Information Box Now Some Issues

    Quote Originally Posted by kobra View Post
    Yes your moved code is correct - so this must be in another where you altered the define or something else
    So, will altering the defines for the page (title, nav bar, etc.) necessitate a change in the name of the file it reads from? ie. define_page_2.php becomes something else?

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

    Default Re: Moved Define Pages to Information Box Now Some Issues

    So, will altering the defines for the page (title, nav bar, etc.) necessitate a change in the name of the file it reads from? ie. define_page_2.php becomes something else?
    No - Just like page_3 works - page_2 should also work and you need to determine what you changed

  10. #10
    Join Date
    Aug 2007
    Posts
    38
    Plugin Contributions
    0

    red flag Re: Moved Define Pages to Information Box Now Some Issues

    Ok Kobra. I'm not finding anything that leads me to conclude I changed anything that would be causing this. Any ideas on what I might need to change in addition to what I have changed.

    I'm really at a complete loss here.

    Aaron

 

 

Similar Threads

  1. Moved site and now have BIG ISSUES
    By shags38 in forum General Questions
    Replies: 22
    Last Post: 29 May 2012, 06:18 AM
  2. 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
  3. How do I get Define Pages to recognize a new page for the Information Box?
    By ScootaMan in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 11 Nov 2007, 02:26 AM
  4. How to add some pages in Information slide-box
    By Necro in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 13 Oct 2007, 08:48 PM
  5. Moved Directories, now have Admin issues
    By spigot in forum Basic Configuration
    Replies: 4
    Last Post: 20 Nov 2006, 04:23 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