Is this compatible with the new 1.5.7?
Thank you.
Is this compatible with the new 1.5.7?
Thank you.
Yes. Just make sure that you've also applied the currently-reported bug-fixes, especially this one: https://www.zen-cart.com/showthread....21#post1371221
v1.5.5f
Hello Cindy - on my home page I have the news box showing twice. When I installed it I only had Featured Products activated for home page (configuration/index_listing/) and today have activated New Products - so now the News Box shows below each of them - in westminster_new/templates/tpl_index_default.php the instruction to show News Box is situated at the end of the file (see below). I moved it about into different positions but the result was the same.
Am I missing something here?,
cheers Mike
Code:<?php /** * Page Template * * Main index page<br /> * Displays greetings, welcome text (define-page content), and various centerboxes depending on switch settings in Admin<br /> * Centerboxes are called as necessary * * @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: tpl_index_default.php 3464 2006-04-19 00:07:26Z ajeh $ * modified for Editable Centerboxes by C. Jones, Glenn Herbert 2012-10-12 */ ?> <div class="centerColumn" id="indexDefault"> <h1 id="indexDefaultHeading"><?php echo HEADING_TITLE; ?></h1> <?php if (SHOW_CUSTOMER_GREETING == 1) { ?> <h2 class="greeting"><?php echo zen_customer_greeting(); ?></h2> <?php } ?> <!-- deprecated - to use uncomment this section <?php if (TEXT_MAIN) { ?> <div id="" class="content"><?php echo TEXT_MAIN; ?></div> <?php } ?>--> <!-- deprecated - to use uncomment this section <?php if (TEXT_INFORMATION) { ?> <div id="" class="content"><?php echo TEXT_INFORMATION; ?></div> <?php } ?>--> <?php $box_loc = '1';//middlebox group require($template->get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php'); ?> <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?> <?php /** * get the Define Main Page Text */ ?> <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div> <?php } ?> <?php $box_loc = '2';//middlebox group require($template->get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php'); ?> <?php $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_MAIN); while (!$show_display_category->EOF) { ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS') { ?> <?php /** * display the Featured Products Center Box */ ?> <?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?> <?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS') { ?> <?php /** * display the Special Products Center Box */ ?> <?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?> <?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS') { ?> <?php /** * display the New Products Center Box */ ?> <?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?> <?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_UPCOMING') { ?> <?php /** * display the Upcoming Products Center Box */ ?> <?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS)); ?><?php } ?> <?php $show_display_category->MoveNext(); } // !EOF ?> <?php $box_loc = '3';//middlebox group require($template->get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php'); ?> <?php //-bof-news_box_manager-lat9 *** 1 of 1 *** require ($template->get_template_dir('tpl_modules_news_box_format.php', DIR_WS_TEMPLATE, $current_page_base, 'templates'). '/tpl_modules_news_box_format.php'); //-eof-news_box_manager-lat9 *** 1 of 1 *** ?> </div>
Mike, what's that tpl_middleboxes.php? I'm guessing that that's what is injecting the news-box information twice.
Hi Mike,
How did you get this section showing on your Westminster_New Footer?
ARTICLES & USEFUL LINKS
Are Clip On Earrings Becoming More Popular?
Why Are Tassel Clip-on Earrings Popular?
What is the Origin of Clip On Earrings?
How to Easily Adjust Clip On Earrings
more Articles ...
Twitter Updates
Resources & Links
BLOG
News Updates ....
Would love to know so I can do similar for my new site :-)
Thanks
Tania :-)
Hi Tania,
go to admin/tools/flexible footer menu which then presents the table of pages >>> click 'create a page' and make that the Column Header >>> then you can continue to add pages under that column header by using the numbering protocol as shown at the bottom of the create a page form.
Then you may have to use the flexiblefooter.css to make column width adjustments if required - below is a copy of my css file in case it is helpful.
cheers,
Mike
Code:/** Flexible Footer Menu * @package admin * @copyright Copyright 2003-2009 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * Added by rbarbour (ZCAdditions.com), Flexible Footer Menu 1.2 (3) */ #flex-navSupp ul {margin: 0;padding:0;list-style-type: none;text-align: center;line-height: 1.5em;} #flex-navSupp ul {display:block;text-align:left;} #flex-navSupp ul li h4 {text-align:center;} #flex-navSupp ul li span {display:block;text-align:center;} #flex-navSupp a.activePage {font-weight: bold;color: #000;} #flex-navSupp a:hover {font-weight: bold;text-decoration: underlined;color: #000;} /* Example for styleing individual column blocks */ ul#col_1 {background-color:#FFFFFF;color:#333;height:150px;} ul#col_2 {background-color:#C0C0C0;color:#333;height:150px;} ul#col_3 {background-color:#FF00FF;color:#333;height:150px;} ul#col_4 {background-color:#00FFFF;color:#333;height:150px;} ul#col_5 {background-color:#FFFF00;color:#333;height:150px;} ul#col_6 {background-color:#0000FF;color:#FFFFFF;height:150px;} ul#col_7 {background-color:#00FF00;color:#333;height:150px;} ul#col_8 {background-color:#FF0000;color:#333;height:150px;} ul#col_9 {background-color:#000000;color:#FFFFFF;height:150px;} /* Each span represents a columns width */ .span_9_of_9 {width: 10.55%;} .span_8_of_9 {width: 11.94%;} .span_7_of_9 {width: 13.72%; } .span_6_of_9 {width: 16.08%; } .span_5_of_9 {width: 19.38%; } .span_4_of_9 {width: 24.35%; } .span_3_of_9 {width: 32.66%;} .span_2_of_9 {width: 49.25%; } .span_1_of_9 {width: 99%; } /* Changes column width at 768px, changed to be consistent with responsive code */ @media only screen and (max-width: 768px) { div#flex-navSupp>div>div>ul>li {display: block; text-align:center;} .span_9_of_9 {width: 98%; } .span_8_of_9 {width: 98%; } .span_7_of_9 {width: 98%; } .span_6_of_9 {width: 98%; } .span_5_of_9 {width: 98%; } .span_4_of_9 {width: 98%; } .span_3_of_9 {width: 98%; } .span_2_of_9 {width: 98%; } .span_1_of_9 {width: 98%; } } /* NO LONGER USED IN 1.2 #flex-navSupp ul {margin: 0;padding: 0.5em 0em;list-style-type: none;text-align: center;line-height: 1.5em;} #flex-navSupp ul li {display: inline;} #flex-navSupp ul li a {text-decoration: none;padding: 0em 0.5em;margin: 0;color: #ffffff;white-space: nowrap;} #flex-navSupp {display: table; width: 100%; background: #eeeeee;color:#000;} .flexFooterCol {display:table-cell; border-left: 1px dotted #66bbcc;} *+html .ezpagesFooterCol {float: left;}/*ie7 hack #flex-navSupp .flexFooterCol a { color: #666564; font-weight: normal;} .flexFooterCol h4 {color: #004080; text-align: center;} #flex-navSupp .flexFooterCol li {display: block; text-align: left;} #flex-navSupp .flexFooterCol li span {display: block; text-align:center;} #flex-navSupp .flexFooterCol.ffCcol1 li span.flexFooterColImage {text-align:left;} #flex-navSupp .flexFooterCol.ffCcol1 {border:0;} #flex-navSupp a.activePage {font-weight: bold;color: #000;} #flex-navSupp a:hover {font-weight: bold;text-decoration: underlined;color: #000;} Flexible Footer Menu (RWD) Commercial #accordion {list-style: none;width: 100%;height: 30px;line-height: 30px;} #accordion li {display: block;display: inline-block;width: 100%;height: 30px;line-height: 30px;float: left;margin-left: 0;margin-bottom: 2px;background-color: #2BA6C6;cursor: pointer;list-style: none;-moz-border-radius: 10px;-webkit-border-radius: 10px;border-radius: 10px;} #accordion ul{list-style: none;padding: 0 0 0 0;display: none;} #accordion ul li{font-weight: normal;cursor: auto;background-color: transparent;} #accordion ul li a {text-decoration: none;color: #000;font-weight: bold;} #accordion ul li a:hover{text-decoration: underline;} #accordion ul li span {display: block;display: inline-block;width: 100%;text-align: center;} */
Thank you sooo much Mike, that worked first time... now to create content! :-)
v1.5.5f news box v3.0.2 www.dazzlerscliponearrings.com.au
Hi Cindy,
I just upgraded from 2.2.1 to 3.0.2 and am having some issues. The primary one is that I am not seeing any news items after clicking the 'latest news' heading [view all] tab (on home page) which takes me to this page /index.php?main_page=all_articles (empty) ..... albeit the link from [view all] is /index.php?main_page=news_archive
Additionally in admin/tools/news box manager [all types] and [type 1] I see my list of news articles and at the end of the row is a series of blue circles under the heading 'action', 4 rows in ALL and 3 rows in Type 1 ... no text inside the circles.
So I 'upgraded' by uploading all files and overwriting all the existing files except tpl_index_default.php which I merged with my existing copy - when I say copied across the only 'difference' and deleted the 'old' code - that resulted in a blank home page (other than header) - so I merged again leaving in the old code, same blank page result .... so now I have just the old code as is, i.e. an unchanged tpl_index_default.php .... see copies of my original and your 3.0.2 copy below.
So the table appears on the home page as it was previously (minus some .css color changes) - I still have 2 articles listed in the sidebox as it was prior to update but they link to /index.php?main_page=article&p=6 [or other number] which again is blank.
In addition to the tpl_index_default.php files please also find a screenshot of my configuration. I have not done something correctly but cannot figure what?
my existing file
v3.0.2 file copyCode:<?php /** * Page Template * * Main index page<br /> * Displays greetings, welcome text (define-page content), and various centerboxes depending on switch settings in Admin<br /> * Centerboxes are called as necessary * * @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: tpl_index_default.php 3464 2006-04-19 00:07:26Z ajeh $ * modified for Editable Centerboxes by C. Jones, Glenn Herbert 2012-10-12 */ ?> <div class="centerColumn" id="indexDefault"> <h1 id="indexDefaultHeading"><?php echo HEADING_TITLE; ?></h1> <?php if (SHOW_CUSTOMER_GREETING == 1) { ?> <h2 class="greeting"><?php echo zen_customer_greeting(); ?></h2> <?php } ?> <!-- deprecated - to use uncomment this section <?php if (TEXT_MAIN) { ?> <div id="" class="content"><?php echo TEXT_MAIN; ?></div> <?php } ?>--> <!-- deprecated - to use uncomment this section <?php if (TEXT_INFORMATION) { ?> <div id="" class="content"><?php echo TEXT_INFORMATION; ?></div> <?php } ?>--> <?php $box_loc = '1';//middlebox group require($template->get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php'); ?> <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?> <?php /** * get the Define Main Page Text */ ?> <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div> <?php } ?> <?php $box_loc = '2';//middlebox group require($template->get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php'); ?> <?php $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_MAIN); while (!$show_display_category->EOF) { ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS') { ?> <?php /** * display the Featured Products Center Box */ ?> <?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?> <?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS') { ?> <?php /** * display the Special Products Center Box */ ?> <?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?> <?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS') { ?> <?php /** * display the New Products Center Box */ ?> <?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?> <?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_UPCOMING') { ?> <?php /** * display the Upcoming Products Center Box */ ?> <?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS)); ?><?php } ?> <?php $show_display_category->MoveNext(); } // !EOF ?> <?php //-bof-news_box_manager-lat9 *** 1 of 1 *** require ($template->get_template_dir('tpl_modules_news_box_format.php', DIR_WS_TEMPLATE, $current_page_base, 'templates'). '/tpl_modules_news_box_format.php'); //-eof-news_box_manager-lat9 *** 1 of 1 *** ?> <?php $box_loc = '3';//middlebox group require($template->get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php'); ?> </div>
Code:<?php /** * Page Template * * Main index page<br /> * Displays greetings, welcome text (define-page content), and various centerboxes depending on switch settings in Admin<br /> * Centerboxes are called as necessary * * @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: tpl_index_default.php 3464 2006-04-19 00:07:26Z ajeh $ */ ?> <div class="centerColumn" id="indexDefault"> <h1 id="indexDefaultHeading"><?php echo HEADING_TITLE; ?></h1> <?php if (SHOW_CUSTOMER_GREETING == 1) { ?> <h2 class="greeting"><?php echo zen_customer_greeting(); ?></h2> <?php } ?> <!-- deprecated - to use uncomment this section <?php if (TEXT_MAIN) { ?> <div id="" class="content"><?php echo TEXT_MAIN; ?></div> <?php } ?>--> <!-- deprecated - to use uncomment this section <?php if (TEXT_INFORMATION) { ?> <div id="" class="content"><?php echo TEXT_INFORMATION; ?></div> <?php } ?>--> <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?> <?php /** * get the Define Main Page Text */ ?> <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div> <?php } ?> <?php //-bof-news_box_manager-lat9 *** 1 of 1 *** $mnbf = $template->get_template_dir('tpl_modules_news_box_format.php', DIR_WS_TEMPLATE, $current_page_base, 'templates') . '/tpl_modules_news_box_format.php'; if (file_exists($mnbf)) { require $mnbf; } //-eof-news_box_manager-lat9 *** 1 of 1 *** ?> <?php $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_MAIN); while (!$show_display_category->EOF) { ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS') { ?> <?php /** * display the Featured Products Center Box */ ?> <?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?> <?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS') { ?> <?php /** * display the Special Products Center Box */ ?> <?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?> <?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS') { ?> <?php /** * display the New Products Center Box */ ?> <?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?> <?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_UPCOMING') { ?> <?php /** * display the Upcoming Products Center Box */ ?> <?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS)); ?><?php } ?> <?php $show_display_category->MoveNext(); } // !EOF ?> </div>![]()
@shags38, a couple of things:
1) The current version of News Box Manager (v3) is v3.0.5.
2) Version 3.0.0 and later support Zen Cart versions 1.5.6 and later (additional notifications/functions added)
Bookmarks