Jump to content
JayPee

FluxCP Addon: Vote For Points

Recommended Posts

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

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

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

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

@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

* 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

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

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

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

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

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

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.