Forums / Basic Configuration / Can this be done with banner manager?

Can this be done with banner manager?

Locked

Views: 7,470

Results 1 to 20 of 22
This thread is locked. New replies are disabled.
8 Feb 2008, 5:24 AM
#1
julieoolie avatar

julieoolie

Zen Follower

Join Date:
Jul 2006
Location:
Southern California
Posts:
109
Plugin Contributions:
0

Can this be done with banner manager?

I've seen this on two sites, I think they're Zen carts (but I could be wrong).

http://www.craftyalien.com/
http://www.shanalogic.com/

On the homepage there are three banners (above the new & featured items). Two little ones and a big one that rotate. Is this something that can be done using the banner manager? Is there a mod out there for this?

8 Feb 2008, 5:34 AM
#2
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Can this be done with banner manager?

It's built it ZC already.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

8 Feb 2008, 5:40 AM
#3
julieoolie avatar

julieoolie

Zen Follower

Join Date:
Jul 2006
Location:
Southern California
Posts:
109
Plugin Contributions:
0

Re: Can this be done with banner manager?

How do you do it? I can only figure out the sidebox and bottom of page banners.

9 Feb 2008, 10:59 PM
#4
julieoolie avatar

julieoolie

Zen Follower

Join Date:
Jul 2006
Location:
Southern California
Posts:
109
Plugin Contributions:
0

Re: Can this be done with banner manager?

anyone know?

10 Feb 2008, 12:38 AM
#5
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,685
Plugin Contributions:
0

Re: Can this be done with banner manager?

There are 6 possible banner locations in the header, main section and footer - You can pick the code for them up and move it around. Just remember which one you put where.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

10 Feb 2008, 1:52 AM
#6
julieoolie avatar

julieoolie

Zen Follower

Join Date:
Jul 2006
Location:
Southern California
Posts:
109
Plugin Contributions:
0

Re: Can this be done with banner manager?

Thanks. I'm not sure where I would find this code? I'm sure I can figure it out if you point me in the right direction.

I set up test banners and have them all appearing on my site right now but they aren't really in the right places.

10 Feb 2008, 3:00 AM
#7
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,685
Plugin Contributions:
0

Re: Can this be done with banner manager?

Open your Admin> Tools> Developers Tool Kit - in the lower left hand box enter: SHOW_BANNERS - choose all of the Catalog files - That will bring up all the ifles that has that phrase. Look for the template files that you want to make changes to.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

10 Feb 2008, 9:53 PM
#8
julieoolie avatar

julieoolie

Zen Follower

Join Date:
Jul 2006
Location:
Southern California
Posts:
109
Plugin Contributions:
0

Re: Can this be done with banner manager?

Thank you!! I got it set up perfect! :clap:

Now I just have to figure out how to get it to show only on the home page.

10 Feb 2008, 9:57 PM
#9
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Can this be done with banner manager?

if($this_is_home_page){
// put the banner code here
}

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

10 Feb 2008, 10:15 PM
#10
julieoolie avatar

julieoolie

Zen Follower

Join Date:
Jul 2006
Location:
Southern California
Posts:
109
Plugin Contributions:
0

Re: Can this be done with banner manager?

Thanks! But I can't get it to work. This is what I put:

<?php

if($this_is_home_page){ 
<center><table width="540" cellspacing="0" cellpadding="0" border="0">
        <tr>
            <td valign="top" align="left"><?php
  if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
    if ($banner->RecordCount() > 0) {
?>
<div id="bannerOne" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
    }
  }
?></td>
            <td valign=" top" align="left" rowspan="2"><?php
  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
    }
  }
?></td>
        </tr>
        <tr>
            <td valign="top" align="left"><?php
              if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
                if ($banner->RecordCount() > 0) {
?>
      <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
<?php
                }
              }
?></td>
        </tr>
</table></center> } ?>

I don't know php at all so it may be something simple :( help?

10 Feb 2008, 10:17 PM
#11
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Can this be done with banner manager?

Try:

<?php if($this_is_home_page){ ?>
<center><table width="540" cellspacing="0" cellpadding="0" border="0">
        <tr>
            <td valign="top" align="left"><?php
  if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
    if ($banner->RecordCount() > 0) {
?>
<div id="bannerOne" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
    }
  }
?></td>
            <td valign=" top" align="left" rowspan="2"><?php
  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
    }
  }
?></td>
        </tr>
        <tr>
            <td valign="top" align="left"><?php
              if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
                if ($banner->RecordCount() > 0) {
?>
      <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
<?php
                }
              }
?></td>
        </tr>
</table></center>
<?php } ?>

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

10 Feb 2008, 10:23 PM
#12
julieoolie avatar

julieoolie

Zen Follower

Join Date:
Jul 2006
Location:
Southern California
Posts:
109
Plugin Contributions:
0

Re: Can this be done with banner manager?

Perfect! Thank you so much!! :clap:

30 May 2009, 1:10 PM
#13
dhaval avatar

dhaval

New Zenner

Join Date:
Nov 2007
Posts:
13
Plugin Contributions:
0

Re: Can this be done with banner manager?

Thanks! Even I was looking for something like this... I will try this now to put banners like that on my homepage in the center column :clap:

15 Nov 2009, 3:46 PM
#14
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Can this be done with banner manager?

my developers tool kit isn/t working so what file are you guys editing?

https://www.gorillagear.ca = zencart v1.3.9h with 40+ mods

15 Nov 2009, 4:54 PM
#15
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Can this be done with banner manager?

wow i got my developers tool kit working but i can't figure out what to change and where to get the same style of look

would the above code be for the tpl_header.php or tpl_main_page.php ortpl_banner_box_all.php i'm confused by this

https://www.gorillagear.ca = zencart v1.3.9h with 40+ mods

15 Nov 2009, 8:22 PM
#16
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Can this be done with banner manager?

i removed this piece of code from my common/tpl_header.php file which removed group set2

<div id="taglineWrapper">
      <?php
              if (HEADER_SALES_TEXT != '') {
?>
      <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
      <?php
              }
?>
      <?php
              if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
                if ($banner->RecordCount() > 0) {
?>
      <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
      <?php
                }
              }
?>
    </div>

now i'm opening common/tpl_main_page.php file and start playing with that trial and error baby

just removed group set1 banners with no issues that i can see

<?php
  if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
    if ($banner->RecordCount() > 0) {
?>
<div id="bannerOne" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
    }
  }
?>

https://www.gorillagear.ca = zencart v1.3.9h with 40+ mods

15 Nov 2009, 8:50 PM
#17
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Can this be done with banner manager?

and now the last step replace following code

<?php
  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
    }
  }
?>

with the code above in post #11 and everything seems to be fine so far. Well that took a novice like me working off and on a few hrs to figure out, as i had clue what i was doing but it should only take a novice 10-20mins now that the we have a few easy steps to go by

https://www.gorillagear.ca = zencart v1.3.9h with 40+ mods

28 Mar 2010, 10:18 PM
#18
ljdream00 avatar

ljdream00

Zen Follower

Join Date:
Jun 2007
Location:
Michigan
Posts:
168
Plugin Contributions:
0

Re: Can this be done with banner manager?

Thanks alot MB1:cool:, your detail helped alot to let me know which page to put the code.

At first I thought it didn't work:huh:...

Then I realized I didn't name my banners in the admin area under:
Admin>Configure>Layout Settings>...

Had to name these:
Banner Display Groups - Header Position 1
Banner Display Groups - Header Position 2
Banner Display Groups - Header Position 3

After making those names match my actual banner group name, it worked perfectly...Thanks:smile:

MB1:

and now the last step replace following code

<?php 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 } } ?> ```with the code above in post #11 and everything seems to be fine so far. Well that took a novice like me working off and on a few hrs to figure out, as i had clue what i was doing but it should only take a novice 10-20mins now that the we have a few easy steps to go by

Zencart Websites I've Designed:
deejaycentipede(DOT)com
djellery216(DOT)com

1 Jul 2010, 3:18 AM
#19
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Can this be done with banner manager?

yeah no problem i like to post my trial and error code fixes so they are nice and clear. just the way i wish i could find answers to everyone of my zencart questions :)

plus as a novice you never know when you might have to upgrade your site and you need this info again.

https://www.gorillagear.ca = zencart v1.3.9h with 40+ mods

13 Sep 2010, 3:58 PM
#20
mb1 avatar

mb1

Totally Zenned

Join Date:
Jun 2006
Posts:
565
Plugin Contributions:
0

Re: Can this be done with banner manager?

see i'm glad i did this now i have easy step by step instructions so i can apply it to my new site

https://www.gorillagear.ca = zencart v1.3.9h with 40+ mods