osCmax v2.5 User Manual
Results 1 to 9 of 9

how to display the banner that i have created

This is a discussion on how to display the banner that i have created within the osCMax v2 Features Discussion forums, part of the osCmax v2.0 Forums category; Dear friends I have created an image banner (tools >> banner manager) and set it active. 1) while creating it ...

      
  1. #1
    Member
    Join Date
    Jul 2007
    Posts
    55
    Rep Power
    5


    Default how to display the banner that i have created

    Dear friends

    I have created an image banner (tools >> banner manager) and set it active.

    1) while creating it i have not used a target dir 'in target save to' but in the images directory itself.

    I am not able to see the banner in the home page.

    How do i show it. kindly help.

    regards
    ashok dhar

  2. #2
    Member
    Join Date
    Jul 2007
    Posts
    55
    Rep Power
    5


    Default Re: how to display the banner that i have created

    Hello

    Are banner under tools section and banner under affiliates different or are they linked internally.

    I am asking this because i have created banner in tools>>banners and set it active and those banners are not showing.

    I have not touched the banner under affiliates.

    should i.

    ashok dhar

  3. #3
    Member
    Join Date
    Jul 2007
    Posts
    55
    Rep Power
    5


    Default Re: how to display the banner that i have created

    dear sir

    can some one explain to me this piece of code taken from templates/fallback/main_page.tpl.php.

    <?php
    if ($banner = tep_banner_exists('dynamic', '468x50')) {
    ?>
    <br>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    <td align="center"><?php echo tep_display_banner('static', $banner); ?></td>
    </tr>
    </table>
    <?php
    }
    ?>


    regards

    ashok dhar

  4. #4
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: how to display the banner that i have created

    if selected banner exist then output the following code:


    <br>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
    <td align="center"> php will display the selected banner here </td>
    </tr>
    </table>
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  5. #5
    Member
    Join Date
    Jul 2007
    Posts
    55
    Rep Power
    5


    Default Re: how to display the banner that i have created

    Dear friends

    where may i find the reference to tep_banner_exists() function.
    and what are its parameters 'dynamic' and '468X50'.

    kindly elaborate and help me, a newbie.

    thanks

    ashok dhar

  6. #6
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: how to display the banner that i have created

    tep_banner_exists -is a php based function - if you do a search for it in the includes/functions directory you would find it is in banners.php

    PHP Code:
    // Check to see if a banner exists
      
    function tep_banner_exists($action$identifier) {
        if (
    $action == 'dynamic') {
          return 
    tep_random_select("select banners_id, banners_title, banners_image, banners_html_text from " TABLE_BANNERS " where status = '1' and banners_group = '" $identifier "'");
        } elseif (
    $action == 'static') {
          
    $banner_query tep_db_query("select banners_id, banners_title, banners_image, banners_html_text from " TABLE_BANNERS " where status = '1' and banners_id = '" . (int)$identifier "'");
          return 
    tep_db_fetch_array($banner_query);
        } else {
          return 
    false;
        }
      } 
    Which means - it returns one of three option - two of which use and pass yet other functions.

    Think you need a primer on programing (php, Java, C++, C# or any object oriented language are all a good basis to use) if you want to dive more into it.

    Make sure your banner is put into the proper catalog\images\banners directory.
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  7. #7
    Member
    Join Date
    Jul 2007
    Posts
    55
    Rep Power
    5


    Default Re: how to display the banner that i have created

    Dear friend

    How to display the banner at the top of the page.

    kindly help
    ashok dhar
    Last edited by soibaal; 07-10-2007 at 12:58 AM.

  8. #8
    Member
    Join Date
    Jul 2007
    Posts
    55
    Rep Power
    5


    Default Re: how to display the banner that i have created

    not done yet
    Last edited by soibaal; 07-10-2007 at 12:58 AM.

  9. #9
    Member
    Join Date
    Jul 2007
    Posts
    55
    Rep Power
    5


    Default Re: how to display different banners

    done done thanks thanks thanks
    Last edited by soibaal; 07-10-2007 at 01:26 AM.

Similar Threads

  1. Password for newly created admin?
    By tbirnseth in forum osCMax v1.7 Installation
    Replies: 1
    Last Post: 04-01-2007, 11:54 PM
  2. Email not sent after new customer account is created.
    By Dumb_Question in forum osCmax v2 Installation issues
    Replies: 7
    Last Post: 12-16-2005, 04:37 PM
  3. How do I add HTML to My Newly Created Static Page
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 08-01-2005, 05:47 AM
  4. Banner display via PHPAdsNew
    By thejungle in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 02-21-2004, 04:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •