• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

vote system [help]

Status
Not open for further replies.
Newbie Spellweaver
Joined
Mar 23, 2020
Messages
85
Reaction score
3
I have a problem in the voting part, when someone votes, keeps counting the time for all accounts and apparently time does not end

Code:
$_CONFIG['vote_enabled'] = true; 
$_CONFIG['vote_timedelay'] = 15;
 $_CONFIG['vote_toplists'] = array(    
        0 => array(
        'name' => 'Gtop 100', 
        'link' => 'https://gtop100.com/topsites/Flyff/sitedetails/Flyff-Testvote-99668?vote=1', 
        'earnVotePoints' => 10, 
        'timeLimit' => 43200
),
);

box_votescript.php




** EDIT **

If I create a new account now, and go to vote it will say that you already voted and keep counting the time to vote again

** EDIT² **

apparently i had another file on my server similar to box_votescript called vote.php in i also modified it as@ketchup commented:
Replace HTTP_CF_CONNECTING_IP with REMOTE_ADDR

and apparently it's working, thank you very much
 
Last edited:
Newbie Spellweaver
Joined
Mar 23, 2020
Messages
85
Reaction score
3
@Ketchup when any accounts votes, all accounts enter recharge time to vote

db vote system:

 
Last edited:
Upvote 0
Status
Not open for further replies.
Back
Top