How Postback (aka Incentive voting) works:
postback.php code example:
#WoWTop100 Postback Script Start
$WoWTop100SecretAPIToken = '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 != $WoWTop100SecretAPIToken || !$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
#WoWTop100 Postback Script End
voterid = ID of voter pulled from WoWTop100 banner link
token = unique API token related to your site ID - keep this a secret