Danny696 Posted December 26, 2009 Posted December 26, 2009 This is my version of a voting mod, you can add,edit and remove them. Easy install, if you need me to do it, i will for free. There are two tables, and two files. [mysql]CREATE TABLE IF NOT EXISTS `votes2` ( `Userid` int(11) NOT NULL DEFAULT '0', `Voted` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -- Dumping data for table `votes2` -- INSERT INTO `votes2` (`Userid`, `Voted`) VALUES (0, 1261612800); -- -------------------------------------------------------- -- -- Table structure for table `votelinks` -- CREATE TABLE IF NOT EXISTS `votelinks` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `Order` int(11) NOT NULL, `Pic` varchar(225) NOT NULL, `Link` varchar(225) NOT NULL, `Name` varchar(255) NOT NULL, `Reward_type` int(2) NOT NULL DEFAULT '1', `Reward_qty` int(3) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`), UNIQUE KEY `Order` (`Order`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ; -- -- Dumping data for table `votelinks` -- [/mysql] Theres your tables done, this next file is voting.php and the one after, is vote.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Thats all, Dont forget to remove the line in the day cron that reads: $db->query("TRUNCATE TABLE votes;"); Quote
bennybwoi Posted December 26, 2009 Posted December 26, 2009 Hey does it look different to normal voting???? got a screen shot? Quote
Danny696 Posted December 26, 2009 Author Posted December 26, 2009 There is a live demo on my game, Quote
Zero-Affect Posted December 29, 2009 Posted December 29, 2009 Danny nice mod with afew minor flaws You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. why? it's for even a predefined variable and it's 0 so why add the filter and not use it, You do need to research SprintF() seriously because if you keep looking at what people on here think it is you'll end up with code no one will touch. There is no point in filtering nothing... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and ironically you didn't use it where it would of went perfectly... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. please think about these things, and this is to everyone not just Danny. Quote
Danny696 Posted December 29, 2009 Author Posted December 29, 2009 Its an old code, when i would use sprintf too much. Quote
Zero-Affect Posted December 29, 2009 Posted December 29, 2009 Ah right, my bad sorry to bother you Quote
Monkey644 Posted December 29, 2009 Posted December 29, 2009 How do add them? Carn't find anywhere to add site... :S Quote
Danny696 Posted December 29, 2009 Author Posted December 29, 2009 I still havent doesn the staff panel, should i, And CrimGame, dont be sorry, some good points there ;) Quote
Monkey644 Posted December 29, 2009 Posted December 29, 2009 If you add them from the Staff panel Could we have the codes for that :) So i can add it fully into my game. Good little mod, been on you game and find it pretty cool. Quote
Danny696 Posted December 29, 2009 Author Posted December 29, 2009 You can do it via phpMyAdmin for now. Quote
bladewolf2010 Posted June 13, 2010 Posted June 13, 2010 what be the codes for the staff panel :P Quote
Zero-Affect Posted June 13, 2010 Posted June 13, 2010 You can do it via phpMyAdmin for now. I think that kind of explains it for you bladewolf Quote
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.