Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2005
    Location
    Berlin
    Posts
    3
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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!

  3. #3
    Join Date
    Aug 2005
    Location
    Berlin
    Posts
    3
    Plugin Contributions
    0

    Default 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?

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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:
    Code:
      if (SHOW_BANNERS_GROUP_SET7 == '') {
        $show_banner_box = false;
      }
    Below that you can use:
    Code:
      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!

  5. #5
    Join Date
    Aug 2005
    Location
    Berlin
    Posts
    3
    Plugin Contributions
    0

    Default Re: Banner sidebox only on main page

    Thanks a lot Ajeh, that did the job!

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 ...
    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!

  7. #7
    Join Date
    Apr 2008
    Location
    Athens
    Posts
    84
    Plugin Contributions
    0

    Default Re: Banner sidebox only on main page


 

 

Similar Threads

  1. Turn off EX Pages sidebox on main page only
    By creamcrackers in forum General Questions
    Replies: 1
    Last Post: 15 Jan 2012, 04:15 AM
  2. Banner on Main Page only
    By cmgraham in forum Basic Configuration
    Replies: 1
    Last Post: 27 Mar 2009, 03:52 PM
  3. Banner on main page only
    By Berserker in forum Basic Configuration
    Replies: 5
    Last Post: 3 Mar 2008, 05:55 AM
  4. Rearranging the Sidebox Banner to fit inside the main page.
    By inoprints in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Sep 2007, 02:26 AM
  5. Banner on Main Page Only
    By BradSmith in forum Templates, Stylesheets, Page Layout
    Replies: 26
    Last Post: 16 May 2007, 09:47 PM

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