i hope ive cleared your mind MarkHow does the vote callback work?
- When a member of your server comes to vote, append their ID (AccountID) to the end of the voting link:
- http://www.openwow.com/?vote=xxx&spb=xxxx
Setup and Snippets?
- Enter a valid URL for your postback script in the Server Editor
- Information will be sent to the script that has been set for postback
- http://www.yoursite.com/votecallback.php
- This operation is a $_POST request.
- The postback will be sent as soon as the user successfully votes
- PHP Code Snippet for your website (Webmasters Only)
- Example of the contents of your votecallback.php
- <?php
#Example PHP Postback Script
#Open WoW does not take responsibility or liability for the use of this php snippet
#Database Connection
mysql_connect();
mysql_select_db();
#Variable posted to your script is 'pbid'
$account = mysql_real_escape_string($_POST['pbid']);
#Check if the user has voted
$voted = mysql_fetch_array(mysql_query("SELECT voted FROM vote_cooldown WHERE account = '$account'"));
if(!$voted[0]){
#Has not voted
#Grant +1 Voting Point
mysql_query("UPDATE votepoints SET points = points+1 WHERE account = '$account'");
}
#Close Connection
mysql_close();
?>
Yes this is what I want.is that what you want hostpro? how are your members going to be able to get their players usernames? This could work for some instances but I think for the most part this is not what you are asking for.
its wierd but idkHow does url postback work?
When users come in to vote, you can append their ID to the voting page using the GET variable:
e.g. http://www.yoursite.com/in-[your_site_id]-user-[user_id_who_voted]
Fill out this field with the EXACT URL you want your user ID posted to.
e.g. http://www.yoursite.com/votingpage.php?postback=[user_id]
Note: Is very important that the url contain [user_id]
If user vote with next link:
e.g. http://www.yoursite.com/in-[your_site_id]-user-1234
The result will be an HTTP request to
e.g. http://www.yoursite.com/votingpage.php?postback=1234