Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / All Other Contributions/Addons / News Box Manager v2.0.0 [Support Thread]

News Box Manager v2.0.0 [Support Thread]

7 Jul 2019, 1:42 AM
#61
cottageoven avatar

cottageoven

New Zenner

Join Date:
Jul 2019
Location:
Florida
Posts:
13
Plugin Contributions:
0

Post #61 by cottageoven

Okay. I found it. Basically, I was expecting to see a news box that just didn't have any news in it, since I hadn't entered any news yet (because I had spent all that time looking for a toggle for the news box for the main page).

So, DUH! Of course, :rolleyes: When I finally went ahead and entered a test news article, it showed up in the center box of the main page, as it should.

Thanks for your reply.

7 Jul 2019, 1:53 AM
#62
cottageoven avatar

cottageoven

New Zenner

Join Date:
Jul 2019
Location:
Florida
Posts:
13
Plugin Contributions:
0

Post #62 by cottageoven

Now, is there any way just to have the news articles appear, in full, without having them as a table with "Click an article's title ..." - IOW, more like a blog (without being a full blog)?

7 Jul 2019, 5:06 AM
#63
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,935
Plugin Contributions:
26

Post #63 by dbltoe

You might want to go the the Configuration >> News Box Manager menu to see all the bells and whistles. What you are probably looking for is the content length. If you have the entire length, there's no need to click.

The beauty of open source is that you can make it do what you want.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

7 Jul 2019, 11:24 AM
#64
cottageoven avatar

cottageoven

New Zenner

Join Date:
Jul 2019
Location:
Florida
Posts:
13
Plugin Contributions:
0

Post #64 by cottageoven

Been there. I have it set for full articles. Yes, there is no NEED to click, but all the stuff ABOUT clicking is still there. May just have to dig into the code. I want only the articles to appear - not the table showing the date, not the "Click an article's title...," not even the box saying "Latest news" - just the content.

It'll get there. At least now I know it IS working.

4 Feb 2020, 9:07 PM
#65
jasonshanks avatar

jasonshanks

Zen Follower

Join Date:
Feb 2009
Location:
atlanta GA
Posts:
297
Plugin Contributions:
0

Post #65 by jasonshanks

Hello,

I would wondering if someone could help me. I installed news box manager 2.2.1 on my zencart 1.5.5f site Missingcord.com. On the news archive page the text is all wrong.

https://missingcord.com/index.php?main_page=news_archive

The title of the post of under the back button. How do i fix this ?

I use a test site to try out plugins before I use them and The issue doesn't seem to show up there
http://unrelentingdarkness.com/index.php?main_page=news_archive

Zencart 1.5.6c PHP 7.2 Order Replacement AC Adapters and Power Cords Online https://www.missingcord.com

4 Feb 2020, 9:12 PM
#66
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,156
Plugin Contributions:
56

Post #66 by lat9

jasonshanks:

Hello,

I would wondering if someone could help me. I installed news box manager 2.2.1 on my zencart 1.5.5f site Missingcord.com. On the news archive page the text is all wrong.

https://missingcord.com/index.php?main_page=news_archive

The title of the post of under the back button. How do i fix this ?

I use a test site to try out plugins before I use them and The issue doesn't seem to show up there
http://unrelentingdarkness.com/index.php?main_page=news_archive
You didn't copy the file stylesheet_news_box_manager.css to your live site's /includes/responsive_classic_v1/css sub-directory.

4 Feb 2020, 9:16 PM
#67
jasonshanks avatar

jasonshanks

Zen Follower

Join Date:
Feb 2009
Location:
atlanta GA
Posts:
297
Plugin Contributions:
0

Post #67 by jasonshanks

lat9:

You didn't copy the file stylesheet_news_box_manager.css to your live site's /includes/responsive_classic_v1/css sub-directory.

Oh my goodness , i feel so stupid. I copied them over in filezilla , i guess i screwed that up. Thank you gain lat9.

*Edit I see how i screwed it up now , I didn't rename the template folder DOH

Zencart 1.5.6c PHP 7.2 Order Replacement AC Adapters and Power Cords Online https://www.missingcord.com

5 Feb 2020, 12:34 PM
#68
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,156
Plugin Contributions:
56

Post #68 by lat9

jasonshanks:

Oh my goodness , i feel so stupid. I copied them over in filezilla , i guess i screwed that up. Thank you gain lat9.

*Edit I see how i screwed it up now , I didn't rename the template folder DOH
I can't count the number of times that I've done that! I'm happy to have helped.

23 May 2020, 2:21 AM
#69
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Post #69 by shags38

Hi Cindy - just some positive feedback - in recently utilizing this plugin and regularly posting home page news there has been a good positive SEO impact in improved search.

So many thanks - anything that improves search is invaluable.

cheers,
Mike

I'd love to be able to 'split' the table to double the number of posts :)

23 May 2020, 11:54 AM
#70
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,156
Plugin Contributions:
56

Post #70 by lat9

shags38:

Hi Cindy - just some positive feedback - in recently utilizing this plugin and regularly posting home page news there has been a good positive SEO impact in improved search.

So many thanks - anything that improves search is invaluable.

cheers,
Mike

I'd love to be able to 'split' the table to double the number of posts :)
Mike, thanks for the good-news follow-up! I'm not sure I understand what you mean when you say 'split' the table; could you elaborate?

5 Oct 2020, 2:11 AM
#73
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Post #73 by shags38

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

 <?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>
5 Oct 2020, 10:06 AM
#74
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,156
Plugin Contributions:
56

Post #74 by lat9

Mike, what's that tpl_middleboxes.php? I'm guessing that that's what is injecting the news-box information twice.

5 Oct 2020, 3:58 PM
#75
elemi avatar

elemi

Zen Follower

Join Date:
Mar 2006
Location:
Auckland, New Zealand
Posts:
242
Plugin Contributions:
0

Post #75 by elemi

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 :-)

Elemi

The Art of Bespoke Aromatherapy
https://www.AmorAromatherapy.co.nz

5 Oct 2020, 9:36 PM
#76
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Post #76 by shags38

lat9:

Mike, what's that tpl_middleboxes.php? I'm guessing that that's what is injecting the news-box information twice.

Thanks for the quick reply Cindy - as always you were spot on!! - the tpl_middleboxes.php is used by the plugin Editable Center Boxes by mc123456789 - I have been using it for a few years now - so now I moved it to the end of the file and all is good.

Many thanks,
Mike

5 Oct 2020, 9:45 PM
#77
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Post #77 by shags38

Elemi:

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

/** 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;}
*/
5 Oct 2020, 10:32 PM
#78
elemi avatar

elemi

Zen Follower

Join Date:
Mar 2006
Location:
Auckland, New Zealand
Posts:
242
Plugin Contributions:
0

Post #78 by elemi

Thank you sooo much Mike, that worked first time... now to create content! :-)

Elemi

The Art of Bespoke Aromatherapy
https://www.AmorAromatherapy.co.nz

29 Dec 2020, 6:12 AM
#79
shags38 avatar

shags38

Totally Zenned

Join Date:
Jan 2011
Location:
Adelaide, Australia
Posts:
1,684
Plugin Contributions:
0

Post #79 by shags38

v1.5.5f news box v3.0.2 https://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

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

v3.0.2 file copy

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

Attachment 19354

29 Dec 2020, 1:11 PM
#80
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,156
Plugin Contributions:
56

Post #80 by lat9

@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)