Jump to content

Recommended Posts

Posted

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
Posted (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 by ngek202
Posted

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?

Posted

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?

Posted

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

Posted
* 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

Posted

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?

Posted

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>

Posted

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

Thanks JayPee for sharing the voteforpoints. :P

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...