Post Ratings - taking likes to the next level [Deleted]

For some reason, I'm unable to allow guests to view guest ratings lists. When logged in, it works perfectly. For Unregistered, Unconfirmed, I've set [Post Ratings] View rating lists: to allow.

Screen Shot 2015-04-07 at 12.06.19 PM.webp

Any suggestions?
 
That definitely shouldn't happen, can you PM me admin CP and FTP details to take a look?



Try reuploading the PHP files and make sure your config.php does not contain the disableListeners setting

If that doesn't help, can you PM me admin CP and FTP details?

Pretty sure you got a bug in the software. Looking back the last 3 pages everyone else is have the same problem as me. In the middle of the install each time it basically crashes, even on the uninstall. At first I thought it had something to do with my server but I contacted them and explained the errors I was getting and they said everything was fine on their end. When I get to work today I'll PM you my info.

I have the same problem. No listeners disabled and I checked that the files were uploaded correctly. More precisely, copied, because this is happening on my mac laptop with ampps. The addon appears installed though but I'm not sure if something's missing because of this error.

Edit: I can confirm now that the addon is not installed correctly.
 
For some reason, I'm unable to allow guests to view guest ratings lists. When logged in, it works perfectly. For Unregistered, Unconfirmed, I've set [Post Ratings] View rating lists: to allow.

View attachment 103275

Any suggestions?

Confirmed, seems to be a regression here, will get this sorted for 1.7.2

I have the same problem. No listeners disabled and I checked that the files were uploaded correctly. More precisely, copied, because this is happening on my mac laptop with ampps. The addon appears installed though but I'm not sure if something's missing because of this error.

Edit: I can confirm now that the addon is not installed correctly.

Ensure that library/Dark/PostRating/Model/Post.php contains the function 'getPagedPostsPR' on line 6.

If it does, either there is another addon conflicting (unlikely) or some aggressive opcode caching keeping the old version of the file.
If not, you have not uploaded/copied the latest files

Either way, if the addon is showing version 1.7.1 and you are able to run the Recount Ratings process in the Admin CP without further errors, then you have nothing to worry about.
 
Confirmed, seems to be a regression here, will get this sorted for 1.7.2



Ensure that library/Dark/PostRating/Model/Post.php contains the function 'getPagedPostsPR' on line 6.

If it does, either there is another addon conflicting (unlikely) or some aggressive opcode caching keeping the old version of the file.
If not, you have not uploaded/copied the latest files

Either way, if the addon is showing version 1.7.1 and you are able to run the Recount Ratings process in the Admin CP without further errors, then you have nothing to worry about.

Hello Luke,

The function is present on the Post.php file. I have other addons disabled (it's a test board), I'm not aware of any caching system. As I said, this is a test board on my laptop running AMPPS (a MAMP stack) and the files has been copied several times. I even upgraded XenForo to the latest version available to me which is 1.4.2 IIRC.

The addon is definitively not installed correctly. The phrases are not created and I don't see it active on my board. Any ideas?

Edit: I was able to finish the installation. An alert was waiting for me in the admin panel reminding me to finish the addon installation and it went through :) However, I think you should investigate that error, it shouldn't happen at all.
 
Last edited:
Hello Luke,

The function is present on the Post.php file. I have other addons disabled (it's a test board), I'm not aware of any caching system. As I said, this is a test board on my laptop running AMPPS (a MAMP stack) and the files has been copied several times. I even upgraded XenForo to the latest version available to me which is 1.4.2 IIRC.

The addon is definitively not installed correctly. The phrases are not created and I don't see it active on my board. Any ideas?

Edit: I was able to finish the installation. An alert was waiting for me in the admin panel reminding me to finish the addon installation and it went through :) However, I think you should investigate that error, it shouldn't happen at all.

The next update will change that part of the installation process so listeners aren't needed and so the error can't occur
 
@Luke Foreman, Is there a way to find how many ratings were received by a member in a month?

For example: How many 'informative' post ratings a member received in a month. This can help me run monthly contests.

Thanks in advance.
 
I'm trying to display an icon to users who have over a certain amount of ratings. Using the following in message_user_info template

Code:
{xen:if "{xen:number $postrating_ratings_total.positive} > 4999", '<i class="fa fa-star two"></i>'}

That's not working though. Is something like this possible?
 
Last edited:
@Luke Foreman is there any chance of getting these suggestions included:
  • A solution to display a large number of rating icons. We have about 50 rating reasons which would translate to 50 icons at the bottom of each post.
  • Weighting of post ratings. i.e. attribute points to each rating type.
  • A rating type that will allow the user to type in a comment.
  • Font-Awesome icons
 
Last edited:
Has the option for users to rate their own content been added? I've searched and saw a post from 2013 saying it may be added back in - I'm currently using 1.6.5

TIA,

Regs.
 
Bit of a hack but to get Font Awesome working on my site, in all the templates calling for the rating image, I've replaced...

Code:
<img src="styles/dark/ratings/{$rating.name}" alt="{$rating.title}" />

With...

Code:
<i class="fa {$rating.name}"></i>

Then you just set the rating image name to be the font awesome code eg: fa-check

So the code that gets loaded on your page is...

Code:
<i class="fa fa-check"></i>
 
It would be really nice if the "no notifications" Bug could be fixed in the next couple of days (or maybe you can give us a hint what we have to change in the files). My members are really complaining about it.
 
@Luke Foreman, Is there a way to find how many ratings were received by a member in a month?

For example: How many 'informative' post ratings a member received in a month. This can help me run monthly contests.

Thanks in advance.

You can do this with a mysql query, e.g.:

Code:
select username, count(*) as num_ratings from dark_postrating left join xf_user on xf_user.user_id = rated_user_id where rating=2 and date > unix_timestamp()-60*60*24*30 group by rated_user_id order by num_ratings desc limit 100

Where '2' is the ID of the rating you are interested in


I'm trying to display an icon to users who have over a certain amount of ratings. Using the following in message_user_info template

Code:
{xen:if "{xen:number $postrating_ratings_total.positive} > 4999", '<i class="fa fa-star two"></i>'}

That's not working though. Is something like this possible?

You would have to add that to the template dark_postrating_message_user_info, as the necessary variable is not available in the parent template message_user_info

Has the option for users to rate their own content been added? I've searched and saw a post from 2013 saying it may be added back in - I'm currently using 1.6.5

TIA,

Regs.

Unfortunately this has not been added

It would be really nice if the "no notifications" Bug could be fixed in the next couple of days (or maybe you can give us a hint what we have to change in the files). My members are really complaining about it.

In library/Dark/PostRating/Model/Alert.php replace dark_postrating_news_integration with dark_postrating_alerts_integration
 
Hey I got an error when installing Fatal error: Call to undefined method XenForo_Model_Post::getPagedPostsPR() in /home/exemption/public_html/library/Dark/PostRating/Deferred/PostCache.php on line 18
 
Hi Is there any way to stop displaying user ratings for Admins or such user groups?
I mean like no use ratings on their profile and no user rating icons to click on their posts. In simple they can give rating to others but others can't give them.
 
Does all ratings marked as positive ranking count for a user trophy (Get 25 positive ratings)?

I have one user with enough positive ratings but he will not get that trophy.

Any wrong setting on my side? Or does only the original "Like"-ratings count for trophies?
 
Luke Foreman updated Post Ratings - taking likes to the next level with a new update entry:

Version 1.7.2

Please expand post to view the update instructions.


Changelog:

1.7.2 (01/05/2015):

  • Added workaround for ‘getPagedPostsPR’ error on installation
  • Fixed ‘view rating lists’ permission being forced to deny for guests
  • Moved permissions to their own category and improved clarity of ‘delete ratings’ permission title. (Note you do not need to...

Read the rest of this update entry...
 
Top Bottom