/*************************************************\ | Custom Headers & Footers for X-cart Affiliate | | | | BCS Engineering | | Copyright (c) 2004 BCS Engineering, | | Carrie L. Saunders bcsengineering.com> | | All rights reserved. | | See http://www.bcsengineering.com/license.shtml | | for full license | | For X-cart versions 3.5.X | \*************************************************/ Allow affiliates to have custom headers and footers when a customer visits your store through an affiliate link. NOTE: You should always make a back-up copy of your files and/or database before installing any modification. INSTALLATION: 1. Add code snip 1 to skin1/single/home.tpl after {if $smarty.get.mode eq "subscribed"} {include file="main/subscribe_confirmation.tpl"} 2. Add code snip 2 to skin1/partner/home.tpl after {if $main eq "stats"} {include file="partner/main/stats.tpl"} 3. Add to skin1/partner/menu.tpl Header & Footer
4. Add to skin1/admin/menu_affiliate.tpl Headers & Footers
5. In skin1/customer/home.tpl replace { include file="head.tpl" } with Code Snip 3 6. In skin1/rectangle_bottom.tpl replace { include file="bottom.tpl"} with Code Snip 4 7. Add to include/partner_info.php code snip 5 before ?> 8. Add to partner/register.php code snip 6 after require $xcart_dir."/include/register.php"; 9. Add to admin/process_user.php code snip 7 after elseif($mode=="delete") { # # Delete user # if($confirmed=="Y") { include "./safe_mode.php"; 10. You may either copy and paste the mysql query below into the Patch/Upgrade Mysql area to update your tables OR -you can copy install.php into admin/ -Login to the admin interface -Then go to the following URL: http://www.yourdomain.com/xcart_dir/admin/index.php -It is recommended to delete install.php after running and verifying the mod works. 11. Uncompress the zip and copy all the files into their appropriate directories. 12. After installation, affiliates can create and edit their headers and footers by following their new "Header & Footer" link in their menu. Administrators can view, edit and disable any affiliates headers and footers by following their new "Headers & Footers" link under the Affiliates menu. If no affiliates have created any headers and/or footers, then the search for headers and footers will return nothing. 13. (optional) If you would like to leave instructions for affiliates on how to use this modification, edit languages and add txt_affiliate_h_f_info variable with instructions.