Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Moved Define Pages to Information Box Now Some Issues

Moved Define Pages to Information Box Now Some Issues

Locked

Views: 1,507

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
30 Apr 2008, 11:24 PM
#1
pheniks avatar

pheniks

New Zenner

Join Date:
Aug 2007
Posts:
38
Plugin Contributions:
0

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? :huh:

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

1 May 2008, 1:06 AM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,178
Plugin Contributions:
0

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.
1 May 2008, 5:56 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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:

  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

1 May 2008, 4:16 PM
#4
pheniks avatar

pheniks

New Zenner

Join Date:
Aug 2007
Posts:
38
Plugin Contributions:
0

Re: Moved Define Pages to Information Box Now Some Issues

kobra:

There default link code for these is in includes/modules/sideboxes/more_information.php
Like:

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/
<?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:

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.
1 May 2008, 6:02 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

1 May 2008, 7:23 PM
#6
pheniks avatar

pheniks

New Zenner

Join Date:
Aug 2007
Posts:
38
Plugin Contributions:
0

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!

1 May 2008, 7:28 PM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

1 May 2008, 10:14 PM
#8
pheniks avatar

pheniks

New Zenner

Join Date:
Aug 2007
Posts:
38
Plugin Contributions:
0

Re: Moved Define Pages to Information Box Now Some Issues

kobra:

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?

2 May 2008, 2:37 AM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

2 May 2008, 10:46 PM
#10
pheniks avatar

pheniks

New Zenner

Join Date:
Aug 2007
Posts:
38
Plugin Contributions:
0

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