dotnetic Posted September 5, 2015 Posted September 5, 2015 I added a star rating system and a title field to the comments fieldtype. So a user on the frontend can use a nice star rating like on Google Play (done with a pure CSS solution inspired by Lea Verou). The rating in the backend is displayed as a number in a text field. You can download the module from https://jensmartsch.de/FieldtypeCommentsRating.zip I will add it to the modules directory when I have more time. After downloading extract it to your site/modules/FieldtypeCommentsRating directory. Then install the modules "FieldtypeCommentsRating" and "FieldtypeCommentsRatingAdmin" via ProcessWire -> Modules -> Page -> New. After that create two new fields "ratingTitle" and "rating" or use your own naming. Then add them to a template. To get it working on the frontend, copy the code of the file rating.php where you want the output to appear. After that add rating.css and FontAwesome (or your own icon-font) to your website. After that you can use the module. Have fun! 7
dotnetic Posted September 6, 2015 Author Posted September 6, 2015 I plan to get this module up on github and add it to the modules directoy. In the meantime use my instructions and download above. 2
Juergen Posted September 7, 2015 Posted September 7, 2015 Thanks for your efforts. I have implemented it and it works quite well.
Juergen Posted September 16, 2015 Posted September 16, 2015 I have found an error: The voting system doesnt work because the field "field_commentsrating_votes" is not present. It seems that this field will not be produced during the installation. Only the standard field " field_comments_votes" from the standard comments without rating is present. SQLSTATE[42S02]: Base table or view not found: 1146 Table '7232549db11.field_commentsrating_votes' doesn't exist
dotnetic Posted July 26, 2016 Author Posted July 26, 2016 As rating is included in Comments Fieldtype in the core now I deleted the files.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now