Forums / Templates, Stylesheets, Page Layout / side boxes and index page

side boxes and index page

Locked

Views: 3,238

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
16 Sep 2007, 9:37 PM
#1
eden avatar

eden

New Zenner

Join Date:
Feb 2006
Posts:
19
Plugin Contributions:
0

side boxes and index page

I have looked all over for a solution to this problem and my head is fried,
what I want to do is remove all side boxes from the main(index) page with out loosing the side boxes when a catagory is clicked from the side boxes on one of my EZpages, the problem seems to be that the categories are a path from the index page so the side boxes dont show.

What I have is an EZpage called "on line shop" which is on the header and footer menues on all pages, I dont want side boxes on the index page and a few other pages, the EZpage (on line shop) has the side boxes.
I have removed the side boxes from the other pages with no problem by editing the tpl_main_page.php like this;

// the following IF statement can be duplicated/modified as needed to set additional flags
  if (in_array($current_page_base,explode(",",'contact_us,conditions,privacy')) ) {
    $flag_disable_left = true;
  }

How ever if I add index to the array it removes the boxes from the index page and from any catagory pages too.

Is there a solution to this?

16 Sep 2007, 9:44 PM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: side boxes and index page

eden:

I have looked all over for a solution to this problem and my head is fried,
what I want to do is remove all side boxes from the main(index) page with out loosing the side boxes when a catagory is clicked from the side boxes on one of my EZpages, the problem seems to be that the categories are a path from the index page so the side boxes dont show.

What I have is an EZpage called "on line shop" which is on the header and footer menues on all pages, I dont want side boxes on the index page and a few other pages, the EZpage (on line shop) has the side boxes.
I have removed the side boxes from the other pages with no problem by editing the tpl_main_page.php like this;

// the following IF statement can be duplicated/modified as needed to set additional flags
if (in_array($current_page_base,explode(",",'contact_us,conditions,privacy')) ) {
$flag_disable_left = true;
}

> How ever if I add index to the array it removes the boxes from the index page and from any catagory pages too.
> 
> Is there a solution to this?

This should do the trick

if ($this_is_home_page) {
$flag_disable_left = true;
$flag_disable_right = true;
}

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

16 Sep 2007, 9:51 PM
#3
eden avatar

eden

New Zenner

Join Date:
Feb 2006
Posts:
19
Plugin Contributions:
0

Re: side boxes and index page

Yep thats done it :)
THANK YOU

16 Sep 2007, 9:56 PM
#4
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: side boxes and index page

eden:

Yep thats done it :)
THANK YOU

Glad to help

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

7 Jan 2009, 6:29 PM
#5
pilot avatar

pilot

New Zenner

Join Date:
Apr 2005
Posts:
55
Plugin Contributions:
0

Re: side boxes and index page

Sorry to drag this subject up as it's over a year, but I'm tearing my hair out on this one.

You have succeeded in removing all the side boxes in the main index page, which is exactly what I am trying to do.

You have the code
if ($this_is_home_page) {
$flag_disable_left = true;
$flag_disable_right = true;
}

I have tried this code in categories.php in sideboxes for instance and placed the code at the beginning but it didn't work. please would you expand on what files you added the code and where ?

I am using version 1.3.8A

7 Jan 2009, 9:47 PM
#6
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: side boxes and index page

pilot:

Sorry to drag this subject up as it's over a year, but I'm tearing my hair out on this one.

You have succeeded in removing all the side boxes in the main index page, which is exactly what I am trying to do.

You have the code
if ($this_is_home_page) {
$flag_disable_left = true;
$flag_disable_right = true;
}

I have tried this code in categories.php in sideboxes for instance and placed the code at the beginning but it didn't work. please would you expand on what files you added the code and where ?

I am using version 1.3.8A

open includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php

You can place that code near the top of the file somewhere around line 42.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

7 Jan 2009, 11:45 PM
#7
pilot avatar

pilot

New Zenner

Join Date:
Apr 2005
Posts:
55
Plugin Contributions:
0

Re: side boxes and index page

thanks and Well done Clyde Jones !!! That did the trick !!!

Thank you very much for putting me out of my misery. It worked perfectly.

8 Jan 2009, 1:47 AM
#8
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: side boxes and index page

pilot:

thanks and Well done Clyde Jones !!! That did the trick !!!

Thank you very much for putting me out of my misery. It worked perfectly.

Glad to help!

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.