/*************************************************\ | Ad / Banner X-cart Mod | |Place banners anywhere! Seamlessly integrate Ads | | and Banners into your existing X-cart site!! | | Associate Ad / Banners with your X-cart | | categories and display only relavent ads to | | customers! | | | | BCS Engineering | | Copyright (c) 2004 BCS Engineering, | | Carrie L. Saunders | | All rights reserved. | | See http://www.bcsengineering.com/license.shtml | | for full license | | For X-cart versions 3.5.X | \*************************************************/ NOTE: You should always make a back-up copy of your files and/or database before installing any modification. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ INSTALLATION: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1. Add to customer/home.php require "./ad_banner.php"; AFTER require $xcart_dir."/include/categories.php"; 2. Add to skin1/admin/menu.tpl
Ad Banner
Ad Banner Search BEFORE
{/capture} { include file="menu.tpl" dingbats="dingbats_categorie.gif" menu_title="Management" menu_content=$smarty.capture.menu } 3. Add to skin1/single/home.tpl {elseif $main eq "ad_banner"} {include file="admin/main/ad_banner.tpl"} {elseif $main eq "ad_banner_search"} {include file="admin/main/ad_banner_search.tpl"} AFTER {if $smarty.get.mode eq "subscribed"} {include file="main/subscribe_confirmation.tpl"} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ USAGE: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Insert this code into skin1/customer/home.tpl anywhere you want an ad or banner to show up. You can include this code as many times as you want. Change the banner type to be the banner type you want to display. If you leave the banner type empty, then it will display all banner types there. { include file="customer/main/ad_banner.tpl" banner_type="your banner type here"}