Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 28 Nov 2001, 20:35
pgowder's Avatar
pgowder pgowder is offline
Join Date: Nov 2001
Real name: Paul
Ratings Script

I need some help on a project.

I'm developing an event script for my site. I want to let the users rate each event.

I need to first make sure the users is logged in, then let them rate it, and make sure they only rate it once.

Also how do people display the ratings in stars?

Does anybody have some samples of rating scripts that I can use to get me started?

Reply With Quote
Old 29 Nov 2001, 11:23
Palmer ofShinra's Avatar
Palmer ofShinra Palmer ofShinra is offline
Join Date: Oct 2001
$bbuserinfo is the key.

if ($bbuserinfo[userid]==0) {
// not logged in message goes here
} else {
// they are logged in, check to see if they've voted

You would use $DB_Site->query_first("SELECT * FROM eventratings WHERE userid='$bbuserinfo[userid]'");

If that returns an empty array, they haven't voted.

When they do vote, be sure to note down their userid as a check that they have voted.
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 04:05.

Layout Options | Width: Wide Color: