If you have a server listed on our site, it benefits you greatly to have your members voting for it. One of the ways to convince members to take the time to vote is to offer them incentives for doing so.

We provide two ways to check if a member has voted, Incentive Postback and IP Checking.

Incentive Postback

How does incentive postback work?

When users come in to vote, you can append their ID (< 25 characters) to the voting page using the incentive GET variable:

e.g. https://www.top100arena.com/listing/xxx/vote?incentive=1000

When adding your listing, fill out the Incentive Postback field with the EXACT URL you want your user ID posted to:

e.g. http://www.yoursite.com/votingpage.php?postback=

You can do this when editing your listing, just log in to access it.

The result will be an HTTP request sent to:

e.g. http://www.yoursite.com/votingpage.php?postback=1000

This will happen at the exact time that the user votes. Make sure to allow for our callback IP: 3.86.48.116

Example PHP Code to Check Postback

This would be the contents of /votingpage.php in the above example

<?php
//////// Example Post-Back Script for Top 100 Arena

// include database connection here

// this is the variable we pass back to you that
// contains the value you passed to us with the vote link
$user = mysqli_escape_string($_GET['postback']);

// check if the user has voted
$check_voted = mysqli_fetch_array(mysqli_query("SELECT vote FROM users WHERE username = '$user'"));
if ($check_voted[0] == 0) { // if they haven't voted
    // credit the user for voting, like giving +100 money as in the example
    mysqli_query("UPDATE users SET money = money + 100, vote = '1' WHERE username = '$user'");
}
?>

Please contact us if you have any questions about your account.

IP Checking

We also provide an API for you to check if a certain IP has voted.
Query the following page, replacing YourSiteID with the ID assigned to your website, and UsersIP with the user’s IP.

e.g. https://www.top100arena.com/check_ip/YourSiteID?ip=UsersIP

The call will return a JSON object with voted equal to true or false.

// if IP UsersIP has voted within last 24 hours
{
    "listing": 3,
    "ip": "172.27.0.2",
    "voted": true
}

// if IP UsersIP has not voted within last 24 hours
{
    "listing": 3,
    "ip": "172.27.0.2",
    "voted": false
}