Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2007
    Posts
    5
    Plugin Contributions
    0

    Default Showing banners not on the main page?

    I'd like to use a header banner 3 (it's the one below the bread crumb) but it should display on all pages of the shop except the main page.

    Thank a lot for advice.

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

    Default Re: Showing banners not on the main page?

    You could surround the code for it with an IF statement and the variable:
    $this_is_home_page

    That is only true when on your 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!

  3. #3
    Join Date
    Feb 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Showing banners not on the main page?

    Oki, but when I modify the condition like this:

    if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3) && !$this_is_home_page) {

    HTML of the page loads partly - it loads only to the place where should be the banner, but it isn't there and so the rest of the page isn't loaded (all pages except the main page, of course) - the HTML file ends there (no rest of page, no footer, no </body></html>).

    But before I added '&& !$this_is_home_page' the banner displayed without problem.

    And I forgot to mention I use last version of Zencart (1.3.7 I think).
    Last edited by JakubM; 22 Feb 2007 at 07:38 PM.

  4. #4
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    814
    Plugin Contributions
    0

    Default Re: Showing banners not on the main page?

    sorry to just jump in here but. . .
    How in the heck do you post a New Question here?
    I am registered.
    Thank you
    John

  5. #5
    Join Date
    Feb 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Showing banners not on the main page?

    Hm I 'm not sure if I understand but it's simple. You choose a category and then click on the button New Thread.

 

 

Similar Threads

  1. v151 Home Page banners not showing
    By bigandrew in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Oct 2014, 09:31 PM
  2. Banners not showing on page
    By ashton0603 in forum General Questions
    Replies: 0
    Last Post: 24 Jan 2008, 11:39 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