Dillion & Amanda 4 Lif Posted June 4, 2010 Posted June 4, 2010 Ok so here it is. I believe i saw a rating modification on MWG before, and it lacked a few things. So here, from scratch, is my rating mod requested by Maniak. SQL [mysql] ALTER TABLE `users` ADD `ratings` INT( 11 ) NOT NULL -- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 04, 2010 at 02:56 PM -- Server version: 5.1.41 -- PHP Version: 5.3.1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `v2` -- -- -------------------------------------------------------- -- -- Table structure for table `ratings` -- CREATE TABLE IF NOT EXISTS `ratings` ( `ratedID` int(11) NOT NULL, `raterID` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `ratings` -- INSERT INTO `ratings` (`ratedID`, `raterID`) VALUES (1, 1); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; [/mysql] Cron You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. rate.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And i'm sure you know how to add links to the viewuser. If not i can help you. Thanks, Solid Snake. ;) Quote
AlabamaHit Posted June 4, 2010 Posted June 4, 2010 Ok, this might make me look like an idiot.. but shouldn't You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Be You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I don't think it works right with == Quote
Dillion & Amanda 4 Lif Posted June 4, 2010 Author Posted June 4, 2010 Works fine on my part. :) Quote
Djkanna Posted June 4, 2010 Posted June 4, 2010 == (equals too) = (assigns) So you're are correct AH Quote
Dillion & Amanda 4 Lif Posted June 4, 2010 Author Posted June 4, 2010 Is it really that big of a deal? It works anyway. Quote
AlabamaHit Posted June 4, 2010 Posted June 4, 2010 Just trying to help out SolidSnake.. I didn't mean to offend. That isn't what I was trying to do. I appoligize if it came across like that. Quote
Djkanna Posted June 4, 2010 Posted June 4, 2010 Well it is a big deal yes.. You've got to learn to do it right :P (by you've I do mean all of us not just you.) Quote
sniko Posted June 4, 2010 Posted June 4, 2010 Its a cool modification indeed, How about truncate raitings ? otherwise, Good job Quote
Dillion & Amanda 4 Lif Posted June 4, 2010 Author Posted June 4, 2010 Ahh thanks for reminding me sniko. It was originally part of the mod but i forgot. Will add in a sec EDIT: Cron is now located under the sql above the rate.php :) Quote
Dillion & Amanda 4 Lif Posted June 4, 2010 Author Posted June 4, 2010 Is anyone going to use it? Quote
bladewolf2010 Posted June 5, 2010 Posted June 5, 2010 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Dillion & Amanda 4 Lif Posted June 5, 2010 Author Posted June 5, 2010 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Take out the '/' before globals.php in require_once('/globals.php') if your in the root directory and itll work :) Quote
Jordan Palmer Posted June 5, 2010 Posted June 5, 2010 he's renamed Globals.. @Solid - I won't be using but blah, Good work Quote
Zero-Affect Posted June 5, 2010 Posted June 5, 2010 Ah i don't use a rating system on CrimGame but looks good solidsnake Quote
AlabamaHit Posted June 6, 2010 Posted June 6, 2010 lol, there is no need to bump a post...... If someone wants it. They will search for it. If they like it they will post... If your looking for attention, you are on the wrong site. 90% of users here, don't ever post when they use your mod. So if your looking for stuff like that. I'm sorry to break the bad news to you. Quote
Dillion & Amanda 4 Lif Posted June 6, 2010 Author Posted June 6, 2010 I've heard most of the people here dont even use the search function, or they wouldnt be asking for mods that exist, they'd find them Quote
NarutoPRG.com Posted June 6, 2010 Posted June 6, 2010 OK,. 1: Seriously no need to bump. Wait for people to reply. 2: People will use/won't-use this mod, and not even post. 3: FREE MOD! Hello.. @ CG - Aww, I wanted to see a rating system on CG. Lol. :) Quote
Zero-Affect Posted June 6, 2010 Posted June 6, 2010 People don't use the search function true but if everyone bumped up their posts no one would see half of them so... if they don't use your mod then it's their loss. Rasheed Saeed no point in doing a rating system really... besides the karma system on the forum (Dayo's). Quote
NarutoPRG.com Posted June 6, 2010 Posted June 6, 2010 Personal Crimgame, in my point of view, it gives some people a tip that you are liked. And that if your new, they would be friendly to you.. Well just my opinion. :) Ill have a look now bud. :) Quote
VitalEnd Posted July 2, 2010 Posted July 2, 2010 Really noob thing to say here but whats the link for rating a user up ? I cant for the life of me figure it out lol 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.