osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Features Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 07-07-2007, 02:30 AM
Member
 
Join Date: Jul 2007
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2
soibaal is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 07-07-2007, 06:11 AM
Member
 
Join Date: Jul 2007
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2
soibaal is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 07-07-2007, 06:32 AM
Member
 
Join Date: Jul 2007
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2
soibaal is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 07-09-2007, 03:22 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,792
Thanks: 5
Thanked 104 Times in 90 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
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
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 07-09-2007, 10:45 PM
Member
 
Join Date: Jul 2007
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2
soibaal is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 07-10-2007, 01:05 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,792
Thanks: 5
Thanked 104 Times in 90 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
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
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 07-10-2007, 01:47 AM
Member
 
Join Date: Jul 2007
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2
soibaal is on a distinguished road
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 01:58 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 07-10-2007, 01:54 AM
Member
 
Join Date: Jul 2007
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2
soibaal is on a distinguished road
Default Re: how to display the banner that i have created

not done yet

Last edited by soibaal; 07-10-2007 at 01:58 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 07-10-2007, 02:22 AM
Member
 
Join Date: Jul 2007
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2
soibaal is on a distinguished road
Default Re: how to display different banners

done done thanks thanks thanks

Last edited by soibaal; 07-10-2007 at 02:26 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 11:43 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax