JayPee Posted March 23, 2012 Group: Members Topic Count: 47 Topics Per Day: 0.01 Content Count: 633 Reputation: 78 Joined: 11/14/11 Last Seen: September 20, 2017 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 Link to comment Share on other sites More sharing options...
ngek202 Posted March 23, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 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 Link to comment Share on other sites More sharing options...
jTynne Posted March 23, 2012 Group: Members Topic Count: 33 Topics Per Day: 0.01 Content Count: 399 Reputation: 199 Joined: 11/09/11 Last Seen: December 14, 2020 Share Posted March 23, 2012 This makes me holler. Lovely. Link to comment Share on other sites More sharing options...
Mystery Posted March 24, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 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? Link to comment Share on other sites More sharing options...
solid2005 Posted March 24, 2012 Group: Members Topic Count: 21 Topics Per Day: 0.00 Content Count: 147 Reputation: 15 Joined: 01/06/12 Last Seen: 3 hours ago Share Posted March 24, 2012 something wrong on database insert. Link to comment Share on other sites More sharing options...
ngek202 Posted March 24, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 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? Link to comment Share on other sites More sharing options...
solid2005 Posted March 24, 2012 Group: Members Topic Count: 21 Topics Per Day: 0.00 Content Count: 147 Reputation: 15 Joined: 01/06/12 Last Seen: 3 hours ago Share Posted March 24, 2012 how do you fix insert table on add new vote site? Link to comment Share on other sites More sharing options...
ngek202 Posted March 24, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 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 Link to comment Share on other sites More sharing options...
Drakkus Posted March 24, 2012 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 386 Reputation: 15 Joined: 11/17/11 Last Seen: September 13, 2024 Share Posted March 24, 2012 ANY Update with this? Link to comment Share on other sites More sharing options...
solid2005 Posted March 24, 2012 Group: Members Topic Count: 21 Topics Per Day: 0.00 Content Count: 147 Reputation: 15 Joined: 01/06/12 Last Seen: 3 hours ago Share Posted March 24, 2012 (edited) NVM i already fix. thanks japee. Edited March 24, 2012 by solid2005 Link to comment Share on other sites More sharing options...
JayPee Posted March 24, 2012 Group: Members Topic Count: 47 Topics Per Day: 0.01 Content Count: 633 Reputation: 78 Joined: 11/14/11 Last Seen: September 20, 2017 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. Link to comment Share on other sites More sharing options...
ngek202 Posted March 24, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 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 Link to comment Share on other sites More sharing options...
Lordamax Posted March 24, 2012 Group: Members Topic Count: 71 Topics Per Day: 0.01 Content Count: 328 Reputation: 13 Joined: 11/27/11 Last Seen: July 2, 2016 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 Link to comment Share on other sites More sharing options...
JayPee Posted March 24, 2012 Group: Members Topic Count: 47 Topics Per Day: 0.01 Content Count: 633 Reputation: 78 Joined: 11/14/11 Last Seen: September 20, 2017 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. Link to comment Share on other sites More sharing options...
MelMel Posted March 24, 2012 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 114 Reputation: 1 Joined: 01/22/12 Last Seen: December 10, 2017 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? Link to comment Share on other sites More sharing options...
JayPee Posted March 24, 2012 Group: Members Topic Count: 47 Topics Per Day: 0.01 Content Count: 633 Reputation: 78 Joined: 11/14/11 Last Seen: September 20, 2017 Author Share Posted March 24, 2012 @All Added a eAthena version npc script @hysoka44 Did you import the required tables? Link to comment Share on other sites More sharing options...
MelMel Posted March 24, 2012 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 114 Reputation: 1 Joined: 01/22/12 Last Seen: December 10, 2017 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? Link to comment Share on other sites More sharing options...
JayPee Posted March 24, 2012 Group: Members Topic Count: 47 Topics Per Day: 0.01 Content Count: 633 Reputation: 78 Joined: 11/14/11 Last Seen: September 20, 2017 Author Share Posted March 24, 2012 the tables are in the schemas folder just import those 3 tables Link to comment Share on other sites More sharing options...
MelMel Posted March 24, 2012 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 114 Reputation: 1 Joined: 01/22/12 Last Seen: December 10, 2017 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 Link to comment Share on other sites More sharing options...
JayPee Posted March 24, 2012 Group: Members Topic Count: 47 Topics Per Day: 0.01 Content Count: 633 Reputation: 78 Joined: 11/14/11 Last Seen: September 20, 2017 Author Share Posted March 24, 2012 @hysoka44 I cant reproduce your problem, Its working fine on me. Link to comment Share on other sites More sharing options...
MelMel Posted March 24, 2012 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 114 Reputation: 1 Joined: 01/22/12 Last Seen: December 10, 2017 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 Link to comment Share on other sites More sharing options...
ngek202 Posted March 24, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 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> Link to comment Share on other sites More sharing options...
MelMel Posted March 24, 2012 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 114 Reputation: 1 Joined: 01/22/12 Last Seen: December 10, 2017 Share Posted March 24, 2012 Thanks it works. Anyone know how to make the block time countdown? Link to comment Share on other sites More sharing options...
JayPee Posted March 24, 2012 Group: Members Topic Count: 47 Topics Per Day: 0.01 Content Count: 633 Reputation: 78 Joined: 11/14/11 Last Seen: September 20, 2017 Author Share Posted March 24, 2012 do you mean a live countdown? Link to comment Share on other sites More sharing options...
MelMel Posted March 24, 2012 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 114 Reputation: 1 Joined: 01/22/12 Last Seen: December 10, 2017 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. Link to comment Share on other sites More sharing options...
Recommended Posts