How to configure your script

Replace ********** with your details



Open config.php

//icodes framework v2.0 01-10-2009

//database details
$db_username="**********";
$db_password="**********";
$db_database="**********";
$db_host="**********"; //usually "localhost"
$table_prefix="icodes"; //choose a suitable prefix to avoid any conflict with existing tables in your database
//end database details

//icodes details
$icodes_username="frameworkv2"; // replace with your icodes username
$icodes_subscription_id="443cb001c138b2561a0d90720d6ce111"; //replace with your icodes subscription id
//end icodes details

//path to your script
$site_url="**********"; // example: http://framework.icodes.co.uk
//end path to your script



Open ajax_search.js (edit line 32 and enter your site url) example: http://framework.icodes.co.uk

//path to your script
var siteurl = "**********";
//end path to your script



If your script does not reside in the root directory prefix each Rewrite Rule shown in red "/your_folder_name"

Open .htaccess

RewriteEngine On
RewriteRule ^category/([^/]*)/([^/]*)\.html$ /your_folder_name/category_codes.php?category=$1&page=$2 [L]
RewriteRule ^store_categories/([^/]*)/([^/]*)\.html$ /your_folder_name/all_stores_categories.php?browse=$1&select_stores=$2 [L]
RewriteRule ^all_stores/([^/]*)\.html$ /your_folder_name/all_stores_atoz.php?select_stores=$1 [L]
RewriteRule ^featured_voucher_codes_offers.html$ featured_codes_offers.php [L]
RewriteRule ^expiring_voucher_codes_offers.html$ expiring_codes_offers.php [L]
RewriteRule ^new_voucher_codes_offers.html$ latest_codes_offers.php [L]
RewriteRule ^exclusive_voucher_codes.html$ exclusive_voucher_codes.php [L]
RewriteRule ^coming_soon_codes_offers.html$ coming_soon_codes_offers.php [L]
RewriteRule ^store_categories.html$ all_stores_categories.php [L]
RewriteRule ^all_stores.html$ all_stores_atoz.php [L]
RewriteRule ^voucher_codes.html$ merchant_codes.php [L]
RewriteRule ^([^|]*)\.html$ /your_folder_name/merchant_codes.php?merchant=$1 [L]



How to Login and Import

Login to your admin area yoursite.co.uk/my_admin/
Username: username
Password: password

Click "create tables"
Click "import" and import codes, offers, merchants, categories

Login details can be changed in /my_admin/password_protect.php


Trouble Shooting

If you get the error: (URL file-access is disabled in the server configuration) then edit line 22 in config.php to use CURL

$httpRequest="URL"; //options 'URL' CURL'