PHP Classes

AJAX Star Rating : Rate content and update star ratings using AJAX

Recommend this page to a friend!
  Info   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum (5)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 52%Total: 7,502 All time: 248 This week: 202Up
Version License PHP version Categories
rating 1.0.0The PHP License5.1.4PHP 5, Content management, AJAX
Description Author

It displays the current content rating level by the number of starts from 1 to 5.
An user can submit his own rating by clicking on the respective star.
When a new rating is submitted, an AJAX request is triggered to send the user rating.
The AJAX request response is used to display the updated star rating level.

Picture of Sudhir Chauhan
Name: Sudhir Chauhan <contact>
Classes: 5 packages by
Country: India India
Age: 43
All time rank: 17610 in India India
Week rank: 587 Down35 in India India Down

Details
TODO: need to store posted comments in database. 1)update database schema 2)add database creadentions in the RatingManager.inc.php 3)Since this is user id based create $_SESSION['USERID'] = 'sudhir'; session variable and remove the hardcoded variable form ratingmanager.inc.php
  Files folder image Files  
File Role Description
Accessible without login Plain text file index.php Example Index file used to create stars
Accessible without login Plain text file js.js Data Ajax code
Plain text file RatingManager.inc.php Class containg database wrapper class & rating class
Accessible without login Plain text file readme.txt Data Contain database script
Accessible without login Plain text file rpc.php Aux. RPC file called by ajax code
Accessible without login Image file s.gif Icon Image that will be used to create stars
Accessible without login Plain text file stars.css Data CSS file used to create stars
Accessible without login Plain text file db.sql Conf. sql file

 Version Control Unique User Downloads Download Rankings  
 0%
Total:7,502
This week:0
All time:248
This week:202Up
User Ratings User Comments (2)
 All time
Utility:75%StarStarStarStar
Consistency:76%StarStarStarStar
Documentation:-
Examples:70%StarStarStarStar
Tests:-
Videos:-
Overall:52%StarStarStar
Rank:2188
 
thanks.
10 years ago (sok song)
67%StarStarStarStar
great
14 years ago (girish pathak)
35%StarStar