trophy_category.nerdface_posts
prior to saving for example), and then revert the duplicates. This was reported as early as v1.3.0?(X/Y)
? 'earned': {$trophiesEarned.{$categoryId}},
'total': count({$trophies.{$categoryId}})
'earned': {$trophy.level},
'total': $trophy.max_level
I had to go and save the category phrases for them to show correctly (shown astrophy_category.nerdface_posts
prior to saving for example), and then revert the duplicates. This was reported as early as v1.3.0?
A "You've earned 1 out of 1 trophies in this category" issue has also not been fixed from v1.2.4 - it feels like you've tried to overcomplicate this, given that you already have working code available from the most recently earned trophy within a category(X/Y)
?
I simply used it and changed this:
To this:Code:'earned': {$trophiesEarned.{$categoryId}}, 'total': count({$trophies.{$categoryId}})
Seems to work like a charm?Code:'earned': {$trophy.level}, 'total': $trophy.max_level
I know this is an add-on which you've kindly continued to provide at no cost and have supported with further updates, but it still carries your [TH] brand and should represent a quality that you provide to potential customers for your other premium add-ons.
Not sure what you're trying to accomplish with this code. It may work if all trophies are successors of one another, but that's not valid for all categories.
InvalidArgumentException: Unknown relation Predecessor src/XF/Mvc/Entity/Entity.php:457
Generated by: xxx Apr 24, 2019 at 11:10 AM
Stack trace
#0 src/addons/ThemeHouse/UserImprovements/XF/Entity/Trophy.php(63): XF\Mvc\Entity\Entity->hydrateRelation('Predecessor', Object(ThemeHouse\UserImprovements\XF\Entity\Trophy))
#1 src/XF/Mvc/Entity/Entity.php(1208): ThemeHouse\UserImprovements\XF\Entity\Trophy->_postSave()
#2 src/XF/Mvc/FormAction.php(69): XF\Mvc\Entity\Entity->save(true, false)
#3 src/XF/Mvc/FormAction.php(187): XF\Mvc\FormAction->XF\Mvc\{closure}(Object(XF\Mvc\FormAction))
#4 src/XF/Admin/Controller/Trophy.php(97): XF\Mvc\FormAction->run()
#5 src/XF/Mvc/Dispatcher.php(321): XF\Admin\Controller\Trophy->actionSave(Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(244): XF\Mvc\Dispatcher->dispatchClass('XF:Trophy', 'Save', Object(XF\Mvc\RouteMatch), Object(ThemeHouse\UserImprovements\XF\Admin\Controller\Trophy), NULL)
#7 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(ThemeHouse\UserImprovements\XF\Admin\Controller\Trophy), NULL)
#8 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#10 src/XF.php(390): XF\App->run()
#11 admin.php(13): XF::runApp('XF\\Admin\\App')
#12 {main}
Request state
array(4) {
["url"] => string(26) "/admin.php?trophies/2/save"
["referrer"] => string(55) "xxx/admin.php?trophies/2/edit"
["_GET"] => array(1) {
["trophies/2/save"] => string(0) ""
}
["_POST"] => array(13) {
["title"] => string(13) "100 Post Mark"
["trophy_points"] => string(1) "5"
["th_predecessor"] => string(1) "1"
["th_trophy_category_id"] => string(7) "posting"
["th_icon_type"] => string(2) "fa"
["th_icon_fa"] => string(19) "far fa-comment-dots"
["th_icon_css"] => string(0) ""
["description"] => string(43) "100 messages posted. You must like it here!"
["user_criteria"] => array(1) {
["messages_posted"] => array(2) {
["rule"] => string(15) "messages_posted"
["data"] => array(1) {
["messages"] => string(3) "100"
}
}
}
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(26) "/admin.php?trophies/2/edit"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
I was wondering the same in regard to selection.For users with a limited number of trophies in their showcase, how can they select which trophies appear?
Also, it seems like trophy image CSS doesn't apply on the trophy help page.
ErrorException: [E_NOTICE] Undefined variable: error src/addons/ThemeHouse/UserImprovements/Pub/Controller/Trophy.php:160
Generated by: xxx Apr 24, 2019 at 5:04 PM
Stack trace
#0 src/addons/ThemeHouse/UserImprovements/Pub/Controller/Trophy.php(160): XF::handlePhpError(8, '[E_NOTICE] Unde...', '/xxx/xxx/...', 160, Array)
#1 src/addons/ThemeHouse/UserImprovements/Pub/Controller/Trophy.php(38): ThemeHouse\UserImprovements\Pub\Controller\Trophy->assertViewableTrophy('65')
#2 src/XF/Mvc/Dispatcher.php(321): ThemeHouse\UserImprovements\Pub\Controller\Trophy->actionView(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(244): XF\Mvc\Dispatcher->dispatchClass('ThemeHouse\\User...', 'View', Object(XF\Mvc\RouteMatch), Object(ThemeHouse\UserImprovements\Pub\Controller\Trophy), Object(XF\Mvc\Reply\Reroute))
#4 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(ThemeHouse\UserImprovements\Pub\Controller\Trophy), Object(XF\Mvc\Reply\Reroute))
#5 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#7 src/XF.php(390): XF\App->run()
#8 index.php(20): XF::runApp('XF\\Pub\\App')
#9 {main}
Please could you offer any further details on "supported criteria"?Added a trophy progress bar for certain supported criteria
You should be able to click the trophy showcase to make your selection.For users with a limited number of trophies in their showcase, how can they select which trophies appear?
I've forwarded this to our issue tracker.Also, it seems like trophy image CSS doesn't apply on the trophy help page.
Currently reaction score and message count.Please could you offer any further details on "supported criteria"?
Changes:
- Resolved an issue that would prevent trophy icon CSS to be applied on the trophy help page.
- Resolved an issue that would prevent setting trophy predecessors on trophy edit.
ErrorException: [E_WARNING] Invalid argument supplied for foreach() src/addons/ThemeHouse/UserImprovements/Pub/TemplaterTemplatePreRender.php:37
Generated by: xxxx May 2, 2019 at 12:44 AM
Stack trace
#0 src/addons/ThemeHouse/UserImprovements/Pub/TemplaterTemplatePreRender.php(37): XF::handlePhpError(2, '[E_WARNING] Inv...', '/var/www/vhosts...', 37, Array)
#1 [internal function]: ThemeHouse\UserImprovements\Pub\TemplaterTemplatePreRender::memberAbout(Object(xenMade\LD\XF\Template\Templater), 'public', 'member_about', Array)
#2 src/XF/Extension.php(50): call_user_func_array(Array, Array)
#3 src/XF/App.php(2647): XF\Extension->fire('templater_templ...', Array, 'public:member_a...')
#4 src/XF/Template/Templater.php(1283): XF\App->fire('templater_templ...', Array, 'public:member_a...')
#5 src/addons/AL/ResourceFilter/XF/Template/Templater.php(87): XF\Template\Templater->renderTemplate('member_about', Array, true)
#6 src/XF/Template/Template.php(24): AL\ResourceFilter\XF\Template\Templater->renderTemplate('public:member_a...', Array)
#7 src/XF/Mvc/Renderer/Json.php(84): XF\Template\Template->render()
#8 src/XF/Mvc/Renderer/Json.php(68): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:Member\\About', 'public:member_a...', Array)
#9 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Json->renderView('XF:Member\\About', 'public:member_a...', Array)
#10 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#12 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#13 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#14 src/XF.php(390): XF\App->run()
#15 index.php(20): XF::runApp('XF\\Pub\\App')
#16 {main}
Request state
array(4) {
["url"] => string(158) "/mitglieder/xxx/about?_xfRequestUri=%2Fmitglieder%2Fnwo14.40%2F&_xfWithData=1&_xfToken=1556750663%2C1b703b8544cb9f1649cd2256dff2795d&_xfResponseType=json"
["referrer"] => string(49) "https://www.xyz.com/mitglieder/xxxx/"
["_GET"] => array(4) {
["_xfRequestUri"] => string(21) "/mitglieder/xxxx/"
["_xfWithData"] => string(1) "1"
["_xfToken"] => string(43) "1556750663,1b703b8544cb9f1649cd2256dff2795d"
["_xfResponseType"] => string(4) "json"
}
["_POST"] => array(0) {
}
}
Since Update to XF 2.1.2 we get this error... happens when user trying to open the "about me" tab in profile. It does not load...
Code:ErrorException: [E_WARNING] Invalid argument supplied for foreach() src/addons/ThemeHouse/UserImprovements/Pub/TemplaterTemplatePreRender.php:37 Generated by: xxxx May 2, 2019 at 12:44 AM Stack trace #0 src/addons/ThemeHouse/UserImprovements/Pub/TemplaterTemplatePreRender.php(37): XF::handlePhpError(2, '[E_WARNING] Inv...', '/var/www/vhosts...', 37, Array) #1 [internal function]: ThemeHouse\UserImprovements\Pub\TemplaterTemplatePreRender::memberAbout(Object(xenMade\LD\XF\Template\Templater), 'public', 'member_about', Array) #2 src/XF/Extension.php(50): call_user_func_array(Array, Array) #3 src/XF/App.php(2647): XF\Extension->fire('templater_templ...', Array, 'public:member_a...') #4 src/XF/Template/Templater.php(1283): XF\App->fire('templater_templ...', Array, 'public:member_a...') #5 src/addons/AL/ResourceFilter/XF/Template/Templater.php(87): XF\Template\Templater->renderTemplate('member_about', Array, true) #6 src/XF/Template/Template.php(24): AL\ResourceFilter\XF\Template\Templater->renderTemplate('public:member_a...', Array) #7 src/XF/Mvc/Renderer/Json.php(84): XF\Template\Template->render() #8 src/XF/Mvc/Renderer/Json.php(68): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:Member\\About', 'public:member_a...', Array) #9 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Json->renderView('XF:Member\\About', 'public:member_a...', Array) #10 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View)) #11 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View)) #12 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json') #13 src/XF/App.php(2177): XF\Mvc\Dispatcher->run() #14 src/XF.php(390): XF\App->run() #15 index.php(20): XF::runApp('XF\\Pub\\App') #16 {main} Request state array(4) { ["url"] => string(158) "/mitglieder/xxx/about?_xfRequestUri=%2Fmitglieder%2Fnwo14.40%2F&_xfWithData=1&_xfToken=1556750663%2C1b703b8544cb9f1649cd2256dff2795d&_xfResponseType=json" ["referrer"] => string(49) "https://www.xyz.com/mitglieder/xxxx/" ["_GET"] => array(4) { ["_xfRequestUri"] => string(21) "/mitglieder/xxxx/" ["_xfWithData"] => string(1) "1" ["_xfToken"] => string(43) "1556750663,1b703b8544cb9f1649cd2256dff2795d" ["_xfResponseType"] => string(4) "json" } ["_POST"] => array(0) { } }
Had to disable your addon unfortunately.
You're editing the wrong style properties. The level progress widget is managed under Style Properties > User Title Ladder > Progress bar.The styling does not work:
There is only one User title ladder (ACP > Users > User customization > User title ladder).What is the criteria for Next level progress bar when we have 4 or 5 trophy categories, or can we display more then one progress bar at a time?
You can change the icon through CSS, but there's no built-in way to change the icon.Hi, Pardon me if this is already asked here, How can we change the icon which indicates you earned this trophy?
Publishing a fix in a bit.Since Update to XF 2.1.2 we get this error... happens when user trying to open the "about me" tab in profile. It does not load...
We use essential cookies to make this site work, and optional cookies to enhance your experience.