Quote:
Originally Posted by zTREME
php
|
He could mean voting from ingame...
What I do is have a window pop up when characters log in asking if they want to vote. If they do, it sets their vote time in the database (so it won't ask again for 12 hours), awards the cp and opens the voting window.
If ingame just add cps and open the site from ingame (links can be opened with a chat packet, exact examples have been posted already) and possibly add a check to see if they've already voted.
If you are using a website then do something almost identical but instead you will want a popup asking if they want to vote and for their ingame name (checked for when the last time they have voted, I suggest googling code examples for that) and then if they do vote, run a mysql query to add cps to their character name/account (or however you want to handle that)