Content Ratings

Content Ratings [Paid] 2.7.4

No permission to buy ($35.00)
I just want to try doing a test upgrade. How do I manually rebuild the cache?
React/unreact each post. There isn't a built-in way to rebuild these caches.

Also, it appears that this add-on causes Showcase comment likes to stop working. Here is the server error:
Code:
Server error log
[LIST]
[*]Error: Call to undefined method XenAddons\Showcase\Entity\Item::deltaRatingFixup()
[*]src/addons/SV/ContentRatings/Service/Rating/DeltaCounter.php:589
[*]Generated by: CarpCharacin
[*]Nov 29, 2018 at 2:37 PM
[/LIST]
Stack trace
#0 src/addons/SV/ContentRatings/Service/Rating/DeltaCounter.php(507): SV\ContentRatings\Service\Rating\DeltaCounter->processEntityFixups()
#1 src/addons/SV/ContentRatings/Service/Rating/DeltaCounter.php(361): SV\ContentRatings\Service\Rating\DeltaCounter->applyItemChanges(24, Array, Array)
#2 src/addons/SV/ContentRatings/Service/Rating/DeltaCounter.php(339): SV\ContentRatings\Service\Rating\DeltaCounter->processItems(Array, Array)
#3 src/addons/SV/ContentRatings/Service/Rating/DeltaCounter.php(259): SV\ContentRatings\Service\Rating\DeltaCounter->updateContent()
#4 src/addons/SV/ContentRatings/XF/Entity/LikedContent.php(269): SV\ContentRatings\Service\Rating\DeltaCounter->process()
#5 src/XF/Entity/LikedContent.php(105): SV\ContentRatings\XF\Entity\LikedContent->rebuildContentLikeCache()
#6 src/addons/SV/ContentRatings/XF/Entity/LikedContent.php(174): XF\Entity\LikedContent->_postSave()
#7 src/XF/Mvc/Entity/Entity.php(1159): SV\ContentRatings\XF\Entity\LikedContent->_postSave()
#8 src/XF/Repository/LikedContent.php(94): XF\Mvc\Entity\Entity->save()
#9 src/addons/SV/ContentRatings/XF/Repository/LikedContent.php(32): XF\Repository\LikedContent->insertLike('sc_comment', 24, Object(SV\WarningImprovements\XF\Entity\User), true)
#10 src/XF/Repository/LikedContent.php(63): SV\ContentRatings\XF\Repository\LikedContent->insertLike('sc_comment', 24, Object(SV\WarningImprovements\XF\Entity\User), true)
#11 src/XF/ControllerPlugin/Like.php(28): XF\Repository\LikedContent->toggleLike('sc_comment', 24, Object(SV\WarningImprovements\XF\Entity\User))
#12 src/addons/SV/ContentRatings/XF/ControllerPlugin/Like.php(67): XF\ControllerPlugin\Like->actionToggleLike(Object(XenAddons\Showcase\Entity\Comment), '/showcase/comme...', '/showcase/comme...', '/showcase/comme...', NULL)
#13 src/addons/XenAddons/Showcase/Pub/Controller/Comment.php(290): SV\ContentRatings\XF\ControllerPlugin\Like->actionToggleLike(Object(XenAddons\Showcase\Entity\Comment), '/showcase/comme...', '/showcase/comme...', '/showcase/comme...')
#14 src/XF/Mvc/Dispatcher.php(249): XenAddons\Showcase\Pub\Controller\Comment->actionLike(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XenAddons\\Showc...', 'Like', 'json', Object(XF\Mvc\ParameterBag), 'xa_showcase', Object(XenAddons\Showcase\Pub\Controller\Comment), NULL)
#16 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#17 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#18 src/XF.php(329): XF\App->run()
#19 index.php(13): XF::runApp('XF\\Pub\\App')
#20 {main}
Request state
array(4) {
["url"] => string(26) "/showcase/comments/24/like"
["referrer"] => string(76) "https://www.utahfishkeepers.us/showcase/downstairs-bottom-40-gallon-tank.20/"
["_GET"] => array(1) {
["/showcase/comments/24/like"] => string(0) ""
}
["_POST"] => array(4) {
["_xfRequestUri"] => string(46) "/showcase/downstairs-bottom-40-gallon-tank.20/"
["_xfWithData"] => string(1) "1"
["_xfToken"] => string(8) "****"
["_xfResponseType"] => string(4) "json"
}
}
Ugh, looks like another bug where it doesn't interop with unextended content properly.
 
