Xon submitted a new resource:
Content Ratings for XF2 Media Gallery - More Ratings/Reactions
Read more about this resource...
Content Ratings for XF2 Media Gallery - More Ratings/Reactions
Read more about this resource...
- Support rating menu being in-line with public controls (ie existing Like button)
- Support "Display rating bar location" style property
- Fix rating count display on XFMG list items
- Add missing phrase
Updated for the 1.0.0 release of Content Ratings
- Support Content Rating 1.1.0 'content actions' (report/moderate/soft-delete)
- Fix potential compatibility issues with 3rd party themes
- Adjust alert templates so superfluous errors are not generated when viewing alerts when the add-on is disabled.
- Adjust alert templates so superfluous errors are not generated when viewing alerts/news feed when the add-on is disabled. Take #2
This add-on does require Content Ratings for XF2awesome add-on!! now i can make my own dislike button!
Error: Call to undefined method XFMG\Entity\MediaItem::canLike() src/addons/SV/ContentRatings/Entity/Ratable.php:301
Generated by: Unknown account Jan 31, 2019 at 5:10 AM
Stack trace
#0 src/addons/SV/ContentRatings/Entity/Ratable.php(284): SV\ContentRatingsXFMG\XFMG\Entity\MediaItem->canLike(NULL)
#1 [internal function]: SV\ContentRatingsXFMG\XFMG\Entity\MediaItem->canRate()
#2 src/XF/Template/Templater.php(978): call_user_func_array(Array, Array)
#3 internal_data/code_cache/templates/l1/s16/public/xfmg_media_view.php(312): XF\Template\Templater->method(Object(SV\ContentRatingsXFMG\XFMG\Entity\MediaItem), 'canRate', Array)
#4 src/XF/Template/Templater.php(1294): XF\Template\Templater->{closure}(Object(SV\ContentRatings\XF\Template\Templater), Array)
#5 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('xfmg_media_view', Array)
#6 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#7 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XFMG:Media\\View', 'public:xfmg_med...', Array)
#8 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#11 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#12 src/XF.php(390): XF\App->run()
#13 index.php(20): XF::runApp('XF\\Pub\\App')
#14 {main}
Request state
array(4) {
["url"] => string(39) "/forum/media/i-adore-this-picture.2158/"
["referrer"] => bool(false)
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
- Now XenForo 2.1 compatible, but requires dropping XenForo 2.0 compatibility.
-<xf:macro template="sv_contentratings_macros" name="rating_bar" arg-entity="{$2}" arg-reactRoute="$3/react" arg-reactionsListRoute="$3/$4" />
+<xf:macro template="sv_contentratings_macros" name="rating_bar" arg-entity="{$2}" arg-reactRoute="$3/albums/react" arg-reactionsListRoute="$3/$4" />
-<xf:macro template="sv_contentratings_macros" name="rating_bar" arg-entity="{$4}" arg-reactRoute="$5/$6" arg-reactionsListRoute="$5/reactions" />
+<xf:macro template="sv_contentratings_macros" name="rating_bar" arg-entity="{$4}" arg-reactRoute="$5/$6" arg-reactionsListRoute="$5/albums/reactions" />
-<xf:macro template="sv_contentratings_macros" name="rating_bar" arg-entity="{$2}" arg-reactRoute="$3/react" arg-reactionsListRoute="$3/$4" />
+<xf:macro template="sv_contentratings_macros" name="rating_bar" arg-entity="{$2}" arg-reactRoute="$3/comments/react" arg-reactionsListRoute="$3/$4" />
-<xf:macro template="sv_contentratings_macros" name="rating_bar" arg-entity="{$4}" arg-reactRoute="$5/$6" arg-reactionsListRoute="$5/reactions" />
+<xf:macro template="sv_contentratings_macros" name="rating_bar" arg-entity="{$4}" arg-reactRoute="$5/$6" arg-reactionsListRoute="$5/comments/reactions" />
- Fix incorrect album & comment reaction links. Thanks @meshedvr
We use essential cookies to make this site work, and optional cookies to enhance your experience.