Forums / All Other Contributions/Addons / Editable Home Page Centerboxes [Support]

Editable Home Page Centerboxes [Support]

Views: 50,594

Results 281 to 300 of 347
21 Jan 2014, 7:56 AM
#281
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Editable Home Page Centerboxes [Support]

shags38:

Hello Glenn,

I have tried without success to have this mod work as intended with Abbington_Mega template. My comments were out of frustration as it does not work, even with the code mod done by Gam ( I think ?). Diva has tried to help but even that didn't give the desired result. I appreciate the issues of having mods / plugins work with core programs vs altered versions. I now have 5 ZC sites, I love ZC and promote it to many people but my biggest, nay only disappointment is not being able to get this very good and very valuable mod to work with that template - and I cannot solve the 'issue', which is not a mod issue but is an issue to me and I think possible to other users of that template and possibly others.

I have your mod installed on one site but in doing that it allows only 'featured products' and not new or specials which is a pity - I am persisting with it partially working for SEO purposes and the reasons you developed it in the first place.

Not your problem.

cheers, Mike

Without more details than "it's not working", I'm afraid no one is going to be able to help you with merging Tabbed Home Page Modules (which is bundled in with the Abbington Mega template) with Editable Centerboxes.. All you've ever reported was that it didn't work.. You have not posted error logs, or even the code you used that was "not working". Without details, it's tough for anyone who cannot see your site to help you get to the bottom of your file merging issues.. There is HONESTLY no real reason why these two modules cannot work together. It's a matter or merging the overlapping files.

As Glenn stated:

gjh42:

the alterations from this mod to only three existing files are minimal and self-contained additions. It is hard to make files easier than this to merge.

There are two files that overlap between the two modules:
includes/templates/YOUR_TEMPLATE/templates/tpl_index_categories.php (if you have categories set to display on the homepage)
**includes/templates/YOUR_TEMPLATE/templates/tpl_index_default.php **(if you DO NOT have categories set to display on the homepage)

Tabbed Home Page Modules does NOT (though it should) include the tpl_index_categories.php file. GAM posted the changes required to integrate the Tabbed Home Page Modules code into the tpl_index_categories.php file. Once you have GAM's changes in place, then you need to merge the Tabbed Home Page Modules modified files with the Editable Centerboxes modified files.

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

21 Jan 2014, 1:00 PM
#282
shags38 avatar

shags38

Totally Zenned

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

Re: Editable Home Page Centerboxes [Support]

DivaVocals:

Without more details than "it's not working", I'm afraid no one is going to be able to help you with merging Tabbed Home Page Modules (which is bundled in with the Abbington Mega template) with Editable Centerboxes.. All you've ever reported was that it didn't work.. You have not posted error logs, or even the code you used that was "not working". Without details, it's tough for anyone who cannot see your site to help you get to the bottom of your file merging issues.. There is HONESTLY no real reason why these two modules cannot work together. It's a matter or merging the overlapping files.

As Glenn stated:

There are two files that overlap between the two modules:
includes/templates/YOUR_TEMPLATE/templates/tpl_index_categories.php (if you have categories set to display on the homepage)
**includes/templates/YOUR_TEMPLATE/templates/tpl_index_default.php **(if you DO NOT have categories set to display on the homepage)

Tabbed Home Page Modules does NOT (though it should) include the tpl_index_categories.php file. GAM posted the changes required to integrate the Tabbed Home Page Modules code into the tpl_index_categories.php file. Once you have GAM's changes in place, then you need to merge the Tabbed Home Page Modules modified files with the Editable Centerboxes modified files.

Diva, with great respect I do not need your continued rhetoric - I addressed the post to Glenn answering HIS question. You keep repeating yourself over and again.

You have failed to verify your statements - you cannot show me an example of this plugin working with Abbington_Mega, and neither can Gam. When you can show me such an example then you may offer comment again. In the meantime I will continue to state what I know is fact until proven otherwise, this mod does not work as intended with Abbington_Mega. ALL, I repeat, ALL the above you mentioned, that you have mentioned / suggested / indicated previously HAS BEEN DONE, over and again - merging files, then adding GAM's contribution, then re-doing it with different variables, all to no end. However you choose not to believe me Diva (again).

If you want copies of the files then ask and you shall receive - previously you didn't want me to post them.

I have asked Ann, You and now Glenn - contributors of the three (3) factors / plugins involved in the issue I have and from you and Ann I get finger pointing, from Glenn no response as yet - and the mysterious GAM is nowhere to be seen nor was his code proven to work (read his posts on the subject in detail, even he uses the words 'should work'). > There is HONESTLY no real reason why these two modules cannot work together. It's a matter or merging the overlapping files. is terrific in theory but no-one can put the proof in the pudding, empty words I'm afraid.

So at the end of the day I have a template I love and use on 5 sites and a plugin I would love to use that I have half working on one site - this is a real pity for an OS cart that is supposed to be OS.

cheers, Mike

21 Jan 2014, 1:03 PM
#283
shags38 avatar

shags38

Totally Zenned

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

Re: Editable Home Page Centerboxes [Support]

Glenn,

I am interested in your take on things given that it is your plugin and not Divas.

cheers, Mike

21 Jan 2014, 1:39 PM
#284
kitten091182 avatar

kitten091182

Zen Follower

Join Date:
May 2007
Posts:
110
Plugin Contributions:
0

Re: Editable Home Page Centerboxes [Support]

Hi,
I have to agree with Diva on this one. The only files that overlap are template files, there is no reason at all why adding code to a template file will stop another module working, if done properly. Template files simply call for something to display on a specific page. With winmerge, open up the abbington_mega includes/templates/YOUR_TEMPLATE/templates/tpl_index_categories.php file on the left, and the editable home page centerbox includes/templates/YOUR_TEMPLATE/templates/tpl_index_categories.php file on the right. Insert the editable home page centerbox code from the right to the left file, and then save the file and upload it to includes/templates/YOUR_TEMPLATE/templates/ if you can't get it working, you must have done something wrong. In which case, post that files contents here and somebody will be able to help.

21 Jan 2014, 3:09 PM
#285
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Editable Home Page Centerboxes [Support]

shags38:

Diva, with great respect I do not need your continued rhetoric - I addressed the post to Glenn answering HIS question. You keep repeating yourself over and again.

You have failed to verify your statements - you cannot show me an example of this plugin working with Abbington_Mega, and neither can Gam. When you can show me such an example then you may offer comment again. In the meantime I will continue to state what I know is fact until proven otherwise, this mod does not work as intended with Abbington_Mega. ALL, I repeat, ALL the above you mentioned, that you have mentioned / suggested / indicated previously HAS BEEN DONE, over and again - merging files, then adding GAM's contribution, then re-doing it with different variables, all to no end. However you choose not to believe me Diva (again).

If you want copies of the files then ask and you shall receive - previously you didn't want me to post them.

I have asked Ann, You and now Glenn - contributors of the three (3) factors / plugins involved in the issue I have and from you and Ann I get finger pointing, from Glenn no response as yet - and the mysterious GAM is nowhere to be seen nor was his code proven to work (read his posts on the subject in detail, even he uses the words 'should work'). is terrific in theory but no-one can put the proof in the pudding, empty words I'm afraid.

So at the end of the day I have a template I love and use on 5 sites and a plugin I would love to use that I have half working on one site - this is a real pity for an OS cart that is supposed to be OS.

cheers, Mike

Rhetoric?? I love it.. You say I have not provided PROOF that Tabbed Home Page Modules can be merged with Editable Centerboxes? How would I provide this PROOF to you?? By merging the two files that these two modules have in common for you?? I have already stated that I DON'T use this the Tabbed Home Page Modules. I would have to install it on a test site and do the merge JUST to help you.. I don't have free time to do that, but that doesn't mean that I can't (and won't) help..

GAM cannot help you because he too did not merge the two files together.. GAM's ONLY contribution was to provide the changes required to integrate the Tabbed Home Page Modules code into the tpl_index_categories.php file. He probably doesn't use Tabbed Home Page Modules with Editable Centerboxes either.. So he can't provide you with PROOF either unless he tries to install both.. In fact I am POSITIVE that the reason you haven't gotten anyone in the community providing you with the PROOF you need is because either NO ONE is using these modules together or IF they do, they have chosen NOT to share the merged code.

Don't put words into my mouth.. I never ONCE stated that I don't believe you are having issues.. I do believe you are. So did Ann.. Your many posts on this topic are PROOF of that.. We were all willing to help you.. Ann pointed you to the support threads for Tabbed Home Page Modules & Editable Centerboxes which is the right place for your concerns. You called that finger pointing.. I asked you to provide more information.. NO ONE in the community can help you based on the information you provided thus far.. What YOU seem to want/expect is for someone to simply post the merged code for the tpl_index_categories.php and **tpl_index_default.php **files.. Unless folks have spare time to install BOTH modules so they can provide you with the merged code, this may not happen.. So you need to help us help you..

If merging these modules isn't working I PROMISE you that there WILL BE error logs. Post your error logs.. POST YOUR CODE.. Without this there is NO WAY ANYONE can help you with this... That's not rhetoric (as you keep calling it).. that's the information EVERYONE asks for all over this forum when someone reports something is "broken" or "not working".

shags38:

Glenn,

I am interested in your take on things given that it is your plugin and not Divas.

cheers, MikeNow this is a funny statement.. for the record, this plugin is OPEN SOURCE.. NOT commercial.. this means it belongs to the COMMUNITY, not Glenn. Glenn is the latest maintainer of the module I first submitted.. You don't want me to respond?? well it's a community forum.. I will respond if I feel it's warranted because as one of the community members who originated this mod, I still hep provide support for this mod.. You can choose to ignore my words though..

kitten091182:

Hi,
I have to agree with Diva on this one. The only files that overlap are template files, there is no reason at all why adding code to a template file will stop another module working, if done properly. Template files simply call for something to display on a specific page. With winmerge, open up the abbington_mega includes/templates/YOUR_TEMPLATE/templates/tpl_index_categories.php file on the left, and the editable home page centerbox includes/templates/YOUR_TEMPLATE/templates/tpl_index_categories.php file on the right. Insert the editable home page centerbox code from the right to the left file, and then save the file and upload it to includes/templates/YOUR_TEMPLATE/templates/ if you can't get it working, you must have done something wrong. In which case, post that files contents here and somebody will be able to help.
Exactly.. and posting the error logs along with the code will be a HUGE help..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

21 Jan 2014, 4:09 PM
#286
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Editable Home Page Centerboxes [Support]

Given the concept of Tabbed Homepage Modules, I could imagine it not working correctly with Editable Centerboxes if you merged the EC code into the wrong place. This would possibly cause the EC code to be skipped except in certain circumstances; I'm not sure how the EC code could interfere with the Tabs working.

What we really need is to see the file where you merged EC code into the Tabbed file(s). Then we can probably find the flaw.

21 Jan 2014, 4:22 PM
#287
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Editable Home Page Centerboxes [Support]

gjh42:

What we really need is to see the file where you merged EC code into the Tabbed file(s). Then we can probably find the flaw.Gosh.. where have I heard that before???? Hmmmmmmmm

Oh I know.. I posted the SAME advice too..

However, I'm sure this will be viewed as if it's NEW information (as opposed to "rhetoric" or "finger pointing") since YOU are posting it Glenn. SHM:no:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

21 Jan 2014, 8:13 PM
#288
shags38 avatar

shags38

Totally Zenned

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

Re: Editable Home Page Centerboxes [Support]

gjh42:

Given the concept of Tabbed Homepage Modules, I could imagine it not working correctly with Editable Centerboxes if you merged the EC code into the wrong place. This would possibly cause the EC code to be skipped except in certain circumstances; I'm not sure how the EC code could interfere with the Tabs working.

What we really need is to see the file where you merged EC code into the Tabbed file(s). Then we can probably find the flaw.

Glenn, here are the merged files;

includes/templates/abbington_mega/templates/tpl_index_categories

<?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_categories.php 4678 2006-10-05 21:02:50Z 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) { ?> <div id="indexCategoriesMainContent" class="content"><?php /** * require the html_define for the index/categories page */ include($define_page); ?></div> <?php } ?> <?php } else { ?> <h1 id="indexCategoriesHeading"><?php echo $breadcrumb->last(); ?></h1> <?php } ?> <?php if (PRODUCT_LIST_CATEGORIES_IMAGE_STATUS_TOP == 'true') { // categories_image if ($categories_image = zen_get_categories_image($current_category_id)) { ?> <div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image, '', SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?></div> <?php } } // categories_image ?> <?php if (MIDDLEBOX_POSITION == 1) { ?> <!-- Begin Main Page Middleboxes Above Main Page Define --> <?php if($this_is_home_page) require($template->get_template_dir('tpl_middlebox_controller.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middlebox_controller.php'); ?> <!-- End Main Page Middleboxes Above Main Page Define --> <?php } ?> <?php } // categories_description ?> <br class="clearBoth" /> <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?> <?php if (PRODUCT_LIST_CATEGORY_ROW_STATUS == 0) { // do nothing } else { // display subcategories /** * get the Define Main Page Text */ require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php'); } ?> <!-- EOF: Display grid of available sub-categories --> <?php // categories_description_sub if ($current_categories_description_sub != '') { ?> <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div> <?php } ?> <?php if (MIDDLEBOX_POSITION == 2) { ?> <!-- Begin Main Page Middleboxes Below Main Page Define --> <?php if($this_is_home_page) require($template->get_template_dir('tpl_middlebox_controller.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middlebox_controller.php'); ?> <!-- End Main Page Middleboxes Below Main Page Define --> <?php } ?>

while (!$show_display_category->EOF) {
// // echo 'I found ' . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS);

<?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 if (MIDDLEBOX_POSITION == 3) { ?> <!-- Begin Main Page Middleboxes Below New, Featured, Specials, etc --> <?php if($this_is_home_page) require($template->get_template_dir('tpl_middlebox_controller.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middlebox_controller.php'); ?> <!-- End Main Page Middleboxes Below New, Featured, Specials, etc--> <?php } ?> </div>

includes/templates/abbington_mega/templates/tpl_index_default

<?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 (MIDDLEBOX_POSITION == 1) { ?> <!-- Begin Main Page Middleboxes Above Main Page Define --> <?php if($this_is_home_page) require($template->get_template_dir('tpl_middlebox_controller.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middlebox_controller.php'); ?> <!-- End Main Page Middleboxes Above Main Page Define --> <?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 if (MIDDLEBOX_POSITION == 2) { ?> <!-- Begin Main Page Middleboxes Below Main Page Define --> <?php if($this_is_home_page) require($template->get_template_dir('tpl_middlebox_controller.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middlebox_controller.php'); ?> <!-- End Main Page Middleboxes Below Main Page Define --> <?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 if (MIDDLEBOX_POSITION == 3) { ?> <!-- Begin Main Page Middleboxes Below New, Featured, Specials, etc --> <?php if($this_is_home_page) require($template->get_template_dir('tpl_middlebox_controller.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middlebox_controller.php'); ?> <!-- End Main Page Middleboxes Below New, Featured, Specials, etc--> <?php } ?> </div>

as indicated earlier - only the 'featured' tab shows, the other two 'specials' and 'new products' will not show. 'Featured' is the default tab designated to always open on page load.
cheers, Mike

22 Jan 2014, 2:16 AM
#289
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Editable Home Page Centerboxes [Support]

Two observations..

  1. This code looks like it's from an OLD version of Editable Centerboxes.
  2. If the point of this exercise is to MERGE Tabbed Home Page Modules with Editable Centerboxes, where is the Tabbed Home Page Modules code.

If this is the code you are using it's no wonder that nothing is working correctly for you..

Suggest you start with the latest version of Editable Centerboxes. Then you should post your merged files so that folks can see how you've merged the common files needed to get these two modules working together..

Also you should enclose your code in the code tags ([ CODE ] your code goes here [ /CODE ] -- ignore the spaces after the "[") so that the forum doesn't inadvertently parse your code. Plus it makes it easier to read.. You'll see that I took the liberty of tagging your posted code so you can see the difference..

shags38:

Glenn, here are the merged files;

includes/templates/abbington_mega/templates/tpl_index_categories

<?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 [URL]http://www.zen-cart.com/license/2_0.txt[/URL] GNU Public License V2.0 * @version $Id: tpl_index_categories.php 4678 2006-10-05 21:02:50Z 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) { ?> <div id="indexCategoriesMainContent" class="content"><?php /** * require the html_define for the index/categories page */ include($define_page); ?></div> <?php } ?> <?php } else { ?> <h1 id="indexCategoriesHeading"><?php echo $breadcrumb->last(); ?></h1> <?php } ?> <?php if (PRODUCT_LIST_CATEGORIES_IMAGE_STATUS_TOP == 'true') { // categories_image if ($categories_image = zen_get_categories_image($current_category_id)) { ?> <div id="categoryImgListing" class="categoryImg"><?php echo zen_image(DIR_WS_IMAGES . $categories_image, '', SUBCATEGORY_IMAGE_TOP_WIDTH, SUBCATEGORY_IMAGE_TOP_HEIGHT); ?></div> <?php } } // categories_image ?> <?php if (MIDDLEBOX_POSITION == 1) { ?> <!-- Begin Main Page Middleboxes Above Main Page Define --> <?php if($this_is_home_page) require($template->get_template_dir('tpl_middlebox_controller.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middlebox_controller.php'); ?> <!-- End Main Page Middleboxes Above Main Page Define --> <?php } ?> <?php } // categories_description ?> <br class="clearBoth" /> <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?> <?php if (PRODUCT_LIST_CATEGORY_ROW_STATUS == 0) { // do nothing } else { // display subcategories /** * get the Define Main Page Text */ require($template->get_template_dir('tpl_modules_category_row.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_row.php'); } ?> <!-- EOF: Display grid of available sub-categories --> <?php // categories_description_sub if ($current_categories_description_sub != '') { ?> <div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div> <?php } ?> <?php if (MIDDLEBOX_POSITION == 2) { ?> <!-- Begin Main Page Middleboxes Below Main Page Define --> <?php if($this_is_home_page) require($template->get_template_dir('tpl_middlebox_controller.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middlebox_controller.php'); ?> <!-- End Main Page Middleboxes Below Main Page Define --> <?php } ?>

while (!$show_display_category->EOF) {
// // echo 'I found ' . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS);

<?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 if (MIDDLEBOX_POSITION == 3) { ?> <!-- Begin Main Page Middleboxes Below New, Featured, Specials, etc --> <?php if($this_is_home_page) require($template->get_template_dir('tpl_middlebox_controller.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middlebox_controller.php'); ?> <!-- End Main Page Middleboxes Below New, Featured, Specials, etc--> <?php } ?> </div> ``` > **includes/templates/abbington_mega/templates/tpl_index_default** > > ``` <?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 [URL]http://www.zen-cart.com/license/2_0.txt[/URL] 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 (MIDDLEBOX_POSITION == 1) { ?> <!-- Begin Main Page Middleboxes Above Main Page Define --> <?php if($this_is_home_page) require($template->get_template_dir('tpl_middlebox_controller.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middlebox_controller.php'); ?> <!-- End Main Page Middleboxes Above Main Page Define --> <?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 if (MIDDLEBOX_POSITION == 2) { ?> <!-- Begin Main Page Middleboxes Below Main Page Define --> <?php if($this_is_home_page) require($template->get_template_dir('tpl_middlebox_controller.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middlebox_controller.php'); ?> <!-- End Main Page Middleboxes Below Main Page Define --> <?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 if (MIDDLEBOX_POSITION == 3) { ?> <!-- Begin Main Page Middleboxes Below New, Featured, Specials, etc --> <?php if($this_is_home_page) require($template->get_template_dir('tpl_middlebox_controller.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middlebox_controller.php'); ?> <!-- End Main Page Middleboxes Below New, Featured, Specials, etc--> <?php } ?> </div> ``` > > > as indicated earlier - only the 'featured' tab shows, the other two 'specials' and 'new products' will not show. 'Featured' is the default tab designated to always open on page load. > cheers, Mike

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

22 Jan 2014, 3:11 AM
#290
shags38 avatar

shags38

Totally Zenned

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

Re: Editable Home Page Centerboxes [Support]

This code looks like it's from an OLD version of Editable Centerboxes. when did the plugin get updated for v1.3.9h? my site is v1.3.9h so I am using the version for that version, not the one for 1.5.x
If the point of this exercise is to MERGE Tabbed Home Page Modules with Editable Centerboxes, where is the Tabbed Home Page Modules code incorporated in the Abbington_Mega template as far as I am aware

22 Jan 2014, 4:03 AM
#291
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Editable Home Page Centerboxes [Support]

The newest version of EC would work with v1.3.9, but the admin SQL would need to be recast in v1.3.9 form first. As far as the files go, there would be no issues at all.

22 Jan 2014, 5:16 AM
#292
shags38 avatar

shags38

Totally Zenned

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

Re: Editable Home Page Centerboxes [Support]

gjh42:

The newest version of EC would work with v1.3.9, but the admin SQL would need to be recast in v1.3.9 form first. As far as the files go, there would be no issues at all.

Thanks Glenn - so essentially the fact that I have used the files from the older version for merging should not be a cause for it not working?

For a moment lets work on the premise(s);

  1. that the merging of the files is correct, there are no faults (I am confident that this is the case) and
    2.taking into account that the THPM plugin is actually incorporated in the code of the Abbington Mega template
  2. and that EC is working on my site, which it is - it works, I have an EC below the tabs, problem is that only one tab is loading (Featured Products)

Could it be something like a piece of code in the Abbington Mega incorporated version code for THPM that is preventing all 3 tabs from opening at once - I ask this because if you look at pages 5 onwards in the THPM support forum there is a fair amount of dialogue between Anne who designed the template and rarbour and then GAM about getting all product tabs to load, and or in order (I believe it may have been a 1.5.1 issue?) - there is a hierarchy for showing an open tab, you can select preference which tab opens on page loading. In other words is something saying 'only load Featured Products' in the code that you can see.

I appreciate what Diva says about my issue is nothing to do with the template - I would agree with that 100% if both plugins were standalone plugins on a virgin ZC template (or any other template) however it begs the compatibility question, at least to me. EC is working, the tabs are not.

I will go over everything I have done to date, and in fact will re-do the whole thing from scratch using both the original files I used for merging and will download the latest version of EC and work with that as well although I am not expecting anything to change.

Thanks for your patience.

cheers, Mike

22 Jan 2014, 5:36 AM
#293
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Editable Home Page Centerboxes [Support]

Don't try to install the latest EC on v1.3.9h unless you can rework the SQL - it won't take.

Do you know where the tabbed file differs from the original, and how? I couldn't see anything that looked like distinguishing code. I think that the tabbed mod works strictly by jquery and doesn't need much in the PHP file.

22 Jan 2014, 5:53 AM
#294
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Editable Home Page Centerboxes [Support]

shags38:

when did the plugin get updated for v1.3.9h? my site is v1.3.9h so I am using the version for that version, not the one for 1.5.x
incorporated in the Abbington_Mega template as far as I am awareEditable Centerboxes was not updated for ZC v1.3.9 because ZC v1.3.9 is not longer officially supported..

shags38:

Could it be something like a piece of code in the Abbington Mega incorporated version code for THPM that is preventing all 3 tabs from opening at once - I ask this because if you look at pages 5 onwards in the THPM support forum there is a fair amount of dialogue between Anne who designed the template and rarbour and then GAM about getting all product tabs to load, and or in order (I believe it may have been a 1.5.1 issue?) - there is a hierarchy for showing an open tab, you can select preference which tab opens on page loading. In other words is something saying 'only load Featured Products' in the code that you can see.Anne did not do anything special to the Tabbed Homepages Modules when she incorporated it into her templates.. She installed it just like anyone else would have installed it. That said issues related to the functionality of the Tabbed Homepage Modules should be addressed in that support thread..

shags38:

I appreciate what Diva says about my issue is nothing to do with the template - I would agree with that 100% if both plugins were standalone plugins on a virgin ZC template (or any other template) however it begs the compatibility question, at least to me. EC is working, the tabs are not.The issue is a straightforward issue with two modules.. this is NOT unique to the Abbington Mega template..

shags38:

I will go over everything I have done to date, and in fact will re-do the whole thing from scratch using both the original files I used for merging and will download the latest version of EC and work with that as well although I am not expecting anything to change.and it will help folks to help you if you post your MERGED code.. We've still not seen the merged code you are attempting to use that is NOT working.. We can't GUESS why it's not working until you post the merged code you are using that is failing..

gjh42:

Don't try to install the latest EC on v1.3.9h unless you can rework the SQL - it won't take.Commenting out lines 8, 15, & 16 of the Editable Centerboxes SQL file will make it work with ZC v1.3.9.

gjh42:

Do you know where the tabbed file differs from the original, and how? I couldn't see anything that looked like distinguishing code. I think that the tabbed mod works strictly by jquery and doesn't need much in the PHP file.I don't see ANYTHING in the code Shags posted that was from the Tabbed Homepage Modules add-on..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

22 Jan 2014, 6:03 AM
#295
shags38 avatar

shags38

Totally Zenned

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

Re: Editable Home Page Centerboxes [Support]

and it will help folks to help you if you post your MERGED code.. We've still not seen the merged code you are attempting to use that is NOT working.. We can't GUESS why it's not working until you post the merged code you are using that is failing..

they are posted above :smile:

22 Jan 2014, 6:49 AM
#296
shags38 avatar

shags38

Totally Zenned

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

Re: Editable Home Page Centerboxes [Support]

and it will help folks to help you if you post your MERGED code.. We've still not seen the merged code you are attempting to use that is NOT working.. We can't GUESS why it's not working until you post the merged code you are using that is failing.

Diva - by 'MERGED' above I took it to mean the final merged product however you had seen those files so I am now wondering do you mean the virgin files that 'were used for merging'? if not then the actual merged files that are not working correctly are the ones I posted - they are a result of merging files as per the instructions for EC, but NOT GAM's as you suggested as when his file was used the page went blank, likely because his file was for v1.5.1 whereas I am using v1.3.9h (I will upgrade soon).

cheers, Mike

22 Jan 2014, 6:50 AM
#297
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Editable Home Page Centerboxes [Support]

shags38:

they are posted above :smile:

You only posted older versions of the Editable Centerbox modules tpl_index_categories.php & tpl_index_default.php files. There is no code in either of the files you posted that looks like it's from the Tabbed Homepage Modules. So if you are trying to get BOTH of these modules to work together, it's no surprise that they don't work for you since it doesn't appear that you've MERGED the tpl_index_categories.php & tpl_index_default.php files from both add-ons..

and let me be clear.. BOTH add-ons modify the same files.. so you will need to merge the code changes from BOTH modules if you want them both to work together..

and BTW GAMs changes will work on v1.3.9 or 1.5.x.. You got a blank page because something went wrong with your merges.. and without seeing your merged files with the code from BOTH modules we can't know what went wrong.. without error logs when you get blank pages we can't help you with what went wrong..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

22 Jan 2014, 6:53 AM
#298
shags38 avatar

shags38

Totally Zenned

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

Re: Editable Home Page Centerboxes [Support]

Diva - it does work, only not loading all 3 tabs, so I did merge the correct files - however I will do it again and get back to you when done. I have the tabs 'box' loading where it should, Featured Products only and product shows in it, and an EC below that with text in it - so the code is working except not all tabs loading.

cheers, Mike

22 Jan 2014, 6:58 AM
#299
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Editable Home Page Centerboxes [Support]

shags38:

Diva - by 'MERGED' above I took it to mean the final merged product however you had seen those files so I am now wondering do you mean the virgin files that 'were used for merging'? if not then the actual merged files that are not working correctly are the ones I posted - they are a result of merging files as per the instructions for EC, but NOT GAM's as you suggested as when his file was used the page went blank, likely because his file was for v1.5.1 whereas I am using v1.3.9h (I will upgrade soon).

cheers, Mike

By MERGED I mean the files you posted do not look like the tpl_index_categories.php & tpl_index_default.php files which contains code from BOTH Tabbed Hompage Modules and Editable Centerboxes code. Theyu look like files from an older version of Editable Centerboxes.. which is why Glenn and I BOTH asked where is the code from Tabbed Homepage Modules in the files you posted..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

22 Jan 2014, 7:02 AM
#300
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Editable Home Page Centerboxes [Support]

shags38:

Diva - it does work, only not loading all 3 tabs, so I did merge the correct files - however I will do it again and get back to you when done. I have the tabs 'box' loading where it should, Featured Products only and product shows in it, and an EC below that with text in it - so the code is working except not all tabs loading.

cheers, Mike
So let me get this straight.. you have BOTH Editable Centerboxes and Tabbed Hompage Modules working together, but the Tabbed Homepage Modules is NOT functioning properly??

If this is correct then issues with the Tabbed Homepage Modules add-on need to be addressed in the support thread for that module.. Editable Centerboxes wouldn't be the cause of this issue.. I've seen this issue posted before and there is a solution posted as well.. but NONE of this is an issue caused by Editable Centerboxes..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.