What's new
[XB] Thread Ratings

[XB] Thread Ratings [Paid] 2.1.1 Patch Level 3

You must log in or register to purchase ($25.00)
Painbaker updated [XB] Thread Ratings with a new update entry:

2.1.0

✨ New Features:​

  • Allow to leave a review message to users with permission to rate threads without replying.
  • Added spam checker support for review messages.
  • Added ACP batch actions for thread ratings: delete, make anonymous, and make non-anonymous.
  • Added a member profile tab for thread ratings.
  • Added inline moderation tool support.
  • Added "Most thread ratings given" member statistic.
  • Added thread ratings counter displaying in member profiles (can...

Read the rest of this update entry...
 
Thanks for the update.
I edited the first post of a thread to rate it. I set it to 5 stars and hit the Save button.
Got this server error:
Oops! We ran into some problems.
LogicException: Attempted to set 'ozzmodz_trp_rating_split' while a save was pending without forceSet in src/XF/Mvc/Entity/Entity.php at line 645
  1. XF\Mvc\Entity\Entity->set() in src/XF/Mvc/Entity/Entity.php at line 618
  2. XF\Mvc\Entity\Entity->__set() in src/addons/OzzModz/ThreadRatingPosts/XF/Entity/Thread.php at line 267
  3. OzzModz\ThreadRatingPosts\XF\Entity\Thread->rebuildPostRating() in src/addons/OzzModz/ThreadRatingPosts/XF/Entity/Thread.php at line 232
  4. OzzModz\ThreadRatingPosts\XF\Entity\Thread->rebuildPostRatingCounters() in src/addons/OzzModz/ThreadRatingPosts/Entity/ThreadRating.php at line 157
  5. OzzModz\ThreadRatingPosts\Entity\ThreadRating->_postSave() in src/XF/Mvc/Entity/Entity.php at line 1330
  6. XF\Mvc\Entity\Entity->save() in src/XF/Mvc/Entity/Entity.php at line 1324
  7. XF\Mvc\Entity\Entity->save() in src/XF/Service/Post/EditorService.php at line 201
  8. XF\Service\Post\EditorService->_save() in src/addons/TickTackk/ChangeContentOwner/Service/Content/EditorTrait.php at line 120
  9. TickTackk\ChangeContentOwner\XF\Service\Post\Editor->_save() in src/XF/Service/ValidateAndSavableTrait.php at line 42
  10. XF\Service\Post\EditorService->save() in src/XF/Pub/Controller/PostController.php at line 173
  11. XF\Pub\Controller\PostController->actionEdit() in src/addons/M2N/Locations/XF/Pub/Controller/PostController.php at line 14
  12. M2N\Locations\XF\Pub\Controller\PostController->actionEdit() in src/addons/SV/CustomFieldExtras/XF/Pub/Controller/Post.php at line 17
  13. SV\CustomFieldExtras\XF\Pub\Controller\Post->actionEdit() in src/addons/TickTackk/ChangeContentOwner/XF/Pub/Controller/Post.php at line 66
  14. TickTackk\ChangeContentOwner\XF\Pub\Controller\Post->actionEdit() in src/XF/Mvc/Dispatcher.php at line 362
  15. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
  16. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
  17. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
  18. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2824
  19. XF\App->run() in src/XF.php at line 814
  20. XF::runApp() in index.php at line 23
 
@Painbaker I'm using this for dealer reviews at mgevs.com.
The structured data I'm using is
{
"@context": "https://schema.org",
"@type": "AutoDealer",
"name": "{threadTitle}",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "{ratingValue}",
"bestRating": "5",
"worstRating": "1",
"ratingCount": "{ratingCount}"
}
}
I'd like to add "url": "{threadUrl}". Could it be possible to add that as an available variable please?
With the URL, I think the structured data will be more useful and maybe more flexible for other data types.
 
Last edited:
@Painbaker I've found a bug. When a user rates without a message, the "New Ratings" widget incorrectly redirects to https://xxx.com/posts/ and it should redirect to the first post.


Could you add the average rating submitted by the user to their member profile? This would be very useful for identifying users who are just trying to annoy by giving everything a 1-star rating.

Could you add the percentage rating box below the total rating when using the "Total thread post rating stars position in first message" block and not the "status block"?

Thx!!
 
Last edited:
@Painbaker I've noticed that when a thread is rated using the /rate link, the comment isn't inserted into the thread; it only appears when clicking on the ratings. Is this how it's supposed to work? Shouldn't the message also be published?

1775849687523.webp
 
Last edited:
Could you add the average rating submitted by the user to their member profile? This would be very useful for identifying users who are just trying to annoy by giving everything a 1-star rating.

Could you add the percentage rating box below the total rating when using the "Total thread post rating stars position in first message" block and not the "status block"?
will take a look into this

@Painbaker I've noticed that when a thread is rated using the /rate link, the comment isn't inserted into the thread; it only appears when clicking on the ratings. Is this how it's supposed to work? Shouldn't the message also be published?

View attachment 4029
No, that's how “rate without replying” supposed to work
 
will take a look into this


No, that's how “rate without replying” supposed to work

I have some cases where a user rates a thread without posting a reply, but then days or weeks later they respond to the post using the quick reply option. Is there a way to combine the rating they posted one day with their subsequent reply to the thread, keeping the most recent date for both? Thx!!
 
Painbaker updated [XB] Thread Ratings with a new update entry:

2.1.1

✨ New Features​

  • Added an option to link the user’s last associated thread rating to a new post when replying in a thread.
  • Added a rebuild tool to associate unlinked thread ratings with the latest post by the same user in the same thread.
  • Added a new style property option to display the thread rating statistics block below the first post rating stars.
  • Added a style property to disable rating stars in the thread list.

🔨...​


Read the rest of this update entry...
 
I have some cases where a user rates a thread without posting a reply, but then days or weeks later they respond to the post using the quick reply option. Is there a way to combine the rating they posted one day with their subsequent reply to the thread, keeping the most recent date for both? Thx!!
I added this option and a rebuild tool for old ratings
 
I get this error if I try to use the new rebuild option:

InvalidArgumentException: Attempted to convert object to integer [post_id] in src/XF/Mvc/Entity/Entity.php at line 814
  1. XF\Mvc\Entity\Entity->_castValueToType() in src/XF/Mvc/Entity/Entity.php at line 688
  2. XF\Mvc\Entity\Entity->set() in src/XF/Mvc/Entity/Entity.php at line 618
  3. XF\Mvc\Entity\Entity->__set() in src/addons/OzzModz/ThreadRatingPosts/Job/PostThreadRatingAssociate.php at line 59
  4. OzzModz\ThreadRatingPosts\Job\PostThreadRatingAssociate->rebuildById() in src/XF/Job/AbstractRebuildJob.php at line 65
  5. XF\Job\AbstractRebuildJob->run() in src/XF/Job/Manager.php at line 275
  6. XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line 205
  7. XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 121
  8. XF\Job\Manager->runByIds() in src/XF/Admin/Controller/ToolsController.php at line 146
  9. XF\Admin\Controller\ToolsController->actionRunJob() in src/XF/Mvc/Dispatcher.php at line 362
  10. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
  11. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
  12. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
  13. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2824
  14. XF\App->run() in src/XF.php at line 814
  15. XF::runApp() in admin.php at line 15


Also the rebuild phrase is missing: [XB] Thread Ratings: ozzmodz_trp_associate_thread_ratings_with_posts
 
Back
Top