Content Ratings

Content Ratings [Paid] 2.7.6

No permission to buy ($35.00)
In XF v1 I didn't use the complete qualifier:
Code:
<img src="styles/smilies/002_wave.gif" title="Welcome" alt="Hi" />
So now with XF v2 it seems I have to go through everything and add the complete address...unless there is some setting to override this
 
Thanks @Xon however that just moves the icon itself but not the whole link and icon. There is actually 2px difference in height for the link and 3px in the icon:
View attachment 170298

I should mention that this is in Firefox (latest), plus in IE and Chrome it is 1px and 2px
I'll need to look into this, it is the styling which is behaving badly :(
 
Xon,

Is this the type of rating that gets indexed by google thus showing 1-5 stars?
I noticed that indexed XF posts from xenforo are showing ratings in index....
however, not quite sure if this is your addon or not.

thanks
 
Last edited:
Nope, this add-on doesn't do that. Likely it is a custom field on the thread called "star ratings" which implements that I believe. XF also picks up XFRM content ratings too
 
Nope, this add-on doesn't do that. Likely it is a custom field on the thread called "star ratings" which implements that I believe. XF also picks up XFRM content ratings too

Would be a nice option to have, hint, hint...
Forum can draw more attention due to those indexed ratings.
 
Ok, to import from Luke's Post Ratings addon to this one you need to leave Luke's one installed when you upgrade XF from v1 to v2. Once you import into Xon's one you can them uninstall Luke's one. However, there is an XF message saying:
Uninstalling legacy add-ons may leave orphaned data. Upgrade the add-on to a compatible version before uninstalling, if possible.

So, does anyone know if there is any legacy data? I think this is important to know if anyone is considering getting this addon to replace Luke's one...thanks
 
Ok, to import from Luke's Post Ratings addon to this one you need to leave Luke's one installed when you upgrade XF from v1 to v2. Once you import into Xon's one you can them uninstall Luke's one. However, there is an XF message saying:
Uninstalling legacy add-ons may leave orphaned data. Upgrade the add-on to a compatible version before uninstalling, if possible.

So, does anyone know if there is any legacy data? I think this is important to know if anyone is considering getting this addon to replace Luke's one...thanks
I've updated the FAQ with that information, including documenting this add-on requires Post Ratings to be left installed when upgrading from XenForo 1 to XenForo 2.

Since this is removing tables from your database, please ensure you have backups!
 
Any thoughts on this please which I think is related to selecting "Show ratings on thread list"

  • InvalidArgumentException: Accessed unknown getter 'Likes' on XF:Thread[273287]
  • src/XF/Mvc/Entity/Entity.php:182
  • Generated by: Electromagnetic
  • Mar 5, 2018 at 3:55 PM
Stack trace
#0 src/XF/Mvc/Entity/Entity.php(95): XF\Mvc\Entity\Entity->get('Likes')
#1 src/addons/SV/ContentRatings/Entity/Ratable.php(252): XF\Mvc\Entity\Entity->__get('Likes')
#2 src/XF/Mvc/Entity/Entity.php(142): SV\ContentRatings\XF\Entity\Thread->getVisitorRating()
#3 src/XF/Mvc/Entity/Entity.php(95): XF\Mvc\Entity\Entity->get('visitor_rating')
#4 src/addons/SV/ContentRatings/Listener.php(316): XF\Mvc\Entity\Entity->__get('visitor_rating')
#5 [internal function]: SV\ContentRatings\Listener::templaterMacroPreRender(Object(SV\ContentRatings\XF\Template\Templater), 'public', 'sv_contentratin...', 'rating_bar', Array, Array)
#6 src/XF/Extension.php(50): call_user_func_array(Array, Array)
#7 src/XF/App.php(2350): XF\Extension->fire('templater_macro...', Array, 'public:sv_conte...')
#8 src/XF/Template/Templater.php(641): XF\App->fire('templater_macro...', Array, 'public:sv_conte...')
#9 internal_data/code_cache/templates/l1/s11/public/thread_list_macros_content_ratings.php(16): XF\Template\Templater->callMacro('sv_contentratin...', 'rating_bar', Array, Array)
#10 src/XF/Template/Templater.php(1246): XF\Template\Templater->{closure}(Object(SV\ContentRatings\XF\Template\Templater), Array)
#11 src/XF/Template/Templater.php(1320): XF\Template\Templater->renderTemplate('public:thread_l...', Array)
#12 internal_data/code_cache/templates/l1/s11/public/thread_list_macros.php(159): XF\Template\Templater->includeTemplate('thread_list_mac...', Array)
#13 src/XF/Template/Templater.php(659): XF\Template\Templater->{closure}(Object(SV\ContentRatings\XF\Template\Templater), Array, Array)
#14 internal_data/code_cache/templates/l1/s11/public/whats_new_posts.php(261): XF\Template\Templater->callMacro('thread_list_mac...', 'item', Array, Array)
#15 src/XF/Template/Templater.php(659): XF\Template\Templater->{closure}(Object(SV\ContentRatings\XF\Template\Templater), Array, Array)
#16 internal_data/code_cache/templates/l1/s11/public/whats_new_posts.php(383): XF\Template\Templater->callMacro(NULL, 'results', Array, Array)
#17 src/XF/Template/Templater.php(1246): XF\Template\Templater->{closure}(Object(SV\ContentRatings\XF\Template\Templater), Array)
#18 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('public:whats_ne...', Array)
#19 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#20 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Html->renderView('XF:WhatsNew\\Pos...', 'public:whats_ne...', Array)
#21 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#22 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#23 src/XF/App.php(1889): XF\Mvc\Dispatcher->run()
#24 src/XF.php(328): XF\App->run()
#25 index.php(13): XF::runApp('XF\\Pub\\App')
#26 {main}
 
Any thoughts on this please which I think is related to selecting "Show ratings on thread list"

  • InvalidArgumentException: Accessed unknown getter 'Likes' on XF:Thread[273287]
  • src/XF/Mvc/Entity/Entity.php:182
  • Generated by: Electromagnetic
  • Mar 5, 2018 at 3:55 PM
Stack trace
#0 src/XF/Mvc/Entity/Entity.php(95): XF\Mvc\Entity\Entity->get('Likes')
#1 src/addons/SV/ContentRatings/Entity/Ratable.php(252): XF\Mvc\Entity\Entity->__get('Likes')
#2 src/XF/Mvc/Entity/Entity.php(142): SV\ContentRatings\XF\Entity\Thread->getVisitorRating()
#3 src/XF/Mvc/Entity/Entity.php(95): XF\Mvc\Entity\Entity->get('visitor_rating')
#4 src/addons/SV/ContentRatings/Listener.php(316): XF\Mvc\Entity\Entity->__get('visitor_rating')
#5 [internal function]: SV\ContentRatings\Listener::templaterMacroPreRender(Object(SV\ContentRatings\XF\Template\Templater), 'public', 'sv_contentratin...', 'rating_bar', Array, Array)
#6 src/XF/Extension.php(50): call_user_func_array(Array, Array)
#7 src/XF/App.php(2350): XF\Extension->fire('templater_macro...', Array, 'public:sv_conte...')
#8 src/XF/Template/Templater.php(641): XF\App->fire('templater_macro...', Array, 'public:sv_conte...')
#9 internal_data/code_cache/templates/l1/s11/public/thread_list_macros_content_ratings.php(16): XF\Template\Templater->callMacro('sv_contentratin...', 'rating_bar', Array, Array)
#10 src/XF/Template/Templater.php(1246): XF\Template\Templater->{closure}(Object(SV\ContentRatings\XF\Template\Templater), Array)
#11 src/XF/Template/Templater.php(1320): XF\Template\Templater->renderTemplate('public:thread_l...', Array)
#12 internal_data/code_cache/templates/l1/s11/public/thread_list_macros.php(159): XF\Template\Templater->includeTemplate('thread_list_mac...', Array)
#13 src/XF/Template/Templater.php(659): XF\Template\Templater->{closure}(Object(SV\ContentRatings\XF\Template\Templater), Array, Array)
#14 internal_data/code_cache/templates/l1/s11/public/whats_new_posts.php(261): XF\Template\Templater->callMacro('thread_list_mac...', 'item', Array, Array)
#15 src/XF/Template/Templater.php(659): XF\Template\Templater->{closure}(Object(SV\ContentRatings\XF\Template\Templater), Array, Array)
#16 internal_data/code_cache/templates/l1/s11/public/whats_new_posts.php(383): XF\Template\Templater->callMacro(NULL, 'results', Array, Array)
#17 src/XF/Template/Templater.php(1246): XF\Template\Templater->{closure}(Object(SV\ContentRatings\XF\Template\Templater), Array)
#18 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('public:whats_ne...', Array)
#19 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#20 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Html->renderView('XF:WhatsNew\\Pos...', 'public:whats_ne...', Array)
#21 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#22 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#23 src/XF/App.php(1889): XF\Mvc\Dispatcher->run()
#24 src/XF.php(328): XF\App->run()
#25 index.php(13): XF::runApp('XF\\Pub\\App')
#26 {main}
Can you PM me some more details? Also what version of the add-on ?

What sort of thread did you click on, screenshots, and the request information so I can see more inforamtion
 
Xon updated Content Ratings for XF2 with a new update entry:

1.0.9 - Maintenance update

  • Add activity details for ratings controller
  • Improve responsiveness of inline rate menu on small screens.
  • Improve various background jobs to scale automatically based on server performance instead of fixed batch sizes
  • Populate a thread's like total when the first post is liked
    • A background task will re-sync thread like totals to the first post like totals on install

Read the rest of this update entry...
 
Is it possible to set up different user promotions / trophies on different ratings?

For example: "You're a very funny User - 5 trophy points" for 50 ratings on the funny ratings

Hope you get what i mean! :D
 
I love way you've got a way to import some stock reactions, but I don't find them that useful as they're not that descriptive as reactions or ratings as such.

I think it would be more useful to have a selection of actual emotion like reactions that you could import from the get go.

I've just customised my site, but it would be beneficial to new customers, and to me when I buy another licence for another site (;)) if they were a bit more tailored out of the box.

Here's a few suggestions:

1520531174259.webp
 
Last edited:
Also, is it possible to change the button text to an admin defined phrase somehow?

I've got it setup so that it replaces the XF like button, and when you click it shows the reaction menu.

Instead of having the text show whatever the default reaction is (eg. 'Like'), I'd like to switch it to say 'React'.
 
@RobinHood there is also a facebook defaults which select from some known XF emoji which match those.
Also, is it possible to change the button text to an admin defined phrase somehow?

I've got it setup so that it replaces the XF like button, and when you click it shows the reaction menu.

Instead of having the text show whatever the default reaction is (eg. 'Like'), I'd like to switch it to say 'React'.
Not yet.
 
Top Bottom