Forums / Basic Configuration / Banners only on main page

Banners only on main page

Views: 11,853

Results 21 to 36 of 36
24 Mar 2011, 2:44 PM
#21
ajeh avatar

ajeh

Oba-san

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

Banners only on main page

Make the banner the right size and it will be correct ... :smile:

There isn't an adjustment for the banner size on these, as they display as they are ...

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!

24 Mar 2011, 3:12 PM
#23
ajeh avatar

ajeh

Oba-san

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

Re: Banners only on main page

I mean make the image for your Banner image file the correct size for your display ...

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!

24 Mar 2011, 3:16 PM
#24
gunni avatar

gunni

Zen Follower

Join Date:
Aug 2010
Location:
Israel
Posts:
287
Plugin Contributions:
0

Re: Banners only on main page

But that is impossible !
Right now it is good for 1024px width but bad for 1200px.
When I made the banner in 1200px it was bad for 1024px screen - came out of the screen.
There must be a good solution for this.

25 Mar 2011, 11:33 AM
#25
gunni avatar

gunni

Zen Follower

Join Date:
Aug 2010
Location:
Israel
Posts:
287
Plugin Contributions:
0

Re: Banners only on main page

gunni:

But that is impossible !
Right now it is good for 1024px width but bad for 1200px.
When I made the banner in 1200px it was bad for 1024px screen - came out of the screen.
There must be a good solution for this.

Any solution ? :frusty:

25 Mar 2011, 3:39 PM
#26
ajeh avatar

ajeh

Oba-san

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

Re: Banners only on main page

Could you post an URL to your site so we could see this Banner? :unsure:

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!

25 Mar 2011, 4:09 PM
#28
ajeh avatar

ajeh

Oba-san

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

Re: Banners only on main page

You are going to need to make better quality images and size them correctly ...

Your image quality is very poor and trying to resample it to a larger size makes that poor quality stand out even more ...

You could also take your image and size it a little smaller, to reduce the apparent poor quality and then duplicate it in your image software so that it repeats for a wider display ...

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!

25 Mar 2011, 4:48 PM
#29
gunni avatar

gunni

Zen Follower

Join Date:
Aug 2010
Location:
Israel
Posts:
287
Plugin Contributions:
0

Re: Banners only on main page

Better qualty images will be done later but now I do not see
my banner "adibg" changed with screen wide !

I allready made this banner picture to be wider, suitable for ~1200px
screen but then when looked in 1024px screen, all was a mass,
the banner picture gone out to the right side.
Even now, this banner is good for 1024px but if you will look in
800px screen, you will see it is going out to the right. No adjusting at all.
I want this banner to fit customers screens.

22 Apr 2011, 9:34 AM
#30
gunni avatar

gunni

Zen Follower

Join Date:
Aug 2010
Location:
Israel
Posts:
287
Plugin Contributions:
0

Re: Banners only on main page

Hi
Tried to post in other thread but did not receive any solution.
I made a fluid site and solved the header fluid issue
but did not solve the Wide AD Banner ! I want this ad banner
to be also fluid.
When large resolution customers enter my site, the banner looks
very short.
If I make the file wider, on smaller resolution it makes a mess
with scorling etc'.
I am sure that it can be solved and I think fluid site is the more
proffessional site :)

my site is adi-beauty (dot) com
Thanks

26 Apr 2011, 10:45 AM
#31
scotty34 avatar

scotty34

New Zenner

Join Date:
Apr 2011
Location:
uk
Posts:
6
Plugin Contributions:
0

Re: Banners only on main page

Need help with this too:lamo:

23 Nov 2011, 2:37 PM
#33
s3tspy avatar

s3tspy

New Zenner

Join Date:
Nov 2011
Posts:
2
Plugin Contributions:
0

Re: Banners only on main page

This is how i fixed it:

In tpl_main_page.php file (line 108), instead of

<div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>

i have

<div id="bannerThree" class="banners"><?php **if($this_is_home_page)** echo zen_display_banner('static', $banner); ?></div>

That's all, now my banner are showing only on the home page. Hope this will help you! :clap:

12 Apr 2012, 2:16 PM
#34
decostyle avatar

decostyle

Zen Follower

Join Date:
Mar 2008
Posts:
336
Plugin Contributions:
0

Re: Banners only on main page

This is great!

As a follow up to this, if you want the banner to show up only on certain pages aside from the home page, how does the naming convention go?

8 Apr 2020, 11:53 PM
#35
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Banners only on main page

Be certain to backup your files AND your database FIRST.

Let's add more banner group name character space...
Admin > Tools > Install SQL Patches

ALTER TABLE banners MODIFY COLUMN banners_group VARCHAR(32);

(the original length is 15 characters)

Next add a banner to the top of every checkout page:
includes/templates/YOUR_TEMPLATE/common/**tpl_main_page.php

Add line 152 **(after breadcrumbs)<?php // Twitch Banner in Checkout Only with CSS in banner HTML if (in_array($current_page_base,explode(",",'shopping_cart,checkout_shipping,checkout_shipping_address,checkout_payment,checkout_payment_address,checkout_confirmation,checkout_success')) ) { if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) { if ($banner->RecordCount() > 0) { ?>
<div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>

<?php } }} ?>

Add Banner Group:
Admin > Configuration > Layout Settings > Banner Display Group - Header Position 3

Enter: **bannerCheckout

**
Add banner with HTML containing CSS:
Admin > Tools > Banner Manager

Click: New Banner

Fill out the necessary fields for your banner...

Enter the new banner group: bannerCheckout

In HTML Text add the CSS style with your preferred text:

<div id="bannerCheckoutBlock">
Notice: Due to current Covid-19 circumstances, we cannot guarantee how quickly orders will arrive once they are in the mail. All orders are currently being processed and shipped within 7 business days. Thank you for your support and your patience, we are doing our best to get your orders to you in a timely fashion.
</div>

Schedule the banner to activate it or you will not see it.
^ read this line and do it for sure ^

Finally we add some CSS to the banner:
includes/templates/YOUR_TEMPLATE/css/stylesheet.css
end of file:

/* Twitch Banner in Checkout Only */
#bannerCheckoutBlock {border: .2em solid green; padding: .8em;font-weight: bold;}

If my work has helped you today in any way, show your appreciation with things like positive feedback or donations :cheers:

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

10 Apr 2020, 2:49 PM
#36
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Banners only on main page

Decostyle:

This is great!

As a follow up to this, if you want the banner to show up only on certain pages aside from the home page, how does the naming convention go?

How to - Banners...
https://www.zen-cart.com/content.php?122-how-do-i-set-up-banner-ads

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian