- Fix syntax error in
UserGivenRatingCount
class
reaction_score
, reactions
, and reaction_users
columns to my table and entity, I've registered the content type's entity and reaction_handler_class, and created actionReact
and actionReactions
methods in my custom controller. Beyond that, I'm not sure how to proceed.Removing reactions by others requires theCool. I got this to work by examining the reports addon you suggested, however my reaction bar is not giving me the moderator delete options and I'm not sure why.
general.removeOtherReactions
permission. You can add your own permission by overriding/implementing canRemoveOthersReaction
method instead of the default implementation from the Ratable
trait.
- Fix iOS 18.2+ tap&hold would not open the reactions pop-up
<div class="sv-rating-type__icon"><span data-template-name="public:sv_contentratings_macros::rating_type_icon" class="sv-rating-type-icon sv-rating-type-icon1 sv-rating-type-icon--emoji reaction--inline sv-rating-type--medium" title="Нравится"><span class="smilie smilie--emoji" title="emoji.+1 :+1:" data-shortname=":+1:">👍</span></span></div>
<span data-template-name="public:sv_contentratings_macros::rating_type_icon" class="sv-rating-type-icon sv-rating-type-icon1 sv-rating-type-icon--emoji reaction--inline sv-rating-type--small" title="Нравится"><span class="smilie smilie--emoji" title="emoji.+1 :+1:" data-shortname=":+1:">👍</span></span>
no, everything is working as expected, all template mods appliedCan you check if various template modifications are applying or not? It is also possible this particular page wasn't expected properly
rate.min.js?_v=1f13188d:3 Uncaught TypeError: Cannot read properties of undefined (reading 'targetTouches') at HTMLDivElement.m (rate.min.js?_v=1f13188d:3:300)
applyTooltipContent() {
if (!this.svContentRating_applyTooltipContent())
return !1;
let a = null
, b = null
, e = null
, h = (this.tooltip || this.$tooltip.get(0)).querySelector("." + this.options.baseClass + "-content");
const m = g => {
>>> g = g.originalEvent.targetTouches[0];
if (g = t.elementFromPoint(g.clientX, g.clientY).closest('[data-xf-click="sv-rate"]')) {
const c = XF.Element.getHandler(f ? k(g) : g, "sv-rating-type-tooltip");
if (c) {
const l = g.getAttribute("id");
a && l !== a && (b.querySelectorAll(".sv-rating-type-icon").forEach(d => {
d.classList.remove("is-active")
}
),
e.trigger.hide());
c.trigger.isShown() || (e = c,
a = l,
b = g,
g.querySelectorAll(".sv-rating-type-icon").forEach(d => {
d.classList.add("is-active")
}
),
c.trigger.show())
}
}
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.