Yii Framework Forum: New extension: PcStarRank - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

New extension: PcStarRank Provides an 'all-included' widget for star-ranking content Rate Topic: -----

#1 User is offline   Boaz 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 367
  • Joined: 23-January 11

Posted 21 June 2012 - 03:05 AM

This extension/module provides an 'all included' star ranking system to rank content on your site. It is 'attachable' with relatively little effort to almost any content on your site (see details in extension's page given below for full specs/details).

Features:
  • Provides a plug & play style component that is 'attachable' to probably any content on your Yii site that has a separate DB table for it (or multiple tables). Using it, your content can be ranked by users who have permission to rank content.
  • Should support multiple rendered copies of it on the same page, for several rank-able content items (I didn't test it so far but designed it for this use case and highly likely that this works).
  • Automatically update the ranked record in its own DB table. This is useful for sorting records (e.g., "articles") based on their average rank.
  • Rate voting is allowed only once and once voted the UI becomes readonly (server side has its own decision making on this to prevent forging attempt from hampered client side).
  • All printed messages are translatable. Make sure to configure your i18n setup of Yii to have this in effect.

Notes:
  • This module uses internally Yii's built in CStarRating to render the actual rating UI but this UI can be replaced with whatever you prefer.
  • The code is not as clean as I'd want it to be. I struggled a lot with CStarRating UI options (and came non-victorious... Posted Image). See project page and plenty of inline comments in the code itself.

Please comment on the GitHub project page so we can keep track of feedback most effectively.


Extension page
Github project page
Therapeutic PHP sessions My LinkedIn Profile
1

#2 User is offline   beesho 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 21-September 12

Posted 13 February 2013 - 06:15 AM

Hello,
Thanks for this nice module.
I was trying the module but it is always giving me an alert that am not logged in, eventhough i am.
"Sorry - only registered, non-blocked users are allowed to rank content. Please register first. "
What would the problem be?
0

#3 User is offline   Boaz 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 367
  • Joined: 23-January 11

Posted 03 March 2013 - 07:01 AM

View Postbeesho, on 13 February 2013 - 06:15 AM, said:

Hello,
Thanks for this nice module.
I was trying the module but it is always giving me an alert that am not logged in, eventhough i am.
"Sorry - only registered, non-blocked users are allowed to rank content. Please register first. "
What would the problem be?



Hi,

First, for the record and for other people's sake, we've conducted a little private conversation on this. Not many details in it but still.
Now for business:
  • I cannot reproduce the problem you report. In my environment - a site that I develop and which I cannot release - everything works fine (in the reported aspects, at least).
  • Have you made sure to assign the testing user the RBAC permission of "star rank content" ? This is important and without it you'll get this error message.

Boaz.

Therapeutic PHP sessions My LinkedIn Profile
1

#4 User is offline   beesho 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 21-September 12

Posted 03 March 2013 - 12:42 PM

Hi Boaz,
Thank you very much!
The update you made recently to the extension solved it all!
I was just wondering if a user can update their vote? or they can only vote once and for all for a certain model id?
Am interested in allowing users to update their vote always.
Please let me know what is the supposed widget behaviour here.. just to make sure am on the safe side, and I will try to edit as desired then.
Once again, THANK YOU!!
0

#5 User is offline   Boaz 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 367
  • Joined: 23-January 11

Posted 03 March 2013 - 04:13 PM

Hi,
I'm happy that it works for you now.
No, the module does not support changing one's vote.
You can always fork the project on github and develop this. I'll be happy to review a pull request if you finish such a functionality and want to contribute it back (and I hope I'll have the time resources to do so...).

Good luck with it!
Boaz
Therapeutic PHP sessions My LinkedIn Profile
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users