Forums / Addon Sideboxes / Banner sidebox only on main page

Banner sidebox only on main page

Locked

Views: 1,834

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
26 Oct 2010, 8:05 PM
#1
ddespera avatar

ddespera

New Zenner

Join Date:
Aug 2005
Location:
Berlin
Posts:
3
Plugin Contributions:
0

Banner sidebox only on main page

Looking for an option to have a banner sidebox shown only on the main page, not on product pages etc. Is there a way to do it or a helpfull add-on? Thanks for help.

27 Oct 2010, 2:59 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Banner sidebox only on main page

You can use the variable:
$this_is_home_page

to determine if you are on the Home page or not ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

27 Oct 2010, 6:19 AM
#3
ddespera avatar

ddespera

New Zenner

Join Date:
Aug 2005
Location:
Berlin
Posts:
3
Plugin Contributions:
0

Re: Banner sidebox only on main page

Thanks, I thought there might be a variable like this. Where can I use it? With the Black Box Addon or make a new banner type?

27 Oct 2010, 1:34 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Banner sidebox only on main page

I am not familiar with the Blackbox add on ... but on the Banner sidebox, you will see the code:

  if (SHOW_BANNERS_GROUP_SET7 == '') {
    $show_banner_box = false;
  }

Below that you can use:

  if (!$this_is_home_page) {
    $show_banner_box = false;
  }

That will disable the banner_box.php sidebox when not on the home page ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Oct 2010, 10:37 AM
#5
ddespera avatar

ddespera

New Zenner

Join Date:
Aug 2005
Location:
Berlin
Posts:
3
Plugin Contributions:
0

Re: Banner sidebox only on main page

Thanks a lot Ajeh, that did the job!

28 Oct 2010, 2:10 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Banner sidebox only on main page

You are most welcome ... thanks for the update that you were able to use this to control the sidebox to only show on the Home page for your site ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!