Jake Posted January 6, 2007 Share Posted January 6, 2007 I have no idea how to go about making the code for giving users rewards for voting. Can someone help me? [email protected] the-liberation.com Quote Link to comment Share on other sites More sharing options...
Cronus Posted January 6, 2007 Share Posted January 6, 2007 Re: Rewards for voting When the person clicks on the link(from your site) to vote, create a page that it sends them to that inserts the items/gives them the rewards and then redirects them to the voting site. It won't make sure they vote. But it will give the rewards. And if they truly want to help the game and have more players to go against, they will take the 2 seconds to click "vote". Quote Link to comment Share on other sites More sharing options...
UCC Posted January 7, 2007 Share Posted January 7, 2007 Re: Rewards for voting I know a lot of people dont have 2.0 but does anyone know why I might be getting this error? Warning: Cannot modify header information - headers already sent by (output started at /home/samuraio/public_html/global_func.php:1985) in /home/samuraio/public_html/votetwg.php on line 36 Voting page has this.. header('Location:http://www.topwebgames.com/in.asp?id=3341'); Quote Link to comment Share on other sites More sharing options...
Decepti0n Posted January 7, 2007 Share Posted January 7, 2007 Re: Rewards for voting you get it because you used the header() tag after outputting html Quote Link to comment Share on other sites More sharing options...
Jake Posted January 7, 2007 Author Share Posted January 7, 2007 Re: Rewards for voting So i need a redirecting page...on which the reward is given, ok i'll work on this, thanks a lot. On my voting page i have a list of different sites they can vote on. And the site name is the link like this print "[url='http://apexwebgaming.com/in/1499']Vote at Apex Web Gaming[/url] "; So instead of using a direct page like that, should i have that link going to something like : the-liberation.com/voteapex.php ... And then on that page, do the necessary MySQL updates, and then have something like this: header('Location:http://apexwebgaming.com/in/1499'); Quote Link to comment Share on other sites More sharing options...
UCC Posted January 7, 2007 Share Posted January 7, 2007 Re: Rewards for voting you get it because you used the header() tag after outputting html That's what I thought but there is no html anywhere in the script. There isn't even a Print statement before the header tag! Sigh. I'll keep looking Quote Link to comment Share on other sites More sharing options...
Decepti0n Posted January 7, 2007 Share Posted January 7, 2007 Re: Rewards for voting is it in any of the included files? Quote Link to comment Share on other sites More sharing options...
vinyl Posted March 9, 2007 Share Posted March 9, 2007 Re: Rewards for voting I remember when I did these I left a colon out or put a space in the following line..... -so here it is in case you have made the same error as I made things like this are sometimes tooo obvious to spot when frustrated.(for me) it gave me the error you are receiving: header("Location:http://www.some_volting_site.com/in.asp?id=####"); exit; } ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.