RobinHood
Well-known member
@RobinHood there is also a facebook defaults which select from some known XF emoji which match those.
Oh cool. I must have missed that
@RobinHood there is also a facebook defaults which select from some known XF emoji which match those.
@Crazy-Achmet not currently, but that would be straight forward to implement (well beyond selecting the rating type).
That would be SO awesome! Something i miss in the Post Ratings AddOn for XF1 for years.
Just to clarify, this is for Content Ratings for XF2. Not for XF1 or Post RatingsI've added it as a to-do item for v1.1.x, which I plan to start working on in the next few weeks.
How did you insert the default font awesome thumbs up? I imagine it goes in the CSS Icon boxI've updated the demo site to the latest release of Content Ratings and have also installed the media gallery & resource manager: https://xf2.nixfifty.com/
The latest version of Content Ratings supports XFRM and XFMG so I've sprinkled some "sample" content around with various ratings in use (a mix between font awesome and imported smilies). Feel free to have a play.
View attachment 165347
<span class="far fa-thumbs-up"></span>
Close! In the CSS icon textbox, enter the following:How did you insert the default font awesome thumbs up? I imagine it goes in the CSS Icon boxCode:<span class="far fa-thumbs-up"></span>
fa fa-thumbs-up
fa fa-rocket
.
- Fix "Show ratings on thread list" causing "Accessed unknown getter 'Likes' on XF:Thread"
Any thoughts on this please which I think is related to selecting "Show ratings on thread list"
Stack trace
- 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
#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}
sv_contentratings_macros
to default.Server error log
ErrorException: [E_NOTICE] Trying to get property of non-object src/addons/SV/ContentRatings/XF/Like/ProfilePost.php:38
Generated by: Unknown account Mar 20, 2018 at 6:42 PM
Stack trace
#0 src/addons/SV/ContentRatings/XF/Like/ProfilePost.php(38): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home/rfcom/pub...', 38, Array)
#1 src/addons/SV/ContentRatings/Pub/Controller/Ratings.php(107): SV\ContentRatings\XF\Like\ProfilePost->ratingsListSetup(Object(SV\ContentRatings\Pub\Controller\Ratings), Object(SV\ContentRatings\XF\Entity\ProfilePost), Array, NULL, Array)
#2 src/XF/Mvc/Dispatcher.php(249): SV\ContentRatings\Pub\Controller\Ratings->actionList(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('SV\\ContentRatin...', 'List', 'json', Object(XF\Mvc\ParameterBag), '', Object(SV\ContentRatings\Pub\Controller\Ratings), NULL)
#4 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#5 src/XF/App.php(1891): XF\Mvc\Dispatcher->run()
#6 src/XF.php(328): XF\App->run()
#7 index.php(13): XF::runApp('XF\\Pub\\App')
#8 {main}
Request state
array(4) {
["url"] => string(212) "/rating/list?content_type=profile_post&content_id=1754&rating_type_category_id=3&_xfRequestUri=%2Fmembers%2Frobinsm.107%2F&_xfWithData=1&_xfToken=1521531668%2Ced80797cd57256161af066951ee35433&_xfResponseType=json"
["referrer"] => string(55) "https://www.recreationalflying.com/members/robinsm.107/"
["_GET"] => array(7) {
["content_type"] => string(12) "profile_post"
["content_id"] => string(4) "1754"
["rating_type_category_id"] => string(1) "3"
["_xfRequestUri"] => string(21) "/members/robinsm.107/"
["_xfWithData"] => string(1) "1"
["_xfToken"] => string(43) "1521531668,ed80797cd57256161af066951ee35433"
["_xfResponseType"] => string(4) "json"
}
["_POST"] => array(0) {
}
}
- Fix viewing rating lists for profile post & profile post comments
Last time I used the importer, you start it via the GUI and then it gives you the option to complete it via the GUI or CLI. You then switch to CLI and run the command it lists.I'm upgrading our live site from XF1 to XF2 tomorrow. Can someone remind me how to import the ratings from Post Ratings into this via the CLI tools?
screen
or similar)We use essential cookies to make this site work, and optional cookies to enhance your experience.