-Genocide- Posted April 4, 2007 Share Posted April 4, 2007 The voting.php that comes with MCCodes v2 is unorganized, and looks shitty, so I pimped it a little bit. :evil: voting.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Peace. :mrgreen: *EDIT* Ok, there are lots of questions about this simple little modification, I am going to attempt to answer most of them real fast, but I just woke up and its 5:35am here, so excuse me. 1. Does this code require SQL? No, you do not need to install any SQL at all to use this mod. 2. How do you make the no change to a yes? Simple...this mod querys the "votes" table of the database with this part of the code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. All you have to do to make the No change to Yes is open the votesite.php (votetorpg.php, votecetwg.php) or something similar to that. You will see a line like this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. right above the voting link. Now all you have to do is make sure that the query in this part of the code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. matches the query in this part of the code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Example: This is the code found in the votesite.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Ok, see where it says 'votesite'? you will need to edit voting.php to match...like this: Original: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edited: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Pay close attention to the first query....notice I have edited it to match. The No will now change to a Yes once I have voted. 3. How do I add a new voting site? This is really easy, all you have to do is copy what I already have, then modify it to match the new voting site. Copy This: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add the code above right before this: Find this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then add a query for your new voting site like this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Ok, now go back to what you added right before the end table code and edit it to match the one you just added for your new vote site: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. See where I have edited it to match the $vs query? Simple shit.... I think that is all the questions about this mod, if you have more, post and I will explain. Peace. :mrgreen: Quote Link to comment Share on other sites More sharing options...
-Genocide- Posted April 4, 2007 Author Share Posted April 4, 2007 Re: voting.php Pimped Out (Free) For v1..... voting.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
-Genocide- Posted April 4, 2007 Author Share Posted April 4, 2007 Re: voting.php Pimped Out (Free) ehhh....here is a screenshot..... http://notoriousonline-v2.net/voting_ss.jpg Peace. :evil: Quote Link to comment Share on other sites More sharing options...
hamster01 Posted April 4, 2007 Share Posted April 4, 2007 Re: voting.php Pimped Out (Free) ill try ur v genocide... (i also see your always on ur cp to! good!) Quote Link to comment Share on other sites More sharing options...
vinyl Posted April 4, 2007 Share Posted April 4, 2007 Re: voting.php Pimped Out (Free) about a week ago I altered my VOTE links under my header to turn red when someone had not voted, seems to help a bit, and I actually finally made the postbacks from the sites trigger the rewards. Nice work Genocide Quote Link to comment Share on other sites More sharing options...
-Genocide- Posted April 4, 2007 Author Share Posted April 4, 2007 Re: voting.php Pimped Out (Free) thanks. 8-) Quote Link to comment Share on other sites More sharing options...
CraigF Posted April 4, 2007 Share Posted April 4, 2007 Re: voting.php Pimped Out (Free) lol, i still cant help but laugh at Genocides Signature!! haha and i dont think i will try this, mine is ok how it is Quote Link to comment Share on other sites More sharing options...
seanybob Posted April 4, 2007 Share Posted April 4, 2007 Re: voting.php Pimped Out (Free) Genocide... marry me? Quote Link to comment Share on other sites More sharing options...
Z?v?? Posted April 4, 2007 Share Posted April 4, 2007 Re: voting.php Pimped Out (Free) Looks good Geno, i'll be using this. :-D Quote Link to comment Share on other sites More sharing options...
-Genocide- Posted April 4, 2007 Author Share Posted April 4, 2007 Re: voting.php Pimped Out (Free) Genocide... marry me? Bahahaha! I thought you'd never ask :-P Quote Link to comment Share on other sites More sharing options...
N00b Posted April 4, 2007 Share Posted April 4, 2007 Re: voting.php Pimped Out (Free) http://notoriousonline-v2.net is the best v2 game i seen it looks unique aswell nice one geonocide Quote Link to comment Share on other sites More sharing options...
CraigF Posted April 4, 2007 Share Posted April 4, 2007 Re: voting.php Pimped Out (Free) http://notoriousonline-v2.net is the best v2 game i seen it looks unique aswell nice one geonocide yeah i seen that earlier :) it looks great Quote Link to comment Share on other sites More sharing options...
Z?v?? Posted April 4, 2007 Share Posted April 4, 2007 Re: voting.php Pimped Out (Free) Yep, and i'm going to be the best on it. :-P Quote Link to comment Share on other sites More sharing options...
BreakingLight Posted April 4, 2007 Share Posted April 4, 2007 Re: voting.php Pimped Out (Free) Genocide... marry me? Seany i thought i was your love :( Quote Link to comment Share on other sites More sharing options...
CraigF Posted April 4, 2007 Share Posted April 4, 2007 Re: voting.php Pimped Out (Free) I love you BreakingLight but it can never be! Quote Link to comment Share on other sites More sharing options...
BreakingLight Posted April 4, 2007 Share Posted April 4, 2007 Re: voting.php Pimped Out (Free) I love you BreakingLight but it can never be! oh the pain. :cry: Quote Link to comment Share on other sites More sharing options...
CraigF Posted April 4, 2007 Share Posted April 4, 2007 Re: voting.php Pimped Out (Free) I know, but it would be too complicated, with my baby and your baby and your job (dancing on the street corner next to your hat). I am sorry, the pain indeed! :-( Quote Link to comment Share on other sites More sharing options...
BreakingLight Posted April 4, 2007 Share Posted April 4, 2007 Re: voting.php Pimped Out (Free) i dont dance on the street corner anymore.They said i had to stop.So now i dance around elementary schools Quote Link to comment Share on other sites More sharing options...
CraigF Posted April 4, 2007 Share Posted April 4, 2007 Re: voting.php Pimped Out (Free) dont be foolish, no-one will give you money there, you should dance near train stations, thats where i used to do, now i moved into the bus station! Quote Link to comment Share on other sites More sharing options...
iseeyou94056 Posted July 28, 2007 Share Posted July 28, 2007 Re: [mccode] voting Pimped Out it still say i did not vote after i did Quote Link to comment Share on other sites More sharing options...
Note i didn't make this mo Posted August 7, 2007 Share Posted August 7, 2007 Re: [mccode] voting Pimped Out Good One Genoicde Like It Quote Link to comment Share on other sites More sharing options...
-CrAzY- Posted August 9, 2007 Share Posted August 9, 2007 Re: [mccode] voting Pimped Out myne sez this :-( Vote For Us Vote for us at various RPG toplists and be rewarded. Top List Reward Voted Today? Cast Vote Stage 3 Top Games 10 Crystals Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/imgame/public_html/voting.php on line 27 No Vote TBAB Top Games $1,000 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/imgame/public_html/voting.php on line 37 No Vote Game Sites 200 Energy Refill Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/imgame/public_html/voting.php on line 47 No Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted August 10, 2007 Share Posted August 10, 2007 Re: [mccode] voting Pimped Out Are u useing mccode v1.1 :| <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); $s3=mysql_query("SELECT * FROM votes WHERE userid=$userid AND list='stage3'",$c); $tb=mysql_query("SELECT * FROM votes WHERE userid=$userid AND list='tbab'",$c); $gs=mysql_query("SELECT * FROM votes WHERE userid=$userid AND list='gs200'",$c); print "<h3>Vote For Us</h3> Vote for us at various RPG toplists and be rewarded. <table cellspacing='1' border='0' cellpadding='3' class='table' width='90%'> <tr background='tablehgrad.png'><th>Top List</th><th>Reward</th><th>Voted Today?</th><th>Cast Vote</th></tr> <tr><td><center>Stage 3 Top Games</td><td><center>10 Crystals</td><td>"; if(mysql_num_rows($s3)) { print "<font color='red'><center>Yes</font>"; } else { print"<center><font color='green'>No</font>"; } print "<td><center>Vote</td></tr> <tr><td><center>TBAB Top Games</td><td><center>$1,000</td><td>"; if(mysql_num_rows($tb)) { print "<font color='red'><center>Yes</font>"; } else { print"<center><font color='green'>No</font>"; } print "<td><center>Vote</td></tr> <tr><td><center>Game Sites 200</td><td><center>Energy Refill</td><td>"; if(mysql_num_rows($gs)) { print "<font color='red'><center>Yes</font>"; } else { print"<center><font color='green'>No</font>"; } print "<td><center>Vote</td></tr> </table>"; $h->endpage(); ?> Ithink it will work just replaced just include "globals.php"; Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted August 22, 2007 Share Posted August 22, 2007 Re: [mccode] voting Pimped Out not bad man i like it Quote Link to comment Share on other sites More sharing options...
gurpreet Posted October 20, 2007 Share Posted October 20, 2007 Re: [mccode] voting Pimped Out mine looks exactly the same :S 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.