Content Ratings

Content Ratings [Paid] 2.8.1

No permission to buy ($35.00)
Error with the last update:

ParseError: syntax error, unexpected token "\" in src/addons/SV/ContentRatings/Job/UserGivenRatingCount.php at line 72
  1. Composer\Autoload\{closure}() in src/vendor/composer/ClassLoader.php at line 427
  2. Composer\Autoload\ClassLoader->loadClass()
  3. class_exists() in src/XF/Container.php at line 266
  4. XF\Container->createObject() in src/XF/App.php at line 1930
  5. XF\App->XF\{closure}() in src/XF/Container.php at line 233
  6. XF\Container->create() in src/XF/App.php at line 3458
  7. XF\App->job() in src/XF/Job/Atomic.php at line 97
  8. XF\Job\Atomic->getFirstJob() in src/XF/Job/Atomic.php at line 25
  9. XF\Job\Atomic->run() in src/XF/Job/Manager.php at line 275
  10. XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line 205
  11. XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 89
  12. XF\Job\Manager->runQueue() in src/XF/Admin/Controller/ToolsController.php at line 165
  13. XF\Admin\Controller\ToolsController->actionRunJob() in src/XF/Mvc/Dispatcher.php at line 362
  14. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
  15. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
  16. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
  17. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
  18. XF\App->run() in src/XF.php at line 806
  19. XF::runApp() in admin.php at line 15


ParseError: syntax error, unexpected token "\"
src/addons/SV/ContentRatings/Job/UserGivenRatingCount.php:72
 
Last edited:
Xon I've been struggling with trying to extend to a custom content type. Looking through your old posts it looks like you intended to eventually make this straightforward and document it, however I'm having trouble finding any info on it. Could you help point me in the right direction?

I've added the reaction_score, reactions, and reaction_users columns to my table and entity, I've registered the content type's entity and reaction_handler_class, and created actionReact and actionReactions methods in my custom controller. Beyond that, I'm not sure how to proceed.
 
Cool. I got this to work by examining the reports addon you suggested, however my reaction bar is not giving me the moderator delete options and I'm not sure why.
 
Cool. I got this to work by examining the reports addon you suggested, however my reaction bar is not giving me the moderator delete options and I'm not sure why.
Removing reactions by others requires the general.removeOtherReactions permission. You can add your own permission by overriding/implementing canRemoveOthersReaction method instead of the default implementation from the Ratable trait.
 
Thanks Xon! I'll try to make a post about the steps I took once I'm sure everything is working.

Last question: What do I need to add to make sure users receive alerts when their content has received a reaction?
 
Back
Top Bottom