Page 1 of 3 123 LastLast
Results 1 to 10 of 30
  1. #1

    Default EZ pages sidebox exclusion doesn't seem to work

    I am not sure what I am doing wrong. I followed the instructions from the FAQ section of the Zen Cart site, How can I vary which sideboxes are shown on each of my EZ-Pages?

    https://www.zen-cart.com/tutorials/i...hp?article=249

    I am adding the code to the best sellers section of my site according to the instructions:



    require($template->get_template_dir('tpl_best_sellers.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_best_sellers.php');
    $title = BOX_HEADING_BESTSELLERS;
    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
    This is what the code looks like after I added the code:

    if (!isset($ez_page_id) || !in_array($ezpage_id,explode(",",'1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18') )) {
    require($template->get_template_dir('tpl_best_sellers.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_best_sellers.php');
    $title = BOX_HEADING_BESTSELLERS;
    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
    }
    I am wondering if I missed something.
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

  2. #2

    Default Re: EZ pages sidebox exclusion doesn't seem to work

    Has anyone been able to get this feature to work?
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

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

    Default Re: EZ pages sidebox exclusion doesn't seem to work

    What is it doing for you? Not showing the sidebox ever, or not hiding it ever?
    Can we see where you have it (not) working?

  4. #4

    Default Re: EZ pages sidebox exclusion doesn't seem to work

    I want to remove all the sideboxes from the ez pages pages except one, an editable sidebox I downloaded which I will use to create a link to help related topics. Sort of like Amazon.com. So this new sidebox which I have entitled help topics will only be visible on EZ pages pages.


    http://www.cooltechcentral.com/test/...age=page&id=16
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

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

    Default Re: EZ pages sidebox exclusion doesn't seem to work

    So you're saying that the code is not hiding the sideboxes on ez-pages?
    Are you wanting different sideboxes showing on different ez-pages, or the same set on all ez-pages? If you want all ez-pages to work the same, there is no point in the code that allows individual ez-page handling.

  6. #6

    Default Re: EZ pages sidebox exclusion doesn't seem to work

    Quote Originally Posted by gjh42 View Post
    So you're saying that the code is not hiding the sideboxes on ez-pages?
    Yeah, that's what I am saying I haven't activated the specific sidebox that I want to ONLY be visible on EZ pages yet. I want to remove all other sideboxes first.


    Are you wanting different sideboxes showing on different ez-pages, or the same set on all ez-pages? If you want all ez-pages to work the same, there is no point in the code that allows individual ez-page handling.
    I just want that one sidebox (help topic) to show up on all EZ pages, that sidebox only. First I need to figure out how to remove bestellers, featured, specials, categories, and testimonial before that.
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

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

    Default Re: EZ pages sidebox exclusion doesn't seem to work

    For starters, simplify the test:
    PHP Code:
    if (!isset($ez_page_id)) {
    echo 
    'not ez-page';//for debugging
    require($template->get_template_dir('tpl_best_sellers.php',DIR_WS_TEMPLATE$current_page_base,'sideboxes'). '/tpl_best_sellers.php');
    $title BOX_HEADING_BESTSELLERS;
    require(
    $template->get_template_dir($column_box_defaultDIR_WS_TEMPLATE$current_page_base,'common') . '/' $column_box_default);
    } else {
    echo 
    $ez_page_id;//for debugging

    Does that work? I included debug lines that will output "not ez-page" if the sideboxes are being processed, or the ez-page id if not.
    Last edited by gjh42; 30 Jun 2008 at 07:51 AM.

  8. #8

    Default Re: EZ pages sidebox exclusion doesn't seem to work

    Quote Originally Posted by gjh42 View Post
    For starters, simplify the test:
    PHP Code:
    if (!isset($ez_page_id)) {
    echo 
    'not ez-page';//for debugging
    require($template->get_template_dir('tpl_best_sellers.php',DIR_WS_TEMPLATE$current_page_base,'sideboxes'). '/tpl_best_sellers.php');
    $title BOX_HEADING_BESTSELLERS;
    require(
    $template->get_template_dir($column_box_defaultDIR_WS_TEMPLATE$current_page_base,'common') . '/' $column_box_default);
    } else {
    echo 
    $ez_page_id;//for debugging

    Does that work? I included debug lines that will output "not ez-page" if the sideboxes are being processed, or the ez-page id if not.
    No, it didn't work I did see "not ez-page" right above the bestsellers sidebox. I wonder if it's possible to just disable all the sideboxes in EZ pages within the admin section but still have that help topics sidebox show up on all the EZ pages.
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

  9. #9

    Default Re: EZ pages sidebox exclusion doesn't seem to work

    Anyone have a solution? Maybe I am doing something wrong.
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

  10. #10

    Default Re: EZ pages sidebox exclusion doesn't seem to work

    Here is another file this time for testimonial manager
    I put the file in "include/modules/sideboxes/MY_TEMPLATE"
    Used the same codes ( the one from the FAQ as well as the one suggested in this post) but again it didn't work.



    <?php
    /**
    * Testimonial Manager - sidebox
    *
    * @package templateSystem
    * @copyright Copyright 2003-2005 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: Testimonials_Manager.php v1.4.6 3-26-2008 Clyde Jones $
    */
    // test if box should display
    $page_query = $db->Execute("select testimonials_id, testimonials_image, testimonials_title, testimonials_html_text, date_added from " . TABLE_TESTIMONIALS_MANAGER . " where status = 1 and language_id = " . (int)$_SESSION['languages_id'] . " order by rand(), testimonials_title limit " . MAX_DISPLAY_TESTIMONIALS_MANAGER_TITLES ."");
    if ($page_query->RecordCount()>0) {
    $title = BOX_HEADING_TESTIMONIALS_MANAGER;
    $box_id = testimonials_manager;
    $rows = 0;
    while (!$page_query->EOF) {
    $rows++;
    $page_query_list[$rows]['id'] = $page_query->fields['testimonials_id'];
    $page_query_list[$rows]['name'] = $page_query->fields['testimonials_title'];
    $page_query_list[$rows]['story'] = $page_query->fields['testimonials_html_text'];
    $page_query_list[$rows]['image'] = $page_query->fields['testimonials_image'];

    $page_query->MoveNext();
    }
    $left_corner = false;
    $right_corner = false;
    $right_arrow = false;
    $title_link = false;
    require($template->get_template_dir('tpl_testimonials_manager.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_testimonials_manager.php');
    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
    }
    ?>
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Deleting products edited by EasyPopulate doesn't seem to work??
    By armyabn1 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 20 Dec 2009, 04:31 AM
  2. BetterCategories - a:active doesn't seem to work
    By nipinuk in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Jan 2007, 01:51 PM
  3. CSS per category doesn't seem to work.
    By voltage in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 16 Jul 2006, 07:29 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR