Forum Moderators: coopster

Message Too Old, No Replies

Rating System

How do I make a rating system.

         

Soa307

6:38 pm on Apr 29, 2006 (gmt 0)

10+ Year Member



Hopefully this is the right forum...

I have minimal experience in PhP, only working with php to use dynamic layouts. Anyway, I would like to integrate a rating system into my website...

I would pretty much need the know-how of making a login system and a rating system where you have to be logged in, in order to rate content, at which time that will be logged into... whatever it goes into and goes live onto the website.

Everyone has it, but how do you make it? Also would it be possibly to make it so your IP, or something (most secure) can only vote once? IF so... how?

Thank you ^.^

barns101

1:16 pm on Apr 30, 2006 (gmt 0)

10+ Year Member



I would store the voting details in a database (e.g. MySQL which comes with most hosting nowadays). Use an if statement with PHP to allow someone to vote if they are logged in, then simply store their vote, along with their IP address and maybe username, in your database. You can then pull out the results using PHP and display as appropriate.

Soa307

3:24 am on May 1, 2006 (gmt 0)

10+ Year Member



I dunno how to make a database

I dunno how to make a good if statement or even a login system LOL

jimbeetle

4:28 am on May 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Check out some of the script sites and search for [rating script], [review script] and the like, there are quite a few. If you don't find something that fits your specific needs you should be able to find something close enough to get you started.

Soa307

4:58 am on May 1, 2006 (gmt 0)

10+ Year Member



What's like... the best site? I have a script for random banners.. and it loads them up incorrectly I believe, making more stress on the server... so I really need a good site, or just a name of the site.

appliedi

7:04 am on May 1, 2006 (gmt 0)

10+ Year Member



Hey
If you have a all content site try migrating to joomla it has inbuilt rating and editorial rating modules

Adi.

[edited by: coopster at 11:04 am (utc) on May 1, 2006]
[edit reason] no personal urls please [/edit]

Moosetick

3:49 pm on May 1, 2006 (gmt 0)

10+ Year Member




I dunno how to make a database
I dunno how to make a good if statement or even a login system LOL

You have a lot of learning to do if you want to learn php. Php.net had several tutorials to get you started. Find a free php/mysql package on the web and download it to your PC and play with it for a few weeks.

jatar_k

5:10 pm on May 1, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



well you could look at our PHP Library [webmasterworld.com]

dynamic layouts
A dynamic site in 2 minutes [webmasterworld.com]

login system
PHP User Authentication and Passwords [webmasterworld.com]

other required reading
PHP Security [webmasterworld.com]

a rating system is simple enough to implement after that. The above will get you going on the rest.

znewhsam

10:03 am on May 2, 2006 (gmt 0)

10+ Year Member



i personaly prefer [w3schools.com,...] they have really good tutorials on the majority of web languages, including php and desribe, in brief the principle of setting up a database. Another good resource for a php login script is: [evolt.org...] its what i used to make mine, tho this one is a little complicated with some of its methods, it can easily be adapted

Soa307

4:15 pm on May 2, 2006 (gmt 0)

10+ Year Member



Well thank you for your help, and I do have quite a bit of learning to do. I have a dynamic site, but with the new "core" I want to add alot more to it, but there's only one way to learn it all... I better get cracking!