Content Ratings

Content Ratings [Paid] 2.8.5

No permission to buy ($35.00)
All set :). Thanks @Jeremy P and @Xon.

By the way, I think I found a small aesthetic bug. As you can see from the image below, the grey background of the Like count (which uses FA icon) does not span the container height, unlike the other icons (snapshot from iPhone SE Safari).


View attachment 165619
What browser & device? Android/Chrome or desktop doesn't do this.

Another bug. When "Display rate menu location" is set to "In place of the XF Like button", I need to reload the page after rating a content for the first time (i.e. the content has not been rated before by anyone, ever) to display that rating. If the content has been rated before (even if the rating was removed later), this problem does not occur.

To replicate:
1. Set "Display rate menu location" = "In place of the XF Like button"
2. Make a new post using a trial user.
3. Try to rate the post using your account.
Fixed for next release

A question. If I uncheck Track recent users (which is by default unchecked), is it going to cause any issue if I revert back to default XF Like system in future? Asking because usually XF display in "X, Y, Z and XX others" format.

View attachment 165622
The Like data will need to be re-build (XF knows how todo this, but the add-on doesn't kick this off), or it will be fixed up the next time someone likes or unlikes a piece of content.

Otherwise it is just a minor display glitch.
 
Last edited:
What browser & device? Android/Chrome or desktop doesn't do this.
Safari/Chrome in Phone SE has this issue, Chrome in a computer gets this right.


The Like data will need to be re-build (XF knows how todo this, but the add-on doesn't kick this off), or it will be fixed up the next time someone likes or unlikes a piece of content.

Otherwise it is just a minor display glitch.
Oh, so all I need to do after uninstalling this addon (if I decide to) is to "Rebuild like counts" and "Rebuild likes counted status" from XF ACP, am I right?
 
Actually, I think the like count rebuilder only updates user counts, and the likes counted status rebuilder just performs a fast update to the is_counted flag and user counts via fastUpdateLikeIsCounted(). I don't believe there's any core rebuilder for the recent likes cache data, but it would still be recalculated upon a new like/unlike.
 
it would still be recalculated upon a new like/unlike.
When anyone like/unlike a post, will it recalculate for that post only (in that case someone has to "like/unlike" all the "liked" posts before it is updated for the whole board), or it will recalculate across the board?

Sorry for dragging this issue, but I just want to be prepared for future in case I decide to revert back to the simple like system in future.
 
When anyone like/unlike a post, will it recalculate for that post only (in that case someone has to "like/unlike" all the "liked" posts before it is updated for the whole board), or it will recalculate across the board?
It will recalculate the cache for that post only. I don't think enabling the option to track recent users should be troublesome though, unless you run a very busy board where every query counts. The additional query is only triggered for like ratings (where stock XF would have performed one anyways), so it's more a case of disabling it providing a savings rather than enabling it incurring a penalty.
 
Hi @Xon,

You can see in this video.
On my phone, I tap and hold Like button then I have more reactions I can choose (Like, sad, love, angry, haha). Then I chose Love.
On Desktop, we hover our mouse to Like button to do the same thing.

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.

Here we only use the existing Like button for all Rating/Reactions.
2) An FB-like animation on the icons on hover would be a nice touch :)
Is it possible to show a description tooltip on icon press in mobile view?
The initial implementation of touch-based UI with on-hover and the description pop-up is on https://xf2.nixfifty.com

Should be out in a day or two, just finishing some other bits and other add-on bugfixes.
 
Awesome!! This is now officially the best rating solution among all xf and non-xf forum platforms :)!

One thing though. The hovering effects works nicely but, when you swipe from one icon to another and then release, the initial touch takes presidence whereas it should be the last one. For example, if I start from happy, swipe over to cool and release, though the animation and tooltip works as expected for all the swiped icons, the rating that is applied is happy, not cool.
 
