Content Ratings

Content Ratings [Paid] 2.7.6

No permission to buy ($35.00)
thanks for that Jeremy I'd misread Xons post "content". I've got them installed and working. I do think this needs a proper noob proof tutorial if there isn't one as I couldn't find any installation instructions and only found the image paths by accident in the configuration spoiler on the faq page. Its an amazing addon though once you work out how to get it going lol thanks once again lads :)
 
@Xon
I do not know is it related, but from yesterday when I upgraded expiring user upgrades addon to latest version, I am overhelmed with tons of this error (I think related to ratings addon)

Code:
Server error log
ErrorException: Template error: Cannot call method isMemberOf on a non-object (NULL) src/XF/Template/Templater.php:926
Generated by: Unknown account 22.07.2018. at 15:31
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Cannot call met...', '/home/nginx/dom...', 926, Array)
#1 src/XF/Template/Templater.php(926): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l1/s1/public/post_macros.php(124): XF\Template\Templater->method(NULL, 'isMemberOf', Array)
#3 src/XF/Template/Templater.php(662): XF\Template\Templater->{closure}(Object(SV\ContentRatings\XF\Template\Templater), Array, Array)
#4 internal_data/code_cache/templates/l1/s1/public/thread_view.php(596): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#5 src/XF/Template/Templater.php(1249): XF\Template\Templater->{closure}(Object(SV\ContentRatings\XF\Template\Templater), Array)
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#7 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#9 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#11 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#12 src/XF.php(328): XF\App->run()
#13 index.php(13): XF::runApp('XF\\Pub\\App')
#14 {main}
Request state
array(4) {
  ["url"] => string(47) "/threads/hobotnica-octopus-vulgaris.1110/page-3"
  ["referrer"] => string(23) "https://www.google.com/"
  ["_GET"] => array(1) {
    ["/threads/hobotnica-octopus-vulgaris_1110/page-3"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}
 
@Xon
I do not know is it related, but from yesterday when I upgraded expiring user upgrades addon to latest version, I am overhelmed with tons of this error (I think related to ratings addon)

Code:
Server error log
ErrorException: Template error: Cannot call method isMemberOf on a non-object (NULL) src/XF/Template/Templater.php:926
Generated by: Unknown account 22.07.2018. at 15:31
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Cannot call met...', '/home/nginx/dom...', 926, Array)
#1 src/XF/Template/Templater.php(926): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l1/s1/public/post_macros.php(124): XF\Template\Templater->method(NULL, 'isMemberOf', Array)
#3 src/XF/Template/Templater.php(662): XF\Template\Templater->{closure}(Object(SV\ContentRatings\XF\Template\Templater), Array, Array)
#4 internal_data/code_cache/templates/l1/s1/public/thread_view.php(596): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#5 src/XF/Template/Templater.php(1249): XF\Template\Templater->{closure}(Object(SV\ContentRatings\XF\Template\Templater), Array)
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#7 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#9 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#11 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#12 src/XF.php(328): XF\App->run()
#13 index.php(13): XF::runApp('XF\\Pub\\App')
#14 {main}
Request state
array(4) {
  ["url"] => string(47) "/threads/hobotnica-octopus-vulgaris.1110/page-3"
  ["referrer"] => string(23) "https://www.google.com/"
  ["_GET"] => array(1) {
    ["/threads/hobotnica-octopus-vulgaris_1110/page-3"] => string(0) ""
  }
  ["_POST"] => array(0) {
  }
}


Ah, it is related with @Siropu Ads manager
Siropu and @Xon could you two resolve this?

Thank you both
 
This add-on doesn't add a use for
Code:
isMemberOf[icode], so it is hard to tell what is broken.

Did you implement this?

[QUOTE="Chris D, post: 1255631, member: 11388"]Yeah under the post macro which is inside the [icode]<xf:macro name="post" ...[/icode] block.

Find:
[code]message message--post js-post
And add directly after, something like:
Code:
{{ $post.User.isMemberOf('999') ? 'your-class-name' : '' }}
And of course change 999 to whatever your specific usergroup is, and add styling to extra.less, similar to:
Less:
.your-class-name
{
    background-color: red;
}
[/QUOTE]

The code snippet $post.User.isMemberOf('999') will cause an error. It should be;
Code:
{{ $post.User && $post.User.isMemberOf('999') ? 'your-class-name' : '' }}
 
Update to the latest version and getting this error in the browser console when trying to load the ratings tooltip.
Code:
jquery.min.js:2 jQuery.Deferred exception: Cannot read property 'tooltipDelay' of undefined TypeError: Cannot read property 'tooltipDelay' of undefined
    at c.init (https://www.mysite.com/js/sv/contentratings/rate.min.js?_v=a61bf51b:7:224)
    at c (https://www.mysite.com/js/xf/core-compiled.js?_v=a61bf51b:117:59)
    at e (https://www.mysite.com/js/xf/core-compiled.js?_v=a61bf51b:117:249)
    at HTMLAnchorElement.<anonymous> (https://www.mysite.com/js/xf/core-compiled.js?_v=a61bf51b:117:409)
    at Function.each (https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:2715)
    at r.fn.init.each (https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:1003)
    at Object.f [as initialize] (https://www.mysite.com/js/xf/core-compiled.js?_v=a61bf51b:117:393)
    at Object.activate (https://www.mysite.com/js/xf/core-compiled.js?_v=a61bf51b:43:266)
    at HTMLDocument.onPageLoad (https://www.mysite.com/js/xf/core-compiled.js?_v=a61bf51b:25:330)
    at j (https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:29999) undefined

Code:
Uncaught TypeError: Cannot read property 'tooltipDelay' of undefined
    at c.init (rate.min.js?_v=a61bf51b:7)
    at c (core-compiled.js?_v=a61bf51b:117)
    at e (core-compiled.js?_v=a61bf51b:117)
    at HTMLAnchorElement.<anonymous> (core-compiled.js?_v=a61bf51b:117)
    at Function.each (jquery.min.js:2)
    at r.fn.init.each (jquery.min.js:2)
    at Object.f [as initialize] (core-compiled.js?_v=a61bf51b:117)
    at Object.activate (core-compiled.js?_v=a61bf51b:43)
    at HTMLDocument.onPageLoad (core-compiled.js?_v=a61bf51b:25)
    at j (jquery.min.js:2)

we update from the 1.07
Xenforo 2.0.9

Edit:
solved, cleaning the browser cache :)
 
Last edited:
XF should bump the version string for any javascript so that sort of thing doesn't happen after you install an add-on. But good to see a simple browser cache clean fixed it
 
Are multiple alerts consolidated yet? Not updated for a little while but we get every rating alert individually which can mean thousands of notifications.
 
Are multiple alerts consolidated yet? Not updated for a little while but we get every rating alert individually which can mean thousands of notifications.
To consolidate alerts, Alert Improvements will do this when you touch hit the alerts page.

The alert numbers still go up, but they get squashed to something manageable when you view them
 
Would this be very difficult to implement?

xs.webp

A time period check for user promotions.

Would make it easy to display/reward the "top posters" over the past month etc or punish users who are spamming with negative ratings.

Could also be added to the other criteria:
User rating to message ratio is
User specific rating to total rating ratio is
 
Is there an equivalent of...
PHP:
$post.sv_categorized_ratings.1
...that applies to a specific rating and not a category?

Something like...
PHP:
$post.sv_rating.1
 
Top Bottom