Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Showing banners not on the main page?

Showing banners not on the main page?

Locked

Views: 1,428

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
22 Feb 2007, 5:27 PM
#1
jakubm avatar

jakubm

New Zenner

Join Date:
Feb 2007
Posts:
5
Plugin Contributions:
0

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.

22 Feb 2007, 5:43 PM
#2
ajeh avatar

ajeh

Oba-san

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

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

22 Feb 2007, 6:34 PM
#3
jakubm avatar

jakubm

New Zenner

Join Date:
Feb 2007
Posts:
5
Plugin Contributions:
0

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

22 Feb 2007, 6:36 PM
#4
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
858
Plugin Contributions:
0

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

22 Feb 2007, 7:15 PM
#5
jakubm avatar

jakubm

New Zenner

Join Date:
Feb 2007
Posts:
5
Plugin Contributions:
0

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.