storeweb88 Posted June 27, 2010 Posted June 27, 2010 I want to put a add on the index.php what I have is something like this - <CENTER><?php if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_INCLUDES . 'banner728.php'); }?></CENTER> For some reason every time I insert It it shows at the top or bottom of the page.. I am not sure how to get it where I want it. maybe I am editing the incorrect files? Any input? I would also like to put a ad at the top on the products page too.. I have provided pictures... http://rambosvalleysports.com/attachment.php?attachmentid=121&d=1277666090 http://rambosvalleysports.com/attachment.php?attachmentid=122&d=1277666093
Guest Posted June 27, 2010 Posted June 27, 2010 Bob, This is the osCommerce support forum not a vBulletin support forum. You should refer to vBulletin for support on their product. Chris
storeweb88 Posted June 27, 2010 Author Posted June 27, 2010 Bob, This is the osCommerce support forum not a vBulletin support forum. You should refer to vBulletin for support on their product. Chris Hey Chris.. I'm not sure why your saying that... but I know I'm asking about oscommerce not vbulletin.
storeweb88 Posted June 27, 2010 Author Posted June 27, 2010 Ok.. I figured two things out... One either my english is horrible or chris didn't completely read. ( chris if you would have clicked the links you would have seen images to where I wanted to place the ad. Chris I do know how I threw you off) Second.. When posting ads in the site I created a file something like bannerads.php Then I use this code - <CENTER><?php if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_INCLUDES . 'bannerads.php'); }?></CENTER> you can place that practically anywhere. I use the if statement so when they go to checkout they won't be distracted by the ads. Anyways... Say if you want ads to show up on products.php or index.php you just have to watch your tables and make sure you becareful where you post.. do not post it inside of for ex - <?php ?> I hope this comes in handy to other people.
Guest Posted June 27, 2010 Posted June 27, 2010 Sorry Bob, when I clicked your links it took me to the vBulletin forum software and NOT an osCommerce site. Chris
Recommended Posts
Archived
This topic is now archived and is closed to further replies.