Page 29 of 35 FirstFirst ... 192728293031 ... LastLast
Results 281 to 290 of 347
  1. #281
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Editable Home Page Centerboxes

    Quote Originally Posted by shags38 View Post
    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:
    Quote Originally Posted by gjh42 View Post
    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.
    Last edited by DivaVocals; 21 Jan 2014 at 08:58 AM.
    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.

  2. #282
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,673
    Plugin Contributions
    1

    Default Re: Editable Home Page Centerboxes

    Quote Originally Posted by DivaVocals View Post
    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

  3. #283
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,673
    Plugin Contributions
    1

    Default 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

  4. #284

    Default Re: Editable Home Page Centerboxes

    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.

  5. #285
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Editable Home Page Centerboxes [Support]

    Quote Originally Posted by shags38 View Post
    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".

    Quote Originally Posted by shags38 View Post
    Glenn,

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

    cheers, Mike
    Now 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..

    Quote Originally Posted by kitten091182 View Post
    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..
    Last edited by DivaVocals; 21 Jan 2014 at 04:16 PM.
    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.

  6. #286
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.

  7. #287
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Editable Home Page Centerboxes [Support]

    Quote Originally Posted by gjh42 View Post
    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**
    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.

  8. #288
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,673
    Plugin Contributions
    1

    Default Re: Editable Home Page Centerboxes [Support]

    Quote Originally Posted by gjh42 View Post
    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
    Last edited by shags38; 21 Jan 2014 at 09:18 PM.

  9. #289
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default 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..

    Quote Originally Posted by shags38 View Post
    Glenn, here are the merged files;

    includes/templates/abbington_mega/templates/tpl_index_categories

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

    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 (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
    Last edited by DivaVocals; 22 Jan 2014 at 03:19 AM.
    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.

  10. #290
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,673
    Plugin Contributions
    1

    Default 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
    Last edited by shags38; 22 Jan 2014 at 04:14 AM.

 

 
Page 29 of 35 FirstFirst ... 192728293031 ... LastLast

Similar Threads

  1. v154 Editable Invoices & Packing Slips [Support]
    By dbltoe in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 7 Oct 2015, 11:44 PM
  2. Admin-Editable Sidebox - Support Thread
    By kuroi in forum Addon Sideboxes
    Replies: 331
    Last Post: 29 Oct 2014, 04:15 AM
  3. Move Define Page Text to bottom of page, below centerboxes
    By AirsoftOutfitter in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Jul 2011, 02:13 AM
  4. Editable Home Page Centerboxes click-able links
    By colhemm in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 22 Feb 2011, 09:04 PM
  5. Image above centerboxes on main page
    By direwolf in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 May 2008, 06:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg