Results 1 to 10 of 347

Hybrid View

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

    Default Re: Editable Home Page Centerboxes [Support]

    I am trying to utilize these middle boxes on other pages. I currently use one box on the main page in location 3, Below New, Specials, Featured etc. centerboxes.

    In admin/configuration I changed to 0 for ALL pages and then selected location 9 for a box (Categories - Always Show on Main Page is set to No) and entered some text in that box in define pages editor but I am not seeing that box show up on any pages which I expected it should - have I missed something? from the configuration instructions in readme ... If you use the position settings 8 or 9 for a box, it will appear on all pages regardless of other settings. (all pages I believe only includes home and category pages?) ... I'm not seeing any error logs.

    cheers, Mike

    P.S. I found this in the readme however I am not sure that it applies to the above, albeit would it be relevant if I wanted to include a box in an EZ page?;

    HTML Code:
    If you want to add new locations where middleboxes can be displayed, you will need to insert a
    get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php'); ?>
    statement in the desired location, with the new location number (8 or higher) in place of the X and the comment text you want to use to identify the middlebox group in the page's HTML source.
    Then you will need to modify the SQL to update the middlebox location settings in the admin menu, adding the new locations, and run the SQL in Tools > Install SQL Patches.
    
    Alternatively, you can simply move one of the existing
    get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php'); ?>
    function statements from a location you do not need to a new location or file where you want to use it. This requires no SQL modifications, though the admin setting descriptions will not describe your new location.

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

    Default Re: Editable Home Page Centerboxes [Support]

    Quote Originally Posted by shags38 View Post
    I am trying to utilize these middle boxes on other pages. I currently use one box on the main page in location 3, Below New, Specials, Featured etc. centerboxes.

    In admin/configuration I changed to 0 for ALL pages and then selected location 9 for a box (Categories - Always Show on Main Page is set to No) and entered some text in that box in define pages editor but I am not seeing that box show up on any pages which I expected it should - have I missed something? from the configuration instructions in readme ... If you use the position settings 8 or 9 for a box, it will appear on all pages regardless of other settings. (all pages I believe only includes home and category pages?) ... I'm not seeing any error logs.

    cheers, Mike

    P.S. I found this in the readme however I am not sure that it applies to the above, albeit would it be relevant if I wanted to include a box in an EZ page?;

    HTML Code:
    If you want to add new locations where middleboxes can be displayed, you will need to insert a
    get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php'); ?>
    statement in the desired location, with the new location number (8 or higher) in place of the X and the comment text you want to use to identify the middlebox group in the page's HTML source.
    Then you will need to modify the SQL to update the middlebox location settings in the admin menu, adding the new locations, and run the SQL in Tools > Install SQL Patches.
    
    Alternatively, you can simply move one of the existing
    get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php'); ?>
    function statements from a location you do not need to a new location or file where you want to use it. This requires no SQL modifications, though the admin setting descriptions will not describe your new location.
    Using admin > configuration > Editable Centerboxes - Centerboxes on pages other than home page works fine in v1.5.1 but I cannot get it to work in v1.5.5f - has anyone got it working satisfactorily in 155f? - if so was there a fix you used or was the plugin installed as downloaded? Not sure if I may have missed a file merge or something.

    cheers, Mike

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

    Default Re: Editable Home Page Centerboxes [Support]

    Quote Originally Posted by shags38 View Post
    I am trying to utilize these middle boxes on other pages. I currently use one box on the main page in location 3, Below New, Specials, Featured etc. centerboxes.

    In admin/configuration I changed to 0 for ALL pages and then selected location 9 for a box (Categories - Always Show on Main Page is set to No) and entered some text in that box in define pages editor but I am not seeing that box show up on any pages which I expected it should - have I missed something? from the configuration instructions in readme ... If you use the position settings 8 or 9 for a box, it will appear on all pages regardless of other settings. (all pages I believe only includes home and category pages?) ... I'm not seeing any error logs.

    cheers, Mike

    P.S. I found this in the readme however I am not sure that it applies to the above, albeit would it be relevant if I wanted to include a box in an EZ page?;

    HTML Code:
    If you want to add new locations where middleboxes can be displayed, you will need to insert a
    get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php'); ?>
    statement in the desired location, with the new location number (8 or higher) in place of the X and the comment text you want to use to identify the middlebox group in the page's HTML source.
    Then you will need to modify the SQL to update the middlebox location settings in the admin menu, adding the new locations, and run the SQL in Tools > Install SQL Patches.
    
    Alternatively, you can simply move one of the existing
    get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php'); ?>
    function statements from a location you do not need to a new location or file where you want to use it. This requires no SQL modifications, though the admin setting descriptions will not describe your new location.
    To identify an included middle box to a given "number", if you notice in the other examples the pattern:
    Code:
    <?php 
    $box_loc = '1';//middlebox group
    require($template->get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_middleboxes.php');
    ?>
    <?php 
    $box_loc = '2';//middlebox group
    require($template->get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE,  $current_page_base,'templates'). '/tpl_middleboxes.php');
    ?>
    <?php 
    $box_loc = '3';//middlebox group
    require($template->get_template_dir('tpl_middleboxes.php',DIR_WS_TEMPLATE,  $current_page_base,'templates'). '/tpl_middleboxes.php');
    ?>
    Each of the $box_loc variables relates back to MIDDLEBOX_NUMBER_1, MIDDLEBOX_NUMBER_2, and MIDDLEBOX_NUMBER_3 respectively.

    Boxes 8 and 9 are not currently in the template files and must be added where desired. To identify a box to be of group 8 or 9 (or above if additional have been added), need to include the below where it is desired to display the content associated with the box:
    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');
    ?>
    And wherever that particular group has been added for display it will be displayed. The incorporation points provided in the existing template files are basically examples or starting points to see operation. Like all things ZC their placement location can be modified to suit. Just remember if $box_loc >= 8, then it will be displayed whether the current page is the homepage or not.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: Editable Home Page Centerboxes [Support]

    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.

  5. #5
    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...

  6. #6
    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.

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

 

 

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