ravikiran7785 Posted October 27, 2006 Posted October 27, 2006 hello, i have successfully installed oscommerce and now i am trying out with the banner feature! i have added an banner in the admin panel and turned it on ie green button! i am a novice in php and i have found the banner is called in the footer.php and i didnt change anything in the footer except for adding some scripts like counters etc... when i visit my webpage i dont get any banner at the bottom and if there is any error in the footer.php file i think it will show!at the bottom! pls help as to what to do! for ur referene i am giving the url of my website : Arvind Infoways and if needed i will attach the footer.php also! pls help! thanking you in advance, regards, ~Ravi
daz_75 Posted October 27, 2006 Posted October 27, 2006 im not sure i can help you as im a php novice too, but can you tell me how you got the banner in the header?
ravikiran7785 Posted October 27, 2006 Author Posted October 27, 2006 im not sure i can help you as im a php novice too, but can you tell me how you got the banner in the header? the banner on the top is adsense banner and i have put it there by just adding the code in the header!
ravikiran7785 Posted October 27, 2006 Author Posted October 27, 2006 to clarify my question: i have the problem, as mentioned above in my first post, with the inbuilt feature of oscommerce, ie, banners in the admin panel which enables the user to rotate local banners with impressions/click views! ----------------------------------------- hope to see a reply soon, thanking you, regards, ~Ravi
ravikiran7785 Posted October 28, 2006 Author Posted October 28, 2006 hello, this is the actuall footer.php contents {quoted below} and after the php tag ends i have pasted the counters and other scripts which in my knowlegde wont make any difference to footer.php! to add to it i have given CHMOD 777 to the banner gif file as well as banner.php in functions folder! and as stated before the banner is enabled ie green button! i have quoted the footer.php where the banner is called at the end! do help, <?php/* $Id: footer.php,v 1.26 2003/02/10 22:30:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_INCLUDES . 'counter.php'); ?> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="footer"> <td class="footer"> <?php echo strftime(DATE_FORMAT_LONG); ?> </td> <td align="right" class="footer"> <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?> </td> </tr> </table> <br> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?></td> </tr> </table> <?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 } ?> thanking you all in advance! regards, ~Ravi
♥Monika in Germany Posted October 28, 2006 Posted October 28, 2006 is 468x50 the name of the banner group you created in admin? :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
ravikiran7785 Posted October 28, 2006 Author Posted October 28, 2006 is 468x50 the name of the banner group you created in admin? thank you very much, i understood what you said and i did what i have to do and success! and the answer to ur question is "NO" thank you very much once again! worth having a forum! regards, ~Ravi
Recommended Posts
Archived
This topic is now archived and is closed to further replies.