Results 1 to 10 of 347

Hybrid View

  1. #1
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Editable Home Page Centerboxes [Support]

    Quote Originally Posted by rlexyd View Post
    Is this Mod still current, I would like to install this for a new 1.5.7 instalation and not sure if it's compatible since the last responce was from 2019?! I just need a few main images on my front page.
    So I've looked through the fileset and it doesn't appear that there is anything that specifically needs updating/revision for ZC V1.5.7. The associated template files haven't been modified in several years (longer than before the last edit to the module) and I didn't really see anything in the associated display module that would be php 7.x problematic, though there might be some sort of "strict" processing issues as a possibility during initial install if the database is not populated before the files being placed. The only thing that really may be an issue is that the installer is similar to others that may present a problem with at least one other plugin because the two use a similar variable causing the variable to lose meaning for the other plugin.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #2
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    458
    Plugin Contributions
    1

    Default Re: Editable Home Page Centerboxes [Support]

    Thank you for your response.
    Will try it on a blank website and see how it goes, will report if any issues develop.
    Thanks again.

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

    Default Re: Editable Home Page Centerboxes [Support]

    v1.5.5f westminster_new template

    Hello MC - I do not seem to be able to get <h3>heading</h3> to work in the middle box on the main page - <h2>heading</h2> works fine but h3 results in a whitespace - is there somewhere I can attempt to adjust code to fix this?
    cheers,
    Mike

  4. #4
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,303
    Plugin Contributions
    1

    Default Re: Editable Home Page Centerboxes [Support]

    Quote Originally Posted by shags38 View Post
    v1.5.5f westminster_new template

    Hello MC - I do not seem to be able to get <h3>heading</h3> to work in the middle box on the main page - <h2>heading</h2> works fine but h3 results in a whitespace - is there somewhere I can attempt to adjust code to fix this?
    cheers,
    Mike
    While I'm unfamiliar with this mod, it appears that the H3 heading 'We put the Choice and Variety back into Clip On Earrings' is not displaying because it is the same colour (white) as the background (white).

    I would look at this code in stylesheet_middleboxes.css

    Code:
    .middleboxContainer h3,
    .middleboxContainer h3 a {
     color:#ffffff;
    }
    Simon

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

    Default Re: Editable Home Page Centerboxes [Support]

    v1.5.7b PHP 7.3 responsive classic template

    I would like to use this plugin again (have for years) - previously in v1.5.5f / westminster_new

    I AM HOPELESS AT MERGNG FILES .... it has been my biggest issue over the years in not merging correctly and creating problems - so it is terrifying to see lots of colored lines on each side of the ledger when comparing the template files from this plugin and responsive classic in two of the three files - I dread even attempting it (if it is something that I regard as simple and obvious enough I will attempt it, but that is a big 'if')

    2 questions;
    1. if I am only ever going to use just one box on the main page, not anywhere else, can I install just a merged includes/templates/my template/templates/tpl_index_default.php and ignore the other two template files - the merge for tpl_index_default is simplistic so I think (caveat) I can mage that one.
    In looking at my equivalent files in v1.5.5f where I had this plugin installed I only had tpl_index_default merged and not the other two, that I can see, and (eventually, with lots of help and extreme tolerance from mc12345678) I had it working well on the home page - all other files were installed.

    2. if not, then is it possible to get some guidance on merging the other two files?

    includes/templates/mytemplate/common/tpl_main_page.php
    the following I think should be copied across to the existing site file;

    <?php
    $box_loc = '8';//middlebox group
    require($template->get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php');
    ?>

    <?php
    $box_loc = '9';//middlebox group
    require($template->get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php');
    ?>

    <!--bof- parse time display -->
    <?php
    if (DISPLAY_PAGE_PARSE_TIME == 'true') {
    ?>
    <div class="smallText center">Parse Time: <?php echo $parse_time; ?> - Number of Queries: <?php echo $db->queryCount(); ?> - Query Time: <?php echo $db->queryTime(); ?></div>
    <?php
    }
    ?>
    <!--eof- parse time display -->
    ########################################

    includes/templates/my template/templates/tpl_index_categories.php
    the following I think should be copied across to the existing site file;

    <!-- deprecated - to use - uncomment
    <?php if (TEXT_MAIN) { ?>
    <div id="" class="content"><?php echo TEXT_MAIN; ?></div>
    <?php } ?>-->

    <!-- deprecated - to use - uncomment
    <?php if (TEXT_INFORMATION) { ?>
    <div id="" class="content"><?php echo TEXT_INFORMATION; ?></div>
    <?php } ?>-->

    <?php
    $box_loc = '4';//middlebox group
    require($template->get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php');
    ?>

    <?php
    $box_loc = '5';//middlebox group
    require($template->get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php');
    ?>

    <?php
    $box_loc = '6';//middlebox group
    require($template->get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php');
    ?>

    <?php
    $box_loc = '7';//middlebox group
    require($template->get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php');
    ?>

    </div>
    ####################___

    the rest of what I see as variations appear to my untrained eye to just be changes in versions between 2012 and 2016 / 2020



    I am trying harder these days to do my own problem solving before jumping headlong into the forum for help - but this is really scary to me.

    cheers,
    Mike

  6. #6
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,741
    Plugin Contributions
    22

    Default Re: Editable Home Page Centerboxes [Support]

    Here's a version with 1.5.7b files all merged. Give it a try.

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

    Default Re: Editable Home Page Centerboxes [Support]

    Quote Originally Posted by balihr View Post
    Here's a version with 1.5.7b files all merged. Give it a try.
    Thanks Leonard - that is very generous of you mate!

    So looking at mc12345678 response following yours I am encouraged to try doing a merge myself mainly because I need to have a go - I can do so confidently now in the knowledge that I have the pre-merged files from you should I stuff it up

    I really do appreciate your thoughtfulness in sending that file.

    thanks very much,
    Mike

  8. #8
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Editable Home Page Centerboxes [Support]

    Quote Originally Posted by shags38 View Post
    v1.5.7b PHP 7.3 responsive classic template

    I would like to use this plugin again (have for years) - previously in v1.5.5f / westminster_new

    I AM HOPELESS AT MERGNG FILES .... it has been my biggest issue over the years in not merging correctly and creating problems - so it is terrifying to see lots of colored lines on each side of the ledger when comparing the template files from this plugin and responsive classic in two of the three files - I dread even attempting it (if it is something that I regard as simple and obvious enough I will attempt it, but that is a big 'if')

    2 questions;
    1. if I am only ever going to use just one box on the main page, not anywhere else, can I install just a merged includes/templates/my template/templates/tpl_index_default.php and ignore the other two template files - the merge for tpl_index_default is simplistic so I think (caveat) I can mage that one.
    In looking at my equivalent files in v1.5.5f where I had this plugin installed I only had tpl_index_default merged and not the other two, that I can see, and (eventually, with lots of help and extreme tolerance from mc12345678) I had it working well on the home page - all other files were installed.

    2. if not, then is it possible to get some guidance on merging the other two files?

    includes/templates/mytemplate/common/tpl_main_page.php
    the following I think should be copied across to the existing site file;
    Code:
    <?php
    $box_loc = '8';//middlebox group
    require($template->get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php');
    ?>
    
    <?php 
    $box_loc = '9';//middlebox group
    require($template->get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php');
    ?>
    
    <!--bof- parse time display -->
    <?php
      if (DISPLAY_PAGE_PARSE_TIME == 'true') {
    ?>
    <div class="smallText center">Parse Time: <?php echo $parse_time; ?> - Number of Queries: <?php echo $db->queryCount(); ?> - Query Time: <?php echo $db->queryTime(); ?></div>
    <?php
      }
    ?>
    <!--eof- parse time display -->
    ########################################
    includes/templates/my template/templates/tpl_index_categories.php
    the following I think should be copied across to the existing site file;
    Code:
    <!-- deprecated - to use - uncomment
    <?php if (TEXT_MAIN) { ?>
    <div id="" class="content"><?php echo TEXT_MAIN; ?></div>
    <?php } ?>-->
    
    <!-- deprecated - to use - uncomment
    <?php if (TEXT_INFORMATION) { ?>
    <div id="" class="content"><?php echo TEXT_INFORMATION; ?></div>
    <?php } ?>-->
    
    <?php 
    $box_loc = '4';//middlebox group
    require($template->get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php');
    ?>
    
    <?php 
    $box_loc = '5';//middlebox group
    require($template->get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php');
    ?>
    
    <?php 
    $box_loc = '6';//middlebox group
    require($template->get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php');
    ?>
    
    <?php 
    $box_loc = '7';//middlebox group
    require($template->get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php');
    ?>
    
    </div>
    ####################___
    the rest of what I see as variations appear to my untrained eye to just be changes in versions between 2012 and 2016 / 2020



    I am trying harder these days to do my own problem solving before jumping headlong into the forum for help - but this is really scary to me.

    cheers,
    Mike
    GOOD SLEUTHING!

    So, you obviously figured out some file differences. Specifically differences that would (could) change what the page(s) display.

    Some of the identified differences though are actually changes that were made to the Zen Cart template and have nothing to do with this plugin. I guess I actually should say that some of those changes do not impact the intended use of the plugin.

    So, to back out from that a little, you only ever really, truly, fully need to install the software that is necessary to get the result you need/want. Now, huge caveat there, anything other than a full package may cause questions to be asked the next time around if there are not good notes/documentation... for example, right now are asking why do your current files (those becoming "old") only incorporate a portion of this plugin and is it possible to continue to operate that way?

    Welp, think you have your answer, don't you?

    From the template changes identified above, the "two" lines where '$box_loc =' and the require just after it are needed to display the box that is assigned to the location identified by that number. Any <?php and/or ?> surrounding that are needed based on where in the page content they are being placed. Content between those tags is php while outside of it is the html space.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: Editable Home Page Centerboxes [Support]

    Quote Originally Posted by mc12345678 View Post
    GOOD SLEUTHING!

    So, you obviously figured out some file differences. Specifically differences that would (could) change what the page(s) display.

    Some of the identified differences though are actually changes that were made to the Zen Cart template and have nothing to do with this plugin. I guess I actually should say that some of those changes do not impact the intended use of the plugin.

    So, to back out from that a little, you only ever really, truly, fully need to install the software that is necessary to get the result you need/want. Now, huge caveat there, anything other than a full package may cause questions to be asked the next time around if there are not good notes/documentation... for example, right now are asking why do your current files (those becoming "old") only incorporate a portion of this plugin and is it possible to continue to operate that way?

    Welp, think you have your answer, don't you?

    From the template changes identified above, the "two" lines where '$box_loc =' and the require just after it are needed to display the box that is assigned to the location identified by that number. Any <?php and/or ?> surrounding that are needed based on where in the page content they are being placed. Content between those tags is php while outside of it is the html space.
    Thanks for the encouragement MC ... and the explanation. You will note in my reply to balihr (Leonard) that I will confidently now try a merge myself - I need to for my own education I suppose and confidence going forward - having his pre-merged files gives me a fallback position should I need it, using his files as a reference.

    very much appreciated,
    Mike

 

 

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