Step 1: Go to [Only registered and activated users can see links. Click Here To Register...] and login.
Step 2: Add your site and get the Site Id from here [Only registered and activated users can see links. Click Here To Register...]
Step 3: Edit site details and add a pingback url where your vote script will be located (eg. http://myurl.com/pingback.php).
Step 4: Create pingback.php somewhere and add the following code:
Step 5: Add somewhere the vote url with your site id which is at the bottom of the site management.
Note: Do not forget to add a check if user already has voted within the past 24h. Maybe you could also add an ip check or whatever. Also you could check the senders ip to only allow GTop 100 to run your script.
Step 2: Add your site and get the Site Id from here [Only registered and activated users can see links. Click Here To Register...]
Step 3: Edit site details and add a pingback url where your vote script will be located (eg. http://myurl.com/pingback.php).
Step 4: Create pingback.php somewhere and add the following code:
Code:
<?php
$voterIP = isset($_POST["VoterIP"]) ? $_POST['VoterIP'] : ''; // voter ip address
$success = isset($_POST["Successful"]) ? abs($_POST["Successful"]) : 1; // 1 for error, 0 for successful
$reason = isset($_POST['Reason']) ? $_POST["Reason"] : '';
$pingUsername = isset($_POST["pingUsername"]) ? $_POST["pingUsername"] : '';
$postback = isset($_GET['custom']) ? $_GET['custom'] : '';
// GTop 100
if (!empty($_POST['pingUsername']))
{
/*
* Send add points to $pingUsername
* Note: Check if user has already voted past 24h.
*/
}
?>
Note: Do not forget to add a check if user already has voted within the past 24h. Maybe you could also add an ip check or whatever. Also you could check the senders ip to only allow GTop 100 to run your script.