CallBack Help

xryskom

Member
hello again to all,

Can someone to help me or to inform me how the call back is working and if someone has use it on Lineage 2...
also what excalty must the member to put here?
 

cajkan

Active Member
Hello Xryskom - i have saved text file from - LemoniscooL ( the guy who wrote the callback )

Code:
Setup instructions for Callback Vote Check

By using the Callback System you can realize a fast and save way to reward your players for voting in seconds!
In order to do so you just have to upload a callback script to your webserver and put the direct link to this script into the "Callback" input box inside the user control panel.
You will find an example callback script below.

Q: What does Callback System mean?
A: The Callback System catches your players Vote, checks our database if he voted already today, and then calls a script located on your server telling the script if your player voted already.
The script on your server will then be able to reward your player automatically with whatever you want, for example Vote Points, InGame currency or Items etc.

How does Incentive Voting work?
After you set up your postback script on your server, and put the link to it inside your settings you need to use the Postback Button Code.

The Code includes a part like:
<a href="http://www.YOURSITE/index.php?a=in&u=YourSiteName&id=[PlayerID]">

Code [PlayerID] contain the ID that you identify your player with.
Example Player "John" has the account ID "1417" the link would be:
<a href="http://www.YOURSITE.com/index.php?a=in&u=YourSiteName&id=1417">

That means you have to dynamically put the players account ID into that link code, for example like this:
<?php echo '"http://www.YOURSITE/index.php?a=in&u=YourSiteName&id=' . $_SESSION['PlayerID'] . '"' ?>

If you store the ID ("1417") inside the Session Variable.


Q: What does it do, exactly?
A: The whole System starts on your website!
You put our button code into your Website / or voting link (edited like shown above) and a player of yours clicks on it to vote.
Your player is then forwarded to our gateway page. On this gateway page our system checks the database if your player voted already on that day.
Regarding on the result of this check, the system calls the Callback script on your server and passes the information to it.
Your script can then either reward your player, or not.
You could also reward your player for voting even if he voted already etc.
Your possibilities are limitless on this.
After the call to your Callback script, the user is forwarded to a confirmation page where he can see that he voted successfully, after that our database gets updated so he wont be able to be rewarded for voting again on the same day (as long as you reward your players for valid votes only).

Q: Can this be hacked?!
A: As you see above, this system is theoretically 100% safe, only possibility to "hack" this system is to make fake calls to your Callback script, but we also have a solution for this!
To prevent fake calls, we do an IP check inside the callback script.
By doing so, only calls from our Toplist Server will be accepted.
Every other call is simply rejected. If you want to, you could even do a "Hacker" log, where you log all attempts with time, ip and username/playerID so you can punish them afterwards.

Example Callback Script
You can use this Script on your Webserver to listen to our Callback System, all you have to do is add your rewarding. For example an SQL query to add InGame currency.
 

Basti

Administrator
Staff member
  • Explanation and example script for the toplist member are located at your-site.com/callback-guide/ or your-site.com/?a=callback if you use no clean urls. You should add this url to your menu so your users know what to do
Reading does help :) taken right out of the plugin resource page
 
Top