Newbie Spellweaver
- Joined
- Nov 4, 2017
- Messages
- 12
- Reaction score
- 0
So what would my voting page look like???Your vote form does not directly interact with pingback.php. If you've successfully enabled the Pingback option on GTOP's control settings, then GTOP will be the ones that will be interacting with pingback.php.
So what would my voting page look like???
For example, would it be like
<form action="http://forum.ragezone.com/pingback.php">
... vote stuff...
</form>
??
http://www.gtop100.com/topsites/MapleStory/sitedetails/SERVERNAME?vote=1&pingUsername=USERNAMEHERE
Your vote form would not submit to pingback.php at all--that would defeat the purpose of pingback voting. Your form would send the user to GTOP's page as normal, except with the pingUsername variable attached.
Example:GTOP themselves will then literally ping your pingback.php (assuming you've enabled everything correctly) and send any details necessary along with the pingUsername via a POST request so you know who to give it to. The example script they have on their site does almost everything for you except give the reward to the user, which you'll have to do yourself.PHP:http://www.gtop100.com/topsites/MapleStory/sitedetails/SERVERNAME?vote=1&pingUsername=USERNAMEHERE
http://www.gtop100.com/topsites/MapleStory/sitedetails/SERVERNAME?vote=1&pingUsername=USERNAMEHERE
$authorized = array("198.148.82.98", "198.148.82.99"); // authorized ips to prevent exploitation