One thing though. The hovering effects works nicely but, when you swipe from one icon to another and then release, the initial touch takes presidence whereas it should be the last one. For example, if I start from happy, swipe over to cool and release, though the animation and tooltip works as expected for all the swiped icons, the rating that is applied is happy, not cool.
On android & edge/chrome desktop, you need to tap after doing a swipe-release. Will need to think about how to implement that sort of behaviour, which makes sense.
 
On android & edge/chrome desktop, you need to tap after doing a swipe-release. Will need to think about how to implement that sort of behaviour, which makes sense.
Oh, I was using Safari in iPhone and it actually applies the initial touch after swipe-release, without any extra tap requirement.
 
Is it possible to have given ratings on left side of post message and on right just "like" button (to select rating).

Is it possible for desktop users to click on "like" to open ratings options (for now it is just open on hover and click is just selecting Like rating).
 
Is it possible to have given ratings on left side of post message and on right just "like" button (to select rating).
On the "Rating bar" style property change the 'Freeform CSS/LESS code'

From:
CSS:
display: flex;
justify-content: flex-end;

To:
CSS:
display: flex;
justify-content: flex-start;

Is it possible for desktop users to click on "like" to open ratings options (for now it is just open on hover and click is just selecting Like rating).
Not currently (the templating for that is a bit involved), it would be doable with a style property to signal it.
 
On the "Rating bar" style property change the 'Freeform CSS/LESS code'
Nice. I will do that, just have to buy addon first.

Not currently (the templating for that is a bit involved), it would be doable with a style property to signal it.
Any chance to make that as option, because my users will just click on button thinking it will popup with possible ratings, but they just will give "Like".
If that could be an option (click or hover) it would be great.

Any eta for leave beta phase or is it stable enough to buy and install now on live forum?

Thanks @Xon
 
Any chance to make that as option, because my users will just click on button thinking it will popup with possible ratings, but they just will give "Like".
If that could be an option (click or hover) it would be great.
Will be done for the next release, this functionality was already usable with the vertical menu style.

Any eta for leave beta phase or is it stable enough to buy and install now on live forum?

Thanks @Xon
IMO it is stable enough now. The next release 0.13.0 will be feature complete, with the touch support and features for importing from post ratings add-on (OP only and usergroup functionality).

Once 0.13.x branch has some time to stabilize, it will then be 1.0.0 time
 
All set :). Thanks @Jeremy P and @Xon.

By the way, I think I found a small aesthetic bug. As you can see from the image below, the grey background of the Like count (which uses FA icon) does not span the container height, unlike the other icons (snapshot from iPhone SE Safari).


View attachment 165619
What version of iOS? Having trouble reproducing it. Can you try https://xf2.nixfifty.com again? (make sure to flush your browser cache)

Just working on a last couple of bugs.
 
Last edited:
I am on iOS 10.3.1.

I am a bit confused as well. I tried both on Safari (after clearing cache) and Chrome (Incognito mode) on my iPhone, and both cases this issue still appears.

But when I try the same on Chrome on my Laptop and resize the browser to make the screen size same as my iPhone, this problem doesn't appear.

Maybe some issue with my phone, donno.
 
Under the hood, Mobile Safari and Chrome for iOS both use the same engine so that's why you're seeing it in Chrome for iOS too.

Issue seems to be fixed in iOS 11. Would need to look in to it and see if there's much that can be done to mitigate it for iOS 10 though.
 
Xon updated Content Ratings for XF2 with a new update entry:

0.13.0 - Feature update

This can be considered feature complete in preparation for the 1.0.0 release, and the intended focus is on stabilization and bugfixes. AS-IS this add-on can be considered production ready.
  • Fix CSS on rating icons, and on rating count list on content.
  • Fix horizontal rating menu being pushed left off the screen.
  • Add breadcrumb to rating type edit page, fix outstanding SQL warning text
  • New style property: Open menu on click, force desktop to open the menu on click rather than...

Read the rest of this update entry...
 
Back
Top Bottom