SEO CLICKBANK 

This script may only be distributed by authorized distributors.  You may modify the code for your own personal use but you should not resell or give away to others.

REQUIREMENTS
------------------------------------------------------------------------------
- TESTED ON PHP 4 or higher 
- PERL regular expressions support for PHP - STANDARD ON MOST SERVERS
- MySQL


The program has been tested on UNIX  and Windows plaforms, and should 
work on all platforms where PHP and MySQL are running.



INSTALLATION
------------------------------------------------------------------------------
- download and unzip the scripts provided.

- 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/aff" with the web address to your site.
	  If you do not change the name of the default folders provided you would put  www.yourdomain.com/aff

	- For $server, replace "localhost" with the address to your MySQL server.
	  In most cases this is still localhost.

	- For $db_user, replace "username" with the username you have made or have been assigned for your 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 $emailinfo, replace with your email address.

	- $yoursitename is simply your site name

 - Save these changes and exit the file

Upload all files to your server retaining the directory structure.

Now it's time to make your presale page - you really have no limits on how complex or simple you make this page.  Your presale page should be named template.html  (it's o.k to include php code although I will explain more below).

Upload your presell page to member folder include all needed graphics, no absolute paths.  


For example your images should be linked like this  image.gif instead of http://www.yourdomain.com/image.gif

Upload your graphics to the seo folder as well.

There are some code snippets you should include in your template.html page that MUST be there:

At the top of the page:  
<?php
include '../../affiliate.php';
?>

In the keywords meta-tag area:   ${keyword}

In the description meta-tag area   ${desc}

In a heading tag such as h1, h2, etc...    ${title}

Where ever you wish for the users Personal Statement to appear: ${pstatement}

Affiliates Clickbank ID -This obviously should go where you wish your affiliates clickbank username to appear, such as in the link to your product:  ${clickbank}

Additional reccomended link:   <a href="http://${psite}" target="_blank">${psite}</a>

If you wish to link to all other affiliates pages:  

To show only the live pages at the time of this pages creation:  <?php include '../sitemapfunction.php' ?>

To show all live pages period:  &lt;?php include '../sitemapfunction.php' ?&gt;


Now these pages work like this - if you are trying to include a script such as google adsense code, or anything dynamic.  Your source code for the < > (open and closing tags) should be replaced with:

<  is replaced with  &lt;
> is replaced with  &gt;

Admin area
yourdomain.com/aff/member/admin/
default log in is admin / pass123  *you should change this via the phpmyadmin*

Registration:



This script has the capability to be improved, and to allow different tags.  Please back up before you attempt this.  You should be familiar with editing a database, and working with a templating system.  The files you would need to modify are:
complete.php,  userprofile.php, and your template page.

Installation, customization, and improvements are available at an additional charge through stmadeveloper.com

