PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 51%Total: 7,523 All time: 248 This week: 60Up
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: 288 Down21 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 (8)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:7,523
This week:0
All time:248
This week:60Up
User Ratings User Comments (2)
 All time
Utility:73%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:69%StarStarStarStar
Tests:-
Videos:-
Overall:51%StarStarStar
Rank:2570
 
thanks.
12 years ago (sok song)
67%StarStarStarStar
great
16 years ago (girish pathak)
35%StarStar