|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Hello,
I would like to know if someone had or could make a script that work like this. The user suggests the site to all his friends via the script, and in the email to this friend it's a link to the site. When the friend visit mye site, the user get 1 credit (point or what so ever). It's like a competition, the user that makes most credit - wins! A promotion script for a site, any comment? Frank |
|
#2
|
|||
|
|||
|
in the link you, could send some unique id when the user clicks on the link, in increments your points by one, and also stores the ip address of the vistor so that they cant keep refreshing the page
|
|
#3
|
|||
|
|||
|
What I would do is setup a table for the users who want to send the email to their friends, and a table for the friends that receive the email
users --------- userId int name varchar email varchar email_users ------------- euserId int parentId int ipAddress varchar then send the link containing the userId field of the user sending the emails to his friends: http://www.mysite.com/track.php?fromUserId=10 then INSERT INTO email_users(parentId, ipAddress) values(10, '192.168.45.33') etc.... so the userId field in the users table is linked to the parentId field in the email_users table.... make sure you check if that users IP address is already in the email_users table too. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Tell your friends, get credit! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|