Call Back Function - Request

Hostpro

VisioList Humanization Project
Hey,

I'd like to request a call back plugin.

So that sites can offer their users a reward for voting using a call back function to check that they actually voted.
 

Mark

Administrator
Staff member
please give more though to this and post clear details as to how exactly you want this to work
 

cajkan

Active Member
This is Copy paste only

Dont complain about stealing etc...

its for preview only and i took it from openwow.com


How does the vote callback work?









Setup and Snippets?


    1. Enter a valid URL for your postback script in the Server Editor
    1. Information will be sent to the script that has been set for postback
  1. 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();
      ?>
i hope ive cleared your mind Mark :D
 

Mark

Administrator
Staff member
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.
 

Hostpro

VisioList Humanization Project
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.
Yes this is what I want.

I have created a plugin for MyBB Forums that awards a user points for going to their vote link but it can't actually check if they have voted or not.

All they have to do is type in their username and they get awarded a set amount of points and then the page is redirected to the vote link that the admin has setup.

I want to use a callback feature that actually checks if that user voted before awarding the specific points.
 

Mark

Administrator
Staff member
well that is different from what the above code and this is a duplicate feature request.
 

cajkan

Active Member
Can you make simmilar plugin to this one Mark ???

gaming toplists will need it

Thanks
 

Mark

Administrator
Staff member
Yes, but we have several threads on this topic already. Please use the search function or at least look at the other requests, its quite frustrating to answer the same questions over and over
 

Mark

Administrator
Staff member
but you responded in both topics...

No need for me to spend time making a list... that is the what the forum topics are... a LIST of request. Its really not that hard.

The truth is the more time I spend in the forum the less time I have to spend coding... wonder why things take long to develop? ask better/smarter questions.
 

cajkan

Active Member
i was looking for more topsite postbacks

and this is what ive found

How 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
its wierd but idk
 
Top