Voting Reward Script - Completely Revamped!
Simple, pops up an unblockable window asking you to vote.
Custom rewards!
Protection against players who insist on trying to vote more than once per 12 hours
Sample: WoWIL - ùøú äôàï ùì éùøàì
Source:
vote.php http://pastebin.com/f2f265a7c
votegateway.php http://pastebin.com/f91110d9
SQL:How to use:Code:SET FOREIGN_KEY_CHECKS=0; CREATE TABLE `votewatch` ( `acct` int(10) NOT NULL, `ctime` int(11) NOT NULL, PRIMARY KEY (`acct`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-Save the source as vote.php and votewatch.php
vote.php: -Change the first three highlighted lines according to your DB settings.
-Next highlighted line, #78 - Change 'index.php' to the page you're planning to place this in, I suggest the site's index / the most visited page.
-Next highlighted line, #87 - Below it are the rewards. Each <option> is a reward. Change the value to the item ID, or leave at 0 for gold.
-If you want to change the amount of gold, goto line #41 and replace 100000 with your own amount (in coppers). Don't forget to change the <option> to show the modified amount. Value should still be 0.
votegateway.php: change the mmowned url to your voting URL.
-Execute the SQL on your logon/char DB.
-Open the file you want this to pop up in.
-Add this anywhere in the file:
<?php include("vote.php"); ?>
I recommend right after <body> or right before </body>, it shouldn't be in a div or a span or any other container.
Voila! You have a working popup vote reward thingie! Just change the title (line 66) and the description (lines 74-76) and you're set!
Tested, it works.