Jump to content
MakeWebGames

Recommended Posts

Posted

Good rating:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Bad rating:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

  • 6 months later...
Posted

Another noob question :P This looks a good mod, but I'm having problems with the actual rating side of it on people profiles.

I want to incoporate these two symbols as the good and bad ratings, how do I do so?

add.png and delete.png

Thanks :D

Posted

Thanks :D Darn, I was close, I had done that, but in the wrong order :/ lol, it works fine now :D

save the plus as - plus.png

save the minus as - minus.png

Put this code where you think it goes best:

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Just for those who like me don't know ;) Thanks again sniko :) Great mod

Posted

I like it but

 

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. ;)

I must be missing something.... How would you get the ratings to show for the person being rated? "This user has x amount of good or bad ratings..... I got the whole thing to work fine but I must be missing the point if The ratings don't show somewhere what good are they? ?(
Posted
I must be missing something.... How would you get the ratings to show for the person being rated? "This user has x amount of good or bad ratings..... I got the whole thing to work fine but I must be missing the point if The ratings don't show somewhere what good are they? ?(

I assume you'd be adding to a profile? Wouldn't a db recall be sufficient?

Rating: {$user['ratings']}

I haven't tried the code so I don't know if that's the correct place where the total ratings are stored, but a quick read suggests to me it is.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...