React/unreact each post. There isn't a built-in way to rebuild these caches.
That isn't exactly a practical solution with thousands of reactions, and what's the point of having the data saved if every post has to be re-reacted anyway?
 
That isn't exactly a practical solution with thousands of reactions, and what's the point of having the data saved if every post has to be re-reacted anyway?
Because I'm planning writing an importer for it? And just haven't had the time?
 
Also, it appears that this add-on causes Showcase comment likes to stop working. Here is the server error:
Code:
Server error log
[LIST]
[*]Error: Call to undefined method XenAddons\Showcase\Entity\Item::deltaRatingFixup()
[*]src/addons/SV/ContentRatings/Service/Rating/DeltaCounter.php:589
[*]Generated by: CarpCharacin
[*]Nov 29, 2018 at 2:37 PM
[/LIST]
Stack trace
#0 src/addons/SV/ContentRatings/Service/Rating/DeltaCounter.php(507): SV\ContentRatings\Service\Rating\DeltaCounter->processEntityFixups()
#1 src/addons/SV/ContentRatings/Service/Rating/DeltaCounter.php(361): SV\ContentRatings\Service\Rating\DeltaCounter->applyItemChanges(24, Array, Array)
#2 src/addons/SV/ContentRatings/Service/Rating/DeltaCounter.php(339): SV\ContentRatings\Service\Rating\DeltaCounter->processItems(Array, Array)
#3 src/addons/SV/ContentRatings/Service/Rating/DeltaCounter.php(259): SV\ContentRatings\Service\Rating\DeltaCounter->updateContent()
#4 src/addons/SV/ContentRatings/XF/Entity/LikedContent.php(269): SV\ContentRatings\Service\Rating\DeltaCounter->process()
#5 src/XF/Entity/LikedContent.php(105): SV\ContentRatings\XF\Entity\LikedContent->rebuildContentLikeCache()
#6 src/addons/SV/ContentRatings/XF/Entity/LikedContent.php(174): XF\Entity\LikedContent->_postSave()
#7 src/XF/Mvc/Entity/Entity.php(1159): SV\ContentRatings\XF\Entity\LikedContent->_postSave()
#8 src/XF/Repository/LikedContent.php(94): XF\Mvc\Entity\Entity->save()
#9 src/addons/SV/ContentRatings/XF/Repository/LikedContent.php(32): XF\Repository\LikedContent->insertLike('sc_comment', 24, Object(SV\WarningImprovements\XF\Entity\User), true)
#10 src/XF/Repository/LikedContent.php(63): SV\ContentRatings\XF\Repository\LikedContent->insertLike('sc_comment', 24, Object(SV\WarningImprovements\XF\Entity\User), true)
#11 src/XF/ControllerPlugin/Like.php(28): XF\Repository\LikedContent->toggleLike('sc_comment', 24, Object(SV\WarningImprovements\XF\Entity\User))
#12 src/addons/SV/ContentRatings/XF/ControllerPlugin/Like.php(67): XF\ControllerPlugin\Like->actionToggleLike(Object(XenAddons\Showcase\Entity\Comment), '/showcase/comme...', '/showcase/comme...', '/showcase/comme...', NULL)
#13 src/addons/XenAddons/Showcase/Pub/Controller/Comment.php(290): SV\ContentRatings\XF\ControllerPlugin\Like->actionToggleLike(Object(XenAddons\Showcase\Entity\Comment), '/showcase/comme...', '/showcase/comme...', '/showcase/comme...')
#14 src/XF/Mvc/Dispatcher.php(249): XenAddons\Showcase\Pub\Controller\Comment->actionLike(Object(XF\Mvc\ParameterBag))
#15 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XenAddons\\Showc...', 'Like', 'json', Object(XF\Mvc\ParameterBag), 'xa_showcase', Object(XenAddons\Showcase\Pub\Controller\Comment), NULL)
#16 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#17 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#18 src/XF.php(329): XF\App->run()
#19 index.php(13): XF::runApp('XF\\Pub\\App')
#20 {main}
Request state
array(4) {
["url"] => string(26) "/showcase/comments/24/like"
["referrer"] => string(76) "https://www.utahfishkeepers.us/showcase/downstairs-bottom-40-gallon-tank.20/"
["_GET"] => array(1) {
["/showcase/comments/24/like"] => string(0) ""
}
["_POST"] => array(4) {
["_xfRequestUri"] => string(46) "/showcase/downstairs-bottom-40-gallon-tank.20/"
["_xfWithData"] => string(1) "1"
["_xfToken"] => string(8) "****"
["_xfResponseType"] => string(4) "json"
}
}
1.3.10 (Beta) should fix this. 1.2.5 actually has this bug, but I haven't yet back-ported the fix.
 
Pretty sure I need this one for my site, but this is the thing: I'm just not all that adept at things like this, most especially when one starts talking about things like CSS. I'm a good writer, but code is a lot like math for me. Doesn't seem to 'stick'. How easy will it be for me to choose different images than the defaults? Facebookishness is well and good, but I want to give my forums a bit of flair (read: make the place even weirder!). I don't know how to use sprite sheets and don't really understand that concept, either.
 
Pretty sure I need this one for my site, but this is the thing: I'm just not all that adept at things like this, most especially when one starts talking about things like CSS. I'm a good writer, but code is a lot like math for me. Doesn't seem to 'stick'. How easy will it be for me to choose different images than the defaults? Facebookishness is well and good, but I want to give my forums a bit of flair (read: make the place even weirder!). I don't know how to use sprite sheets and don't really understand that concept, either.

It's pretty easy and you'll get help on here (and @Xon's support is also great).

The only issue is that Reactions will now be part of XF going forward so this addon might become redundant.
 
  • Like
Reactions: Xon
The only issue is that Reactions will now be part of XF going forward so this addon might become redundant.

Not really, this addon has features that the core rating system lacks, so this will only enhance the core system once it is updated.
 
  • Like
Reactions: Xon
Not really, this addon has features that the core rating system lacks, so this will only enhance the core system once it is updated.

Yep, Xon's already said that he'd likely change this addon to extend the core stuff to feature-match what we have now. Whether those extra features are things that they need are probably worth assessing before deciding if to just stick with the core stuff.
 
This also is a potentially stupid question. I went immediately to XF2, and I am on PHP7. I presume if I was actually on XF2.1, I would know that, right? Is there a place to look? (Stop laughin' at me. Tajhay! :-D)
 
This also is a potentially stupid question. I went immediately to XF2, and I am on PHP7. I presume if I was actually on XF2.1, I would know that, right? Is there a place to look? (Stop laughin' at me. Tajhay! :-D)
PM me your website. ill tell you if you are on XF2.1 or not
 
I'll definitely be picking this add-on up. Just need to wiggle some money around since it asks for PayPal and doesn't give me a way to just use a normal credit card.
 
Pretty sure I need this one for my site, but this is the thing: I'm just not all that adept at things like this, most especially when one starts talking about things like CSS. I'm a good writer, but code is a lot like math for me. Doesn't seem to 'stick'. How easy will it be for me to choose different images than the defaults? Facebookishness is well and good, but I want to give my forums a bit of flair (read: make the place even weirder!). I don't know how to use sprite sheets and don't really understand that concept, either.
The easiest to use are emoji (with a built-in emoji search) or simple image links.
 
Top Bottom