[XTR] User Posts in Thread

Paid [XTR] User Posts in Thread 1.0.3

  • Fixed: Resolved a critical TypeError that occurred when using the user post filter (starter_id) on threads where the specified user had no posts. The error "Argument #1 ($firstDisplayedPost) must be of type XF\Entity\Post, null given" in getLdStructuredData() has been fixed.

This maintenance release addresses a critical bug that caused server errors when filtering posts by a user who has no posts in the thread.
  • Structured Data TypeError Fix: When applying the user post filter (starter_id parameter) to view posts from a specific user, if that user had no posts in the thread, a TypeError was thrown: "Argument #1 ($firstDisplayedPost) must be of type XF\Entity\Post, null given". This occurred because the structured data (JSON-LD) generation expected a valid Post entity, but received null when no posts matched the filter. The fix ensures that when the filtered first post is null, the thread's actual first post is used for structured data generation, or the structured data block is skipped entirely if no valid post is available.
  • Add-on templates updated to XF 2.3.x.
  • Template modifications rewritten.

XenForo 2.3.x and PHP 8.3+ Compatibility Update
  • Confirm XF 2.3.x Support
  • PHP 8.3 compatibility update.

Support:

If you need assistance, feel free to contact us or create a support ticket.


We are always here to assist our customers and are happy to help resolve any issues you may encounter.
Version string 1.0.1
  • Added new options
  • Updated template modifications
  • Added new public templates

XenForo 2.2.x and PHP 8.1+ Compatibility
  • Confirm XF 2.2.12+ Support
  • PHP 8.1 compatibility
Feature list
  • Compatible with all forum types
  • User group permission (per node)

Required
  • XF 2.2.8+
  • PHP 8.0+
Note: Please do not install the add-on, if you are using lower than XF 2.2.8 and PHP 8.0.
This version only supports XF 2.2.8+.
Back
Top