Viral Referal Script (Web Coding)
Hello!
I've been looking around the net and asking in the forums but no one seemed to find the correct script I was looking for, so I hired someone to code it for me.
And I'm here to share it :)
What does it do?
This PHP script will make a dynamic referral URL; when the user shares the URL to other people then it will at a referral (once they hit the link); after [10] hits (One is from the main user) it will unlock a [link] as a reward.
Features
-Bound to IP (they cannot get more hits by using another browser
-Easy to use
-Customizable
-And the best of all; I give it FREE!
Updated to V2
Changes:
-Is now bound to IP
Updated to V3
Changes:
-Fixed a bug where the referral script would only regenerate 9 random ID's => Is not unlimited
DOWNLOAD HERE!
Installation:
- Create a database in cpanel and then go to phpmyadmin and under SQL (Don't forget to select your database) in your database past the following code:
Code:
CREATE TABLE IF NOT EXISTS `cookie_ref` (
`REF_id` bigint(254) NOT NULL AUTO_INCREMENT,
`REF_val` varchar(254) NOT NULL,
`REF_hits` int(1) NOT NULL,
PRIMARY KEY (`REF_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
-Then add the following code:
Code:
CREATE TABLE IF NOT EXISTS `cookie_ref_ips` ( `IP_id` bigint(20) NOT NULL AUTO_INCREMENT,
`IP_address` varchar(20) NOT NULL,
`REF_val` varchar(50) NOT NULL,
PRIMARY KEY (`IP_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
- Edit config.php - Located in /dbcon/ - and fill in your created DBuser,Pass,DBname
- Change the 'yoururl.com' to your website in the index.php file
- Then you can extract the script from the index.php file, and integrate it in your own page.
OPTIMAL:
If you want the page to automatically refresh, then add the following code at the START of your index.php (before ANYTHING else)
Code:
<?php
header("Refresh: 120;");
?>
You can change the refresh time, it is set as 2 minutes in the example.
Then it should work!
If you need anymore help then please reply here and I will expand my tutorial.
Enjoy!
LEAVE COMMENTS!