|Main » Files » Site Script » Business and money||[ Add new entry ]|
- download and unzip the scripts
- create MySQL database and it's contents.
Assuming you have phpMyAdmin installed:
- Copy the contents of database.sql
- Paste it into the text box on phpMyAdmin underneath "Run SQL query/queries on database affiliates:"
- Press 'Go' and the tables will be created for you.
- Change password of admin;
-- type the following into the same box: ('newpassword' should be your new admin password
UPDATE admin set pass = 'newpassword' where user = 'admin';
- Press 'Go' again and the password will update
- open the 'affconfig.php' file in your favourite text editor
- For $domain, replace "www.domain.com" with the web address to your site.
eg. We would put "www.organicphp.com", you could be "example.domain.com"
or "www.domain.com/~you". Do not end with a forward slash (/) or start with
- For $server, replace "localhost" with the address to your MySQL server.
It is nearly always "localhost", although check with your host if unsure.
- For $db_user, replace "username" with the username you have made or have been
given for your MySQL database.
- For $db_pass, replace "password" with the password you need to access your MySQL
database. Make sure you give the username a password, or anyone can enter and
change your database.
- For $database, replace "affiliates" with the name of your MySQL database, this
could be anything, it's up to you (or your host!)
- For $currency, replace "UK Pounds" with the currency that you will be paying your
affiliates in. e.g. US sites may enter "US Dollars".
- For $emailinfo, replace with your email address.
- $yoursitename is simply your site name
- $lang is 'eng.php' - there will be support for multiple languages later
- Save these changes and exit the file
- Next open the file 'check1.php' in your favourite text editor
- For $payment, replace "5.00" in variable $payment with the amount you would like to pay
your affiliates for every successful sale that they have sent you.
If you would like to pay different amounts for different products, duplicate the
'check1.php' file making files 'check2.php', 'check3.php' etc. and enter the
different payment amounts in each.
- !!!SECURITY WARNING!!! for security reasons, you should rename files check1.php, check2.php
etc. into meaningless random generated names (for example v1df23gfd3.php). It will protect you
from too smart affiliates that would like to add more sales than they originally make.
If your affiliates know that you are using POST Affiliate, or PHP Affiliate!, they can guess
you are using files check1.php, etc. from standard installation, and invoke
script check1.php manually. The script will add non existing sales to the database.
That's why you should rename those files (only check1, check2, ...) into hard-to-guess meaningless names.
- Open your main page (most probably 'index.php') in your favourite text editor
- main page must be PHP script
- Enter the following code above the tag and any other code:
- Save the changes and exit the file
- Upload all of the files in their present directory structure to your hosting account,
using your preferred FTP program. The files and folders must be uploaded into the
Document Root where your HTML files are.
- To reward your affiliates you need to add the following line to the top of your order confirmation page:
!!!SECURITY WARNING!!! as mentioned before you should rename file check1.php into meaningless name, lets
say 'hfgjsdgfjhsdg.php'. Then you should add line not
Dont copy this example of meaningless name. Make your own!!!
By adding this code to the page after an order has been submitted, you prevent affiliates
from being awarded from people just going to the order page.
Remember that you will need seperate order forms or confirmation pages if you want to
award affiliates with different amounts.
- If you wish to customise the look of POST Affiliate, replace the HTML in the files
header.php and footer.php from the 'user' directory, in your favourite text editor.
- Installation is now complete!
|Views: 2060 | Downloads: 323 | Rating: 0.0/0|
Popular Clone Site||
Total online: 1