Jump to content

FluxCP Addon: Vote For Points


JayPee

Recommended Posts


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

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:

  1. To disable the ip blocking feature just set the 'IP_BLOCKING' to FALSE at config/addon.php
  2. 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

  • Upvote 8
  • Love 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

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 by ngek202
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  399
  • Reputation:   198
  • Joined:  11/09/11
  • Last Seen:  

This makes me holler. Lovely. :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  145
  • Reputation:   15
  • Joined:  01/06/12
  • Last Seen:  

something wrong on database insert.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

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.

flux001.png

flux002.png

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


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  145
  • Reputation:   15
  • Joined:  01/06/12
  • Last Seen:  

how do you fix insert table on add new vote site?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

under schemas/logindb there's a 3 sql file just load it on your sql db.

Edited by ngek202
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

ANY Update with this?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  145
  • Reputation:   15
  • Joined:  01/06/12
  • Last Seen:  

NVM i already fix.

thanks japee.

Edited by solid2005
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

@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:

post-322-0-81223900-1332580937_thumb.jpg

@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


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

* 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 :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  71
  • Topics Per Day:  0.02
  • Content Count:  328
  • Reputation:   13
  • Joined:  11/27/11
  • Last Seen:  

When I put 20 hrs blocking time.. it shows 12 hours on the vote page

Edited by Lordamax
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

@All

Added a eAthena version npc script

@hysoka44

Did you import the required tables?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

the tables are in the schemas folder just import those 3 tables

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

@hysoka44

I cant reproduce your problem, Its working fine on me.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

Is working after I added the 3 tables. Can I know how to make the link open in a new tab?

Edited by hysoka44
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

Thanks it works. :P

Anyone know how to make the block time countdown?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

do you mean a live countdown?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

Yes, a live countdown after they have voted, instead showing 12 hour. How can I change it?

Thanks JayPee for sharing the voteforpoints. :P

Link to comment
Share on other sites

×
×
  • Create New...