Zen Cart Logo
Forums / Basic Configuration / ENABLE Sidebox on Main Page

ENABLE Sidebox on Main Page

Locked

Views: 1,299

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
5 Apr 2010, 5:01 AM
#1
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

ENABLE Sidebox on Main Page

Some time ago I had disabled the sidebox from appearing on the index page. I would now like to enable it again. It seems as though this could be achieved by removing this bit of code from tpl_main_page.php:

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

Leaving this:

// the following IF statement can be duplicated/modified as needed to set additional flags
  if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
    $flag_disable_right = true;
  }

However, it seems to have no visible effect. The test site index page can be viewed here. Any idea what I'm missing??

Thanks!

5 Apr 2010, 5:03 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: ENABLE Sidebox on Main Page

The code would be in the specific sidebox for the one that you want to enable/disable ...

5 Apr 2010, 5:04 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: ENABLE Sidebox on Main Page

NOTE: you are on the right track as it is probably controlled with the:
$this_is_home_page

in the specific sidebox ... :smile:

5 Apr 2010, 5:10 AM
#4
haredo avatar

haredo

Totally Zenned

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

Re: ENABLE Sidebox on Main Page

Meltdown,
You should find your previous work in the sideboxes with these folders

includes/modules/sideboxes/

5 Apr 2010, 5:39 AM
#5
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: ENABLE Sidebox on Main Page

Hi, and thanks for responding. Sorry but I'm not seeing the forest for the trees... I'm not quite sure what I'm looking for when going over previous work in includes/modules/sideboxes/. How might one of the mods there apply to the index page?

Thanks again

5 Apr 2010, 7:31 AM
#6
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: ENABLE Sidebox on Main Page

Or, to state it a bit more clearly, is there a way to know which module has been modified? Some clues that may help me determine where to look?

I have gone through files that have been indicated as being previously modified, but have had no luck in thracking down the culprit.

5 Apr 2010, 7:46 AM
#7
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: ENABLE Sidebox on Main Page

OK, I've been able to track this down: In addition to removing this bit of code from tpl_main_page.php:

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

I also needed to remove a block I had placed via my stylesheet.css:

#indexHomeBody .centerColumn {
	width: 95%!important;
	float: right!important;
	}

Thanks for your help!