Content Ratings for XF2.1+

xF2 Add-on Content Ratings for XF2.1+ 2.7.6

No permission to download
Compatible XF Versions
2.1, 2.2
Visible Branding
No
Additional Requirements
php 7.0+
Standard Library by Xon v1.2.1+
Link XF Versions
XF2.1: https://enxf.net/resources/content-ratings-for-xf2-1.297/version/4865/download
Inspired by the XF1 add-on "Post Ratings", and the prevalence of "Reactions" as an alternative to the single dimensional Likes.

Post Installing
This add-on will require configuration
, only a default "Like" is added after installing.
  • Tools => Import Data => Import from XF1 Post Ratings
  • Content => Content Rating => Rating Types => Add Default Rating Types
    • This adds "Facebook Style" ratings of;
      • Like (y)
      • Love :love:
      • Haha :LOL:
      • Wow :eek:
      • Sad ?
      • Angry :mad:
  • Content => Content Rating => Rating Types =>Add New Rating Type.
Installing/Uninstalling on a large forum

It is strongly recommended to use the CLI installer/uninstaller.
This add-on alters xf_reaction_content, which can take a very long time for a large forum.

To run the SQL manually, use;
SQL:
alter table xf_reaction_content
    add index reaction_user_id_reaction_date (`reaction_user_id`,`reaction_date`);

Features
  • XF1 "Post Ratings" importer
  • Whitelist/blacklist ratings by user group, lock to starting poster, and limit to forums (for threads)
  • Content Ratings/Reactions on Posts and Conversations.
    • Integrates with alerts & news feed where applicable.
  • Rating Types;
    • Support flexible image icon selection;
      • Emoji
      • Sprite Images
      • Images (with high definition alternative image)
      • css fonts
      • Templates (for inline SVG)
    • A Rating type can be usable or visible;
      • Visible & usable - everyone can use and see
      • Not visible & usable - only the person giving the rating can see their own rating, allowing a "private rating".
      • Visible & not usable - everyone can see, not may not use it.
      • Not Visible & not usable, - no one may see or use it.
  • Supported Content types:
    • Posts
    • Conversation Messages
    • Profile Posts
    • Profile Post Comments
  • Rating Categories
    • For example; positive/negative/neutral categories
    • If a category shows on the profile/memberbit/postbit & how stats are presented.
  • Statistics integration
  • User Criteria integration
  • Selectable "default rating" to display as the menu icon, can be Random, or None.
  • Large number of style properties to customize look and feel.
    • Horizontal rating selection
    • Touch support
  • Display highest ratings on thread rating list (disabled by default)
    • Global option to enable/disable
    • Style property options to customize
  • Rating Categories automatic actions when a category hits some threshold ;
    • Report content
    • Moderate content
    • Soft-delete content
  • Allow arbitrary number of rating type/rating type category user criteria
Implementation notes
  • Designed for performance, only minimal data is fetched when interacting with the rating system
    • Overrides XF2's rebuild behaviour to instead be incremental rather than count all ratings on a piece of content.
  • As MySQL's InnoDB table structure does not feature prefix compression, a content type/id pair is very inefficient space-wise.
  • Uses per-content tables which are dynamically managed to store count totals, and automagically links these to the right places for use.
  • If a content's table is "too large" to extend (ie when adding a rating type) without downtime, that content has the rating type disabled for it and the required manual SQL for the administrator to run provided.
    • "too large " table size threshold is an adjustable, may be to fully automatic or fully manual for adding columns.
Style Property screenshots
This add-on has a large number of style property customization options, and the following screenshots demo some of the options:
postbit-numerical-ratings.png
postbit-bar-ratings.png
menu-in-like-on-hover.png
inline-menu-under-controlls.png
ratings-left-menu-right.png
ratings-right-menu-right.png
ratings-menu.png
Related Resources
Content Ratings for XF2 Resource Manager (free, requires this add-on)
Content Ratings for XF2 Media Gallery (free, requires this add-on)
  • admin-cp-rating-list.png
    admin-cp-rating-list.png
    20.1 KB · Views: 475
  • alerts.png
    alerts.png
    10.4 KB · Views: 456
  • news-feed.png
    news-feed.png
    11.9 KB · Views: 450
  • rated-by-others.png
    rated-by-others.png
    1.6 KB · Views: 434
  • rated-by-user.png
    rated-by-user.png
    1.9 KB · Views: 429
  • ratings-receive.png
    ratings-receive.png
    23.9 KB · Views: 430
  • admin-cp-style-property-list.png
    admin-cp-style-property-list.png
    88.3 KB · Views: 422
  • admin-cp-style-property-options.png
    admin-cp-style-property-options.png
    429.5 KB · Views: 422
  • 2-highest-ratings-on-threadlist.png
    2-highest-ratings-on-threadlist.png
    18.9 KB · Views: 408
  • content-actions.png
    content-actions.png
    410 KB · Views: 435
  • criteria-support.png
    criteria-support.png
    29.6 KB · Views: 378
  • emoji-config.png
    emoji-config.png
    18.6 KB · Views: 400
Author
ENXF NET
Downloads
440
Views
5,810
Last update
Rating
5.00 star(s) 4 ratings

More resources from ENXF NET

Latest updates

  1. 2.7.6 - Bugfix update

    php 8.4+ compatibility fixes Fix removing content which had been reacted to would result in a...
  2. 2.6.1 - Minor feature update

    Add style property "Reaction bar icon size" (small/medium/large) instead of hardcoding the...
  3. 2.6.0 - Feature update

    Do cache rebuilding when the add-on is rebuild, including detecting json support. If json...

Latest reviews

Excellent add-on, works beautifully on my forum...Thank you!...
k
Cập nhật bản cho 2.1 đi bro ơi :D
an excellent add on for xenforo that gives facebook like 'likes and loves' etc. to our forums. Could do with better instructions upon installation as at the time I had to ask for help but hopefully its been improved now :)
Top