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

I'm getting this errors a lot (XF 1.4.1):

Code:
ErrorException: Fatal Error: Cannot redeclare class XFCP_Dark_PostRating_Model_Session - /var/www/valinor/web/forum/library/XenForo/Application.php(520) : eval()'d code:1
 
Hello,
I've an issue with user grop promotions. I'm using Post Ratings positive rating as a criteria. Criterias for user is set to at least 80 messages and at least 50 positive post ratings. But it doesn't work. I also have to mention that I had some errors from PR recently:
Code:
Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: Unknown column 'dark_postrating_1_count' in 'field list' - library/Zend/Db/Statement/Mysqli.php:77
Thanks for help.

- Check that the option for criteria integration is enabled
- Check that 'Like rating' is set to a valid rating (have you deleted the stock like rating for example?)
- Try running Recount Ratings

Failing all that, can you PM me admin CP details to take a closer look?

I would like all positive post ratings to count as like ratings. Is that possible

It seems you can only choose one "Like rating" from the dropdown in options.

Unfortunately that is not possible

Hmmm... it has something to do with the UI.X style that is hiding it because when I go back to default XenForo style it is there...

What am I missing?

Style Properties are separate per style, so you would need to go to Style Properties > Message Elements on your UI.X style to select post ratings as opposed to likes in the postbit

I'm getting this errors a lot (XF 1.4.1):

Code:
ErrorException: Fatal Error: Cannot redeclare class XFCP_Dark_PostRating_Model_Session - /var/www/valinor/web/forum/library/XenForo/Application.php(520) : eval()'d code:1

That's not an error I have seen before - does it still occur if you disable other addons?
 
Thanks for your reply @Luke Foreman! That was great.

One more question... I'm now using CTA Featured Threads and there is an option to automatically feature a post based on how many "Likes" it received. Is there a way to make all positive ratings count as "likes"? That is if people declare something a "winner" or other positive rating it would then be recorded as a XenForo "like"?

Or is this how it already works? Or is it impossible to work this way.
 
Thanks for your reply @Luke Foreman! That was great.

One more question... I'm now using CTA Featured Threads and there is an option to automatically feature a post based on how many "Likes" it received. Is there a way to make all positive ratings count as "likes"? That is if people declare something a "winner" or other positive rating it would then be recorded as a XenForo "like"?

Or is this how it already works? Or is it impossible to work this way.


I asked a similar thing above:

https://xenforo.com/community/threa...he-next-level-paid.28475/page-117#post-851974

The answer was no:

https://xenforo.com/community/threa...he-next-level-paid.28475/page-117#post-854553
 
That's not an error I have seen before - does it still occur if you disable other addons?

I had this error some dozen times over three ocasions in the same day but couldn't reproduce it by myself nor get this erros anymore since saturday. Let's wait some new ocurrence ok? :)
 
It's worth mentioning that if it's just the colour you want to change, just use the final color line.

You don't need to redeclare all of the other elements.
 
I usually just copy the whole thing over. not the best way to do it?



Glad I could help.
You copy the class names across but only redeclare the elements that you want to explicitly change. So in this case since you want to only change the colour, instead of having:

Code:
.dark_postrating_outputlist {
display: block;
margin-left: 3px;
float: left;
font-family: 'Trebuchet MS',Helvetica,Arial,sans-serif;
color: black !important;
}

You'd have:

Code:
.dark_postrating_outputlist {
color: black !important;
}
 
Last edited:
Unfortunately, I can't provide any real details for this issue, since I'm not 100% sure how it happened, I've tried to replicate it again, but I was able to rate a post on TAZ twice.b84f0b41865bda0686a250a0c041bf7d.webp

The post was this one: https://theadminzone.com/threads/xe...-stage-the-timeline.129706/page-2#post-936752

Just thought it was odd, and figured I'd point it out. Wish I could give you more details about how I did this, but sadly I'm not sure. I didn't realize I had already rated the post and it showed all the rating icons so I rated it again.
 
Hi Luke,

I bought this add-on a moment ago and installed it correctly but for some reason I can't see the icons in the post
Can you please show me how to add them?

Thank you.
 
Back
Top Bottom