Eternal Posted December 12, 2008 Posted December 12, 2008 Hello i have seen mods out there about rating users and they only allowed them to rate 1 person per day :/ this allows a player to rate a few people once per day :D You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then create / replace rating.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. then in View User put You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Create Two images one rate up one rate down :P then in cron_day put You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. /// Thanx to karlos for listening to my mumbo jumbo crap xD Edit for alter users :: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Karlos Posted December 12, 2008 Posted December 12, 2008 Re: [mccode V2] Rate User['s] Oh well, atleast i helped you understand one of your errors, hope you find use for tho book marks aswell. +1 Quote
blue Posted December 12, 2008 Posted December 12, 2008 Re: [mccode V2] Rate User['s] You forgot the alter user table :mrgreen: Quote
Karlos Posted December 12, 2008 Posted December 12, 2008 Re: [mccode V2] Rate User['s] Try: SQL You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. rating.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. add to viewuser.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Use same cron Quote
blue Posted December 12, 2008 Posted December 12, 2008 Re: [mccode V2] Rate User['s] ALTER TABLE `users` ADD `goodratings` INT( 11 ) NOT NULL DEFAULT '0'; ALTER TABLE `users` ADD `badratings` INT( 11 ) NOT NULL DEFAULT '0'; Would that be it? Quote
Karlos Posted December 12, 2008 Posted December 12, 2008 Re: [mccode V2] Rate User['s] You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. He posted it, but i use only one SQL fielf to save room O.O Quote
Haunted Dawg Posted December 12, 2008 Posted December 12, 2008 Re: [mccode V2] Rate User['s] Karlos i gave you a +1 because you had 9 / 8. Now u got 10 / 7 Quote
Karlos Posted December 12, 2008 Posted December 12, 2008 Re: [mccode V2] Rate User['s] Thanks :-D Quote
castle Posted December 12, 2008 Posted December 12, 2008 Re: [mccode V2] Rate User['s] how would you display the total number of votes, and how would display it if the user was going negative? Quote
zbirc3 Posted December 12, 2008 Posted December 12, 2008 Re: [mccode V2] Rate User['s] it doesnt show the ratings on viewuser on either of the provided rating scripts. Quote
Eternal Posted December 13, 2008 Author Posted December 13, 2008 Re: [mccode V2] Rate User['s] it doesnt show the ratings on viewuser on either of the provided rating scripts. lmao for the script with two ratings You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. For karlos modified 1 rating You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Zero-Affect Posted December 14, 2008 Posted December 14, 2008 Re: [mccode V2] Rate User['s] wow, + 1 for everyone looks like a confusing yet good mod Quote
jds137 Posted December 18, 2008 Posted December 18, 2008 Re: [mccode V2] Rate User['s] In the mod, the count never goes up on a profile Quote
Karlos Posted December 18, 2008 Posted December 18, 2008 Re: [mccode V2] Rate User['s] Make sure you used the correct sql that matches the viewuser line.... Quote
Modern-Empires Posted December 21, 2008 Posted December 21, 2008 Re: [mccode V2] Rate User['s] i followed all the details and it never goes above +1 and -1 and never moved above or down please help, i tried looking throu the codes please help Quote
Modern-Empires Posted December 21, 2008 Posted December 21, 2008 Re: [mccode V2] Rate User['s] use thwe current SQL's Rating.php add this for it to go more than +1 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. Quote
redsnake420 Posted January 6, 2009 Posted January 6, 2009 Re: [mccode v2] Rate User['s] the first post makes it only show +1 and -1 nothing higher and use thwe current SQL's Rating.php add this for it to go more than +1 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. works but it rates them even when it says you have already rated this person and there is an error when trying to rate your self its a shame i really wanted this too work Quote
dj_rive Posted January 7, 2009 Posted January 7, 2009 Re: [mccode v2] Rate User['s] After you rate a user once, you can't rate anymore. It says you rated someone, but the count doesn't go up. Quote
John99 Posted January 8, 2009 Posted January 8, 2009 Re: [mccode v2] Rate User['s] Nice Mod!! thahacker07 +1 and for giving it to C.E members :) 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.