Forums / Basic Configuration / Disable Category Sidebox on all but one ezpage

Disable Category Sidebox on all but one ezpage

Locked

Views: 2,943

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
5 May 2008, 5:13 PM
#1
cyberwoolf avatar

cyberwoolf

Zen Follower

Join Date:
Oct 2005
Posts:
97
Plugin Contributions:
0

Disable Category Sidebox on all but one ezpage

Is there a way to disable the category sidebox on all ezpages except for one? I would use the disable left column option in the admin, but I have other sideboxes that need to stay there.

I have disabled the category sidebox on the homepage and other selected pages by editing the sidebox.php file in modules, but am lost about this issue.

Thanks

5 May 2008, 5:26 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,186
Plugin Contributions:
0

Re: Disable Category Sidebox on all but one ezpage

CyberWoolf:

Is there a way to disable the category sidebox on all ezpages except for one? I would use the disable left column option in the admin, but I have other sideboxes that need to stay there.

I have disabled the category sidebox on the homepage and other selected pages by editing the sidebox.php file in modules, but am lost about this issue.

Thanks

C,
Check this out:

https://www.zen-cart.com/tutorials/index.php?article=249

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

5 May 2008, 5:37 PM
#3
cyberwoolf avatar

cyberwoolf

Zen Follower

Join Date:
Oct 2005
Posts:
97
Plugin Contributions:
0

Re: Disable Category Sidebox on all but one ezpage

Awesome thanks... :-D See what happens when I just search the forums? I always forget about those :-(

5 May 2008, 5:45 PM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,186
Plugin Contributions:
0

Re: Disable Category Sidebox on all but one ezpage

C,
You are most welcome, glad I could point you in the right direction..

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

5 May 2008, 6:12 PM
#5
cyberwoolf avatar

cyberwoolf

Zen Follower

Join Date:
Oct 2005
Posts:
97
Plugin Contributions:
0

Re: Disable Category Sidebox on all but one ezpage

Actually it didnt work for me. They still show up on every ezpage

   $main_category_tree = new category_tree;
    $row = 0;
    $box_categories_array = array();

// don't build a tree when no categories
    $check_categories = $db->Execute("select categories_id from " . TABLE_CATEGORIES . " where categories_status=1 limit 1");
    if ($check_categories->RecordCount() > 0) {
      $box_categories_array = $main_category_tree->zen_category_tree();
    }
 if (!isset($ez_page_id) || !in_array($ezpage_id,explode(",",'2,5'))) {
    require($template->get_template_dir('tpl_categories.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_categories.php');
    $title =  BOX_HEADING_CATEGORIES;
    $title_link = false;
    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
 }
?>
17 Mar 2009, 6:20 PM
#6
ljdream00 avatar

ljdream00

Zen Follower

Join Date:
Jun 2007
Location:
Michigan
Posts:
168
Plugin Contributions:
0

Re: Disable Category Sidebox on all but one ezpage

Thanks for the Link (though it's a year old...LOL)
Solved my problem quickly
It worked PERFECTLY:clap:

haredo:

C,
Check this out:

https://www.zen-cart.com/tutorials/index.php?article=249

Zencart Websites I've Designed:
deejaycentipede(DOT)com
djellery216(DOT)com

18 Mar 2009, 1:44 AM
#7
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,186
Plugin Contributions:
0

Re: Disable Category Sidebox on all but one ezpage

Lj,
You are most welcome, neat little feature so a neat custom look for your site...

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.