JayPee Posted March 23, 2012 Share Posted March 23, 2012 File Name: FluxCP Addon: Vote For Points File Submitter: JayPee File Submitted: 23 Mar 2012 File Updated: 26 Mar 2012 File Category: Web Resources This is my vote for points addon for FluxCP that I code from scratch. Features: Added Anti-Proxy using PHP $_SERVER['HTTP_X_FORWARDED_FOR'] - I hope it work NPC Script is included see npc script folder You can turn off the IP blocking feature which will result to account base blocking system. Allowed image to be uploaded to the database is .gif | .jpeg | .jpg | .png Some Guides: To disable the ip blocking feature just set the 'IP_BLOCKING' to FALSE at config/addon.php To edit the max file size upload just edit 'MAX_FILE_SIZE' to whatever file size you want at config/addon.php Note: If the IP Blocking System is turn on, the blocking system is IP Address Based and Account Based. While if the IP Blocking System is turn off the blocking system is Account Based only. ( IF YOU FOUND BUGS OR SECURITY EXPLOITS PLEASE REPORT IT TO ME IMMEDIATELY) Click here to download this file 8 1 Quote Link to comment Share on other sites More sharing options...
ngek202 Posted March 23, 2012 Share Posted March 23, 2012 (edited) Sir JayPee what's the IP_BLOCKING for? and MAX_FILE_SIZE Got it LOL sorry. hope this will be added on CalciumKid's fluxcp renewal project. Noticed something: is this right when clicking on Blocking Time for example I set it to 12hr and when I submit it appears on Block Time 13:00:00? Edited March 23, 2012 by ngek202 Quote Link to comment Share on other sites More sharing options...
jTynne Posted March 23, 2012 Share Posted March 23, 2012 This makes me holler. Lovely. Quote Link to comment Share on other sites More sharing options...
Mystery Posted March 24, 2012 Share Posted March 24, 2012 Can it be possible to show an example of the actual v4p form? When the players login into the CP and wanna vote, they have the list of the voting sites. Is it possible to screenshot that please? Quote Link to comment Share on other sites More sharing options...
solid2005 Posted March 24, 2012 Share Posted March 24, 2012 something wrong on database insert. Quote Link to comment Share on other sites More sharing options...
ngek202 Posted March 24, 2012 Share Posted March 24, 2012 Can it be possible to show an example of the actual v4p form? When the players login into the CP and wanna vote, they have the list of the voting sites. Is it possible to screenshot that please? the vote for points doesn't appear when account isn't Logged in. and to Up my Question. Noticed something: is this right when clicking on Blocking Time for example I set it to 12hr and when I submit it appears on Block Time 13:00:00? Quote Link to comment Share on other sites More sharing options...
solid2005 Posted March 24, 2012 Share Posted March 24, 2012 how do you fix insert table on add new vote site? Quote Link to comment Share on other sites More sharing options...
ngek202 Posted March 24, 2012 Share Posted March 24, 2012 (edited) under schemas/logindb there's a 3 sql file just load it on your sql db. Edited March 24, 2012 by ngek202 Quote Link to comment Share on other sites More sharing options...
Drakkus Posted March 24, 2012 Share Posted March 24, 2012 ANY Update with this? Quote Link to comment Share on other sites More sharing options...
solid2005 Posted March 24, 2012 Share Posted March 24, 2012 (edited) NVM i already fix. thanks japee. Edited March 24, 2012 by solid2005 Quote Link to comment Share on other sites More sharing options...
JayPee Posted March 24, 2012 Author Share Posted March 24, 2012 @Mysterious Ok, Ill Upload some screenshots @ngek202 * The user must be loggedin in the CP in order to vote since the system gets the accountid of the player. it will only show when the user is loggedin. * I'll check the blocking time. Edit: @Myterious Here: @ngek202 * I cant reproduce your problem, I tried adding a new vote site and assign a 12 hours blocking time and it works fine and so as the editing. Quote Link to comment Share on other sites More sharing options...
ngek202 Posted March 24, 2012 Share Posted March 24, 2012 * The user must be loggedin in the CP in order to vote since the system gets the accountid of the player. it will only show when the user is loggedin. Oh sorry misunderstood me I didn't say it was a bug/anything.. I was just telling Mysterious about how it works Quote Link to comment Share on other sites More sharing options...
Lordamax Posted March 24, 2012 Share Posted March 24, 2012 (edited) When I put 20 hrs blocking time.. it shows 12 hours on the vote page Edited March 24, 2012 by Lordamax Quote Link to comment Share on other sites More sharing options...
JayPee Posted March 24, 2012 Author Share Posted March 24, 2012 Fixed wrong blocking time view when Timezone is defined. Kindly download it again. Thanks for ngek202 for providing a video. Quote Link to comment Share on other sites More sharing options...
MelMel Posted March 24, 2012 Share Posted March 24, 2012 Hi i got a problem. I have added the voteforpoints by putting this on one of my page: <?php if (!defined('FLUX_ROOT')) exit; $this->redirect($this->url('voteforpoints','index')) ?> But after I added everything it shown "No voting sites found" Can I know how to make it work? Quote Link to comment Share on other sites More sharing options...
JayPee Posted March 24, 2012 Author Share Posted March 24, 2012 @All Added a eAthena version npc script @hysoka44 Did you import the required tables? Quote Link to comment Share on other sites More sharing options...
MelMel Posted March 24, 2012 Share Posted March 24, 2012 I redirect it will link to the index page so the table is also there? Can you guide me please? What table should i import? Quote Link to comment Share on other sites More sharing options...
JayPee Posted March 24, 2012 Author Share Posted March 24, 2012 the tables are in the schemas folder just import those 3 tables Quote Link to comment Share on other sites More sharing options...
MelMel Posted March 24, 2012 Share Posted March 24, 2012 after I added a new vote, it show this link--> module=voteforpoints&action=add&return=add_site on a blank page Quote Link to comment Share on other sites More sharing options...
JayPee Posted March 24, 2012 Author Share Posted March 24, 2012 @hysoka44 I cant reproduce your problem, Its working fine on me. Quote Link to comment Share on other sites More sharing options...
MelMel Posted March 24, 2012 Share Posted March 24, 2012 (edited) Is working after I added the 3 tables. Can I know how to make the link open in a new tab? Edited March 24, 2012 by hysoka44 Quote Link to comment Share on other sites More sharing options...
ngek202 Posted March 24, 2012 Share Posted March 24, 2012 open themesdefaultvoteforpointsindex.php find line 31: <a href="index.php?module=voteforpoints&action=vote&sid=<?php echo $site->site_id; ?>">Vote Now</a> and change to this: <a href="index.php?module=voteforpoints&action=vote&sid=<?php echo $site->site_id; ?>" target="_blank">Vote Now</a> Quote Link to comment Share on other sites More sharing options...
MelMel Posted March 24, 2012 Share Posted March 24, 2012 Thanks it works. Anyone know how to make the block time countdown? Quote Link to comment Share on other sites More sharing options...
JayPee Posted March 24, 2012 Author Share Posted March 24, 2012 do you mean a live countdown? Quote Link to comment Share on other sites More sharing options...
MelMel Posted March 24, 2012 Share Posted March 24, 2012 Yes, a live countdown after they have voted, instead showing 12 hour. How can I change it? Thanks JayPee for sharing the voteforpoints. Quote Link to comment Share on other sites More sharing options...