What's new
[XB] Thread Ratings

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

You must log in or register to purchase ($25.00)
@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
 
Thx! It seems everything is working now!

How could I add a task to run it automatically once a day, for example?

OzzModz\ThreadRatingPosts\Job\PostThreadRatingAssociate ?? And what methodName?
 
Does the average rating take into account ratings without a reply on the thread? Yesterday my average was 3.9, I rated several posts with 5 stars without replying to the thread and the average rating is still 3.9.
 
Does the average rating take into account ratings without a reply on the thread? Yesterday my average was 3.9, I rated several posts with 5 stars without replying to the thread and the average rating is still 3.9.
Should be fixed in last patch

Thx! It seems everything is working now!

How could I add a task to run it automatically once a day, for example?

OzzModz\ThreadRatingPosts\Job\PostThreadRatingAssociate ?? And what methodName?
there's no need for that if you enable the option "Link unassociated thread rating on reply"
 
Back
Top