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 51%Total: 7,521 This week: 1All time: 248 This week: 560Down
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: 45
All time rank: 17610 in India India
Week rank: 411 Down26 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,521
This week:1
All time:248
This week:560Down
User Ratings User Comments (2)
 All time
Utility:73%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:69%StarStarStarStar
Tests:-
Videos:-
Overall:51%StarStarStar
Rank:2511
 
thanks.
11 years ago (sok song)
67%StarStarStarStar
great
16 years ago (girish pathak)
35%StarStar