Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27
  1. #11
    Join Date
    Jan 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Banner on Main Page Only

    I should have done that to begin with, sorry. Here we go...


    tpl_index_default.php

    PHP Code:

    <!-- deprecated - to use uncomment this section
    <?php if (TEXT_MAIN) { ?>
    <div id="" class="content"><?php echo TEXT_MAIN?></div>
    <?php ?>-->


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

    <!-- deprecated - to use uncomment this section
    <?php if (TEXT_INFORMATION) { ?>
    <div id="" class="content"><?php echo TEXT_INFORMATION?></div>
    <?php ?>-->
    Brad Smith, Serigraph Printer
    www.RickRushArt.com

  2. #12
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Banner on Main Page Only

    What banner group do you have your banner in? Do you have that group activated for the Header position 3?
    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.

  3. #13
    Join Date
    Jan 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Banner on Main Page Only

    The Banner has a custom group name, "PreOrder", but in the Config>Layout Settings I put "PreOrder" in the Banner Display Groups - Header Position 3... If the name needs to be something else in order for this to work, that's an easy fix!
    Brad Smith, Serigraph Printer
    www.RickRushArt.com

  4. #14
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Banner on Main Page Only

    Make sure you haven't spelled the group name differently in the Banner manager and that the banner is active.

    Oh- also make sure your browser doesn't have ads blocked.
    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.

  5. #15
    Join Date
    Jan 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Banner on Main Page Only

    Everything looks okay in the banner manager, and the banner showed up on all of the pages before I took the code out of tpl_main_page... does the code (pasted above and into the tpl_index_default) need to have the words "PreOrder" in it, if that's what the banner group is called?

    I am so absolutely lost here, I don't know what to do.

    Again and again, thanks for continuing to help me try and solve this problem.
    Brad Smith, Serigraph Printer
    www.RickRushArt.com

  6. #16
    Join Date
    Jan 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Banner on Main Page Only

    Taking a deep breath and trying to replay my steps...

    First, I went to :

    /includes/templates/template_default/common/tpl_main_page.php


    and cut this code out,


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


    and then pasted that code into


    /includes/templates/template_default/templates/tpl_index_default.php
    Brad Smith, Serigraph Printer
    www.RickRushArt.com

  7. #17
    Join Date
    Jan 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Banner on Main Page Only

    Instead of editing the files in template_default, should I have copied tpl_main_page.php and tpl_index_default.php to my template folder (rickrushart) and edited them in that common folder?
    Brad Smith, Serigraph Printer
    www.RickRushArt.com

  8. #18
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Banner on Main Page Only

    Yes. I was about to post that but you were a step ahead of me - a good sign!

    If you already have a tpl_main_page.php in that directory, your latest changes would be being over-ridden.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  9. #19
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Banner on Main Page Only

    Instead of editing the files in template_default, should I have copied tpl_main_page.php and tpl_index_default.php to my template folder (rickrushart) and edited them in that common folder?
    Sorry - I made the assumption that you would put the edited files in your override directories.
    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. #20
    Join Date
    Jan 2007
    Posts
    50
    Plugin Contributions
    0

    Default Re: Banner on Main Page Only

    Quote Originally Posted by Kim View Post
    Sorry - I made the assumption that you would put the edited files in your override directories.
    Sorry, very obviously I thought I was using the override directory. I hope you aren't getting overly frustraited with me, as I'm really trying, here.


    So, just to update the continuing chronicle that is my Banner on Main Page Only thread... I have taken the edited

    includes/templates/template_default/templates/tpl_index_default.php

    and moved it to the appropriate...

    includes/templates/rickrushart/templates/tpl_index_default.php


    next, I took the NON-EDITED

    /includes/templates/template_default/common/tpl_main_page.php

    and moved it to...

    includes/templates/rickrushart/common/tpl_main_page.php



    The result is that the banner now shows up on all pages - so, presumably, all I have to do is edit the banner code out of the tpl_main_page.php file again, right? Let's see!
    Brad Smith, Serigraph Printer
    www.RickRushArt.com

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Banner sidebox only on main page
    By ddespera in forum Addon Sideboxes
    Replies: 6
    Last Post: 11 Dec 2010, 09:07 PM
  2. Replies: 1
    Last Post: 17 Oct 2009, 11:50 PM
  3. Banner on Main Page only
    By cmgraham in forum Basic Configuration
    Replies: 1
    Last Post: 27 Mar 2009, 03:52 PM
  4. Banner on main page only
    By Berserker in forum Basic Configuration
    Replies: 5
    Last Post: 3 Mar 2008, 05:55 AM
  5. Footer Banner Display on Main Only?
    By clayartisan in forum Basic Configuration
    Replies: 1
    Last Post: 2 Feb 2007, 04:49 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