Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Sep 2011
    Posts
    40
    Plugin Contributions
    0

    Default Banner expire after 1 day

    Hy guys, i set up 2 banners 1 to show up today 10/7/2011 and to expire tomorrow 10/8/2011 (sort order 0) and the next one to start on 10/8/2011 and to expire on 10/9/2011 (sort order 1) they work BUT if i refresh the page 1 or 3/4 times the next banner shows up.

    What can I do to make a banner today and tomorrow to be another one?

  2. #2
    Join Date
    Sep 2011
    Posts
    40
    Plugin Contributions
    0

    Default Re: Banner expire after 1 day

    PS I want the banner to show up only on the main page.

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

    Default Re: Banner expire after 1 day

    The Start time is based on Midnight, so 10/07/2011 begins at: 10/07/2011 00:00:00 ...

    End times are based on Midnight, so 10/08/2011 ends at:
    10/08/2011 00:00:00 ...

    If you only want the Banner to show on 10/07/2011 you would use:
    Start: 10/07/2011
    End: 10/08/2011

    If you want the Banner to show on 10/07/2011 and 10/08/2011, you would use:
    Start: 10/07/2011
    End: 10/09/2011
    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!

  4. #4
    Join Date
    Sep 2011
    Posts
    40
    Plugin Contributions
    0

    Default Re: Banner expire after 1 day

    Ok, thanks a lot.
    But how can I have the banner ONLY on the first page?

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

    Default Re: Banner expire after 1 day

    You would find the IF for the Banner you want only on the home page, such as for the code for the:
    Banner Display Groups - Header Position 1

    Code:
    /includes/templates/template_default/common/tpl_main_page.php
    
    Line #54 : if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
    and customize that code with your templates and overrides to include what is in RED:
    Code:
    Code:
    /includes/templates/template_default/common/tpl_main_page.php
    
    Line #54 : if ($this_is_home_page && SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
    Now it will only show that Banner Group 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!

  6. #6
    Join Date
    Sep 2011
    Posts
    40
    Plugin Contributions
    0

    Default Re: Banner expire after 1 day

    Thanks for your help, but i still can see my banner on all pages, i copied this
    PHP Code:
    if ($this_is_home_page && SHOW_BANNERS_GROUP_SET1 != '' && $banner zen_banner_exists('dynamic'SHOW_BANNERS_GROUP_SET1)) { 
    on my default template BUT the problem is in my crista_violet template because i have this if
    PHP Code:
    (SHOW_BANNERS_GROUP_SET3 != '' && $banner zen_banner_exists('dynamic'SHOW_BANNERS_GROUP_SET3)) { 
    on line 70
    i changed it to
    PHP Code:
    ($this_is_home_page && SHOW_BANNERS_GROUP_SET3 != '' && $banner zen_banner_exists('dynamic'SHOW_BANNERS_GROUP_SET3)) { 
    What's the problem?

 

 

Similar Threads

  1. Replies: 10
    Last Post: 10 Jun 2016, 10:50 PM
  2. Replies: 12
    Last Post: 15 Jul 2013, 03:39 AM
  3. Admin session does not expire after removal of Admin Profile mod.
    By gamenano in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 16 Jul 2010, 02:54 AM
  4. Setting up different shipping methods: e.g. overnight, 2-day, 3-day, & ground?
    By jeono in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 28 Oct 2009, 08:59 PM
  5. Replies: 3
    Last Post: 16 Jan 2008, 05:37 AM

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