Seven times I thank YOU Kobra, that awesome mod is exactly how I did the last one but CRS Syndrome had wiped the few remaining brain cells. What once was lost has now been found and I shall sing as I work again instead of muttering.
Thanks Kobra,
That worked great. I just need to figure out why the heading title is showing up as 'HEADING_TITLE' instead of 'page_5'.
I believe one of my previous problems was that I messed up the tpl_page_5_default.php file. I forgot I had created this file and plus messed up the code. I was able to duplicate the problem with latest tpl_page_5_default.php file. So this was at least part of my trouble where the right sideboxes/etc was disappearing.
Thanks again, I owe you.
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 folderI 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??
Zen-Venom Get Bitten
yes... i have it in:
/public_html/includes/languages/english/html_includes/
and also in:
/public_html/includes/languages/english/html_includes/classic
It's strange, cause it shows up in the admin section under define pages editor... but just a blank page where my html text should be. It has the header and everything else... but it does not show what i have in the define pages editor.
Check all of these:
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
And the about us mod in the downloads section instruction
Zen-Venom Get Bitten
checked everything.... changed everything from page_2 to page_5 and added page_5 where it should be added.
only thing i am not sure about is the code for more_information.php... here is what i have:
unset($more_information);
// test if links should display
if (DEFINE_PAGE_2_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>';
}
if (DEFINE_PAGE_3_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_3) . '">' . BOX_INFORMATION_PAGE_3 . '</a>';
}
if (DEFINE_PAGE_4_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . BOX_INFORMATION_PAGE_4 . '</a>';
}
if (DEFINE_PAGE_5_STATUS <= 1) {
$more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_5) . '">' . BOX_INFORMATION_PAGE_5 . '</a>';
}
// insert additional links below to add to the more_information box
// Example:
// $more_information[] = '<a href="' . zen_href_link(FILENAME_DEFAULT) . '">' . 'TESTING' . '</a>';
// only show if links are active
if (sizeof($more_information) > 0) {
require($template->get_template_dir('tpl_more_information.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_more_information.php');
$title = BOX_HEADING_MORE_INFORMATION;
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
?>
I am not sure if have this correct, or if i should have put page_5 code where it says: insert additional links below to add to the more_information box.
I tried putting it there instead of where i had it, and it still did not work.
You have missed something??? Hard to determine from the forum....
Did you also review the instructions in the about us mod with any enlightenment?
Zen-Venom Get Bitten
Looked at the about us mod instructions... not much help... not sure why this is not working... i will start all over from scratch and see if that works.
Everything seems to be correct, the link is in the more information box, when you click the link, it takes you to page 5, the correct header is there, but no html text... it's like it cant find the text.
oh well... i will start all over and see if that helps.
I would try using ez pages, but i dont think that will work in the more information box.
I was also wondering how to create a new define page and found this post.
Thanks to the instructions given by you guys, I have successfully created a new define page. Except only one step is missing; you have to insert a new row in the "configuration" table in the database.
Code:INSERT INTO `zencart`.`zen_configuration` ( `configuration_id` , `configuration_title` , `configuration_key` , `configuration_value` , `configuration_description` , `configuration_group_id` , `sort_order` , `last_modified` , `date_added` , `use_function` , `set_function` ) VALUES ( NULL , 'Define Page 9', 'DEFINE_PAGE_9_STATUS', '1', 'Enable the Defined Page 9 Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', '25', '85', NULL , '0001-01-01 00:00:00', NULL , 'zen_cfg_select_option(array(''0'', ''1'', ''2'', ''3''),' );
Bookmarks