[SC] Prefix Filter

[SC] Prefix Filter 2.0.1 Fix 2

No permission to download
WOW!!!! ♥️♥️♥️♥️♥️

Maybe this will help someone else:

In extra.less
Code:
/* SC Prefix Filter show all prefix */
.label
{
    &.label--showAll { .m-labelVariation(white, black, black); }
}
In sc_prefixFilter
Code:
<span class="label label--showAll">{{ phrase('sc_pf_show_all') }}</span>
 
I have an issue. The prefix bar is showing in a forum with one prefix only which is silly but I can't disable it. Can you have it hide if there is only one prefix? My use case is, this is a RSS forum that brings news in and the prefix is News. No one posts in it but I like it to have the News prefix in the new posts lists etc. Thanks
 
I have an issue. The prefix bar is showing in a forum with one prefix only which is silly but I can't disable it. Can you have it hide if there is only one prefix? My use case is, this is a RSS forum that brings news in and the prefix is News. No one posts in it but I like it to have the News prefix in the new posts lists etc. Thanks
Hello, I'm actually updating this add-on with the above suggestions. I'll add this too! :)

Regards, SyTry
 
Hello,

Could you add function to make Prefix Filter will appears only for certain nodes?
 
SyTry updated [SC] Prefix Filter with a new update entry:

Update 2.0.0

Changed :
  • Code modification, now working with XF2.2+
Added :
  • Label color :
    • Red
    • Green
    • Olive
    • Light green
    • Blue
    • Royal blue
    • Sky blue
    • Gray
    • Silver
    • Yellow
    • Orange
    • Error
  • Hide prefixes not used
  • Hide prefixes number
  • Allowed forums
  • Allowed categories (XFRM)
Removed :
  • N/A
Note :
  • If you are running XenForo 2.2+ and you have an older version of...

Read the rest of this update entry...
 
Server error log
LogicException: Macro admin:option_macros :: option_row() error: Could not find repository 'XFRM\Repository\Category' for 'XFRM:Category' src/XF/Mvc/Entity/Manager.php:258
Generated by:
Feb 6, 2021 at 5:25 PM
Stack trace
#0 src/XF/App.php(2741): XF\Mvc\Entity\Manager->getRepository('XFRM:Category')
#1 src/XF.php(854): XF\App->repository('XFRM:Category')
#2 src/addons/SyTryC/PrefixFilter/Option/Category.php(12): XF::repository('XFRM:Category')
#3 [internal function]: SyTryC\PrefixFilter\Option\Category::renderSelectMultiple(Object(XF\Entity\Option), Array)
#4 src/XF/Entity/Option.php(77): call_user_func(Array, Object(XF\Entity\Option), Array)
#5 [internal function]: XF\Entity\Option->renderDisplayCallback(Array)
#6 src/XF/Template/Templater.php(1166): call_user_func_array(Array, Array)
#7 internal_data/code_cache/templates/l3/s0/admin/option_macros.php(206): XF\Template\Templater->method(Object(XF\Entity\Option), 'renderDisplayCa...', Array)
#8 src/XF/Template/Templater.php(799): XF\Template\Templater->{closure}(Object(ThemeHouse\UIX\XF\Template\Templater), Array, NULL)
#9 internal_data/code_cache/templates/l3/s0/admin/addon_options.php(60): XF\Template\Templater->callMacro('option_macros', 'option_row', Array, Array)
#10 src/XF/Template/Templater.php(1626): XF\Template\Templater->{closure}(Object(ThemeHouse\UIX\XF\Template\Templater), Array, NULL)
#11 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('addon_options', Array)
#12 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#13 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:AddOn\\Option...', 'admin:addon_opt...', Array)
#14 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#15 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#16 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#17 src/XF/App.php(2326): XF\Mvc\Dispatcher->run()
#18 src/XF.php(488): XF\App->run()
#19 admin.php(13): XF::runApp('XF\\Admin\\App')
#20 {main}
 
in development mode on addon config page:

Template Compilation Error

admin:option_macros :: option_row() - Could not find repository 'XFRM\Repository\Category' for 'XFRM:Category' in /home/mysite.com/public_html/testforum/src/XF/Mvc/Entity/Manager.php:258
 
Server error log
LogicException: Macro admin:eek:ption_macros :: option_row() error: Could not find repository 'XFRM\Repository\Category' for 'XFRM:Category' src/XF/Mvc/Entity/Manager.php:258
Generated by:
Feb 6, 2021 at 5:25 PM
Stack trace
#0 src/XF/App.php(2741): XF\Mvc\Entity\Manager->getRepository('XFRM:Category')
#1 src/XF.php(854): XF\App->repository('XFRM:Category')
#2 src/addons/SyTryC/PrefixFilter/Option/Category.php(12): XF::repository('XFRM:Category')
#3 [internal function]: SyTryC\PrefixFilter\Option\Category::renderSelectMultiple(Object(XF\Entity\Option), Array)
#4 src/XF/Entity/Option.php(77): call_user_func(Array, Object(XF\Entity\Option), Array)
#5 [internal function]: XF\Entity\Option->renderDisplayCallback(Array)
#6 src/XF/Template/Templater.php(1166): call_user_func_array(Array, Array)
#7 internal_data/code_cache/templates/l3/s0/admin/option_macros.php(206): XF\Template\Templater->method(Object(XF\Entity\Option), 'renderDisplayCa...', Array)
#8 src/XF/Template/Templater.php(799): XF\Template\Templater->{closure}(Object(ThemeHouse\UIX\XF\Template\Templater), Array, NULL)
#9 internal_data/code_cache/templates/l3/s0/admin/addon_options.php(60): XF\Template\Templater->callMacro('option_macros', 'option_row', Array, Array)
#10 src/XF/Template/Templater.php(1626): XF\Template\Templater->{closure}(Object(ThemeHouse\UIX\XF\Template\Templater), Array, NULL)
#11 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('addon_options', Array)
#12 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#13 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:AddOn\\Option...', 'admin:addon_opt...', Array)
#14 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#15 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#16 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#17 src/XF/App.php(2326): XF\Mvc\Dispatcher->run()
#18 src/XF.php(488): XF\App->run()
#19 admin.php(13): XF::runApp('XF\\Admin\\App')
#20 {main}
in development mode on addon config page:

Template Compilation Error

admin:eek:ption_macros :: option_row() - Could not find repository 'XFRM\Repository\Category' for 'XFRM:Category' in /home/mysite.com/public_html/testforum/src/XF/Mvc/Entity/Manager.php:258
Hello, do you have XFRM installed ?
 
Back
Top Bottom