How Postback (aka Incentive voting) works:
postback.php code example:
#PSTop100 Postback Script Start
$PSTop100SecretAPIToken = 'INSERT_API_TOKEN_HERE';
//get variables from WoWTop100 and sanitize $VoterID to integer:
$Token = (isset($_POST['token']) && !empty($_POST['token'])) ?
$_POST['token'] : false;
$VoterID = (isset($_POST['voterid']) && !empty($_POST['voterid'])) ?
(int)$_POST['voterid']:false; //remove "(int)" if you passing string like username.
if ($Token != $PSTop100SecretAPIToken || !$VoterID)
//request is invalid - token is invalid or voterid is empty
* Run your own code here, like giving points, money or rewards.
* Use $VoterID variable to identify user who voted. Passed from vote banner link.
//YOUR CODE - DO SOMETHING WITH $VoterID
#PSTop100 Postback Script End
voterid = ID of voter pulled from PSTop100 banner link
token = unique API token related to your site ID - keep this a secret