[XenConcept] Hide BBCode

[XenConcept] Hide BBCode [Paid] 2.1.3

No permission to buy ($40.00)
Hi, I have a problem with my BBCODE icon, It does not show the hide icon on bbcode editor to some of forum nodes but using the code like [HIDEUSER=1] is working.

Iam confident that i set the proper node permission.

I suspect that it is because of this addon https://xenforo.com/community/resources/editor-bb-code-manager.5657/
I remember that i edited the icon and then when i uninstalled that, it makes some issue in bbcode editor.

Do you have any idea to restore it? I tried uninstall the editor-bb-code-manager but still bug exist.
 
Hi, I have a problem with my BBCODE icon, It does not show the hide icon on bbcode editor to some of forum nodes but using the code like [HIDEUSER=1] is working.

Iam confident that i set the proper node permission.

I suspect that it is because of this addon https://xenforo.com/community/resources/editor-bb-code-manager.5657/
I remember that i edited the icon and then when i uninstalled that, it makes some issue in bbcode editor.

Do you have any idea to restore it? I tried uninstall the editor-bb-code-manager but still bug exist.
Hello,

Can you contact me in DM ?
 
1725412318781.webp

Any work around when using 2.3.3 and this plugin with the featured content option so that is nulls "hidden content" or any hidden features?
 
Upgraded to Xen 2.3.3 and this new version for 2.3 and I get the following error on console.


1725437251044.webp
It appears to be missing from the archive. Having checked the archive;

Code:
FILENAME: template_modifications.xml

<replace>
<replace>
<![CDATA[ <xf:js src="xenconcept/hidebbcode/editor.js" addon="XenConcept/HideBbCode" min="1" /> <xf:js src="xenconcept/hidebbcode/insert-hide-button.js" addon="XenConcept/HideBbCode" min="1" /> $0 ]]>
</replace>

1725437808677.webp


Hopefully this can be fixed.
 
another

Code:
Server error log
ErrorException: Template error: [E_USER_WARNING] Macro public:xc_hide_bbcode_editor_dialog_hide_macros:media is unknown src/XF/Template/Templater.php:749
Generated by: arwekaj09 Sep 4, 2024 at 1:59 PM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/domain/...', 749)
#1 src/XF/Template/Templater.php(749): trigger_error('Macro public:xc...', 512)
#2 src/XF/Template/Templater.php(868): XF\Template\Templater->getTemplateMacro('public', 'xc_hide_bbcode_...', 'media')
#3 src/addons/MaZ/AMP/XF/Template/Templater.php(159): XF\Template\Templater->callMacro('xc_hide_bbcode_...', 'media', Array, Array, NULL)
#4 internal_data/code_cache/templates/l1/s10/public/xc_hide_bbcode_editor_dialog_hide.php(16): MaZ\AMP\XF\Template\TemplaterAbstract->callMacro('xc_hide_bbcode_...', 'media', Array, Array)
#5 src/XF/Template/Templater.php(1792): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, NULL)
#6 src/addons/MaZ/AMP/Traits/Templater/XF22.php(52): XF\Template\Templater->renderTemplate('xc_hide_bbcode_...', Array, true, NULL)
#7 src/addons/MaZ/AUN/XF/Template/Templater.php(39): MaZ\AMP\XF\Template\Templater->renderTemplate('public:xc_hide_...', Array, true, NULL)
#8 src/XF/Template/Template.php(24): MaZ\AUN\XF\Template\Templater->renderTemplate('public:xc_hide_...', Array)
#9 src/XF/Mvc/Renderer/Json.php(86): XF\Template\Template->render()
#10 src/XF/Mvc/Renderer/Json.php(70): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:Editor\\Dialo...', 'public:xc_hide_...', Array)
#11 src/XF/Mvc/Dispatcher.php(471): XF\Mvc\Renderer\Json->renderView('XF:Editor\\Dialo...', 'public:xc_hide_...', Array)
#12 src/XF/Mvc/Dispatcher.php(453): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#13 src/XF/Mvc/Dispatcher.php(412): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#14 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#15 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#16 src/XF.php(806): XF\App->run()
#17 index.php(23): XF::runApp('XF\\Pub\\App')
#18 {main}
Request state
array(4) {
  ["url"] => string(230) "/index.php?editor/dialog&dialog=media&_xfResponseType=json&_xfWithData=1&_xfRequestUri=%2Fthreads%2Fshare-asura-ran-online-th-eng-source-code-no-more-selling.1228709%2Fpage-39&_xfToken=1725446604%2Ca23d66da0b31c68ecc0c8b4182658aa3"
  ["referrer"] => string(108) "https://forum.domain.com/threads/share-asura-ran-online-th-eng-source-code-no-more-selling.1228709/page-39"
  ["_GET"] => array(6) {
    ["editor/dialog"] => string(0) ""
    ["dialog"] => string(5) "media"
    ["_xfResponseType"] => string(4) "json"
    ["_xfWithData"] => string(1) "1"
    ["_xfRequestUri"] => string(82) "/threads/share-asura-ran-online-th-eng-source-code-no-more-selling.1228709/page-39"
    ["_xfToken"] => string(43) "1725446604,a23d66da0b31c68ecc0c8b4182658aa3"
  }
  ["_POST"] => array(0) {
  }
}
 
another

Code:
Server error log
ErrorException: Template error: [E_USER_WARNING] Macro public:xc_hide_bbcode_editor_dialog_hide_macros:media is unknown src/XF/Template/Templater.php:749
Generated by: arwekaj09 Sep 4, 2024 at 1:59 PM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/domain/...', 749)
#1 src/XF/Template/Templater.php(749): trigger_error('Macro public:xc...', 512)
#2 src/XF/Template/Templater.php(868): XF\Template\Templater->getTemplateMacro('public', 'xc_hide_bbcode_...', 'media')
#3 src/addons/MaZ/AMP/XF/Template/Templater.php(159): XF\Template\Templater->callMacro('xc_hide_bbcode_...', 'media', Array, Array, NULL)
#4 internal_data/code_cache/templates/l1/s10/public/xc_hide_bbcode_editor_dialog_hide.php(16): MaZ\AMP\XF\Template\TemplaterAbstract->callMacro('xc_hide_bbcode_...', 'media', Array, Array)
#5 src/XF/Template/Templater.php(1792): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, NULL)
#6 src/addons/MaZ/AMP/Traits/Templater/XF22.php(52): XF\Template\Templater->renderTemplate('xc_hide_bbcode_...', Array, true, NULL)
#7 src/addons/MaZ/AUN/XF/Template/Templater.php(39): MaZ\AMP\XF\Template\Templater->renderTemplate('public:xc_hide_...', Array, true, NULL)
#8 src/XF/Template/Template.php(24): MaZ\AUN\XF\Template\Templater->renderTemplate('public:xc_hide_...', Array)
#9 src/XF/Mvc/Renderer/Json.php(86): XF\Template\Template->render()
#10 src/XF/Mvc/Renderer/Json.php(70): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:Editor\\Dialo...', 'public:xc_hide_...', Array)
#11 src/XF/Mvc/Dispatcher.php(471): XF\Mvc\Renderer\Json->renderView('XF:Editor\\Dialo...', 'public:xc_hide_...', Array)
#12 src/XF/Mvc/Dispatcher.php(453): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#13 src/XF/Mvc/Dispatcher.php(412): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#14 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#15 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#16 src/XF.php(806): XF\App->run()
#17 index.php(23): XF::runApp('XF\\Pub\\App')
#18 {main}
Request state
array(4) {
  ["url"] => string(230) "/index.php?editor/dialog&dialog=media&_xfResponseType=json&_xfWithData=1&_xfRequestUri=%2Fthreads%2Fshare-asura-ran-online-th-eng-source-code-no-more-selling.1228709%2Fpage-39&_xfToken=1725446604%2Ca23d66da0b31c68ecc0c8b4182658aa3"
  ["referrer"] => string(108) "https://forum.domain.com/threads/share-asura-ran-online-th-eng-source-code-no-more-selling.1228709/page-39"
  ["_GET"] => array(6) {
    ["editor/dialog"] => string(0) ""
    ["dialog"] => string(5) "media"
    ["_xfResponseType"] => string(4) "json"
    ["_xfWithData"] => string(1) "1"
    ["_xfRequestUri"] => string(82) "/threads/share-asura-ran-online-th-eng-source-code-no-more-selling.1228709/page-39"
    ["_xfToken"] => string(43) "1725446604,a23d66da0b31c68ecc0c8b4182658aa3"
  }
  ["_POST"] => array(0) {
  }
}

Found what triggers it, it's the media embed icon.

View attachment bug.mp4
 
Fixed myself for now. For those wanting to resolve;

open file: addons/XenConcept/HideBBCode/hashes.json
  • replace the template_modifications.xml string with this
Code:
 "src/addons/XenConcept/HideBBCode/_data/template_modifications.xml": "89fa1dfe4d35a6158ae982feaec32395549a348aa956834d3ef5db1005057f15",

open file: addons/XenConcept/HideBBCode/_data/template_modifications.xml
  • find
Code:
<replace>
<![CDATA[ <xf:js src="xenconcept/hidebbcode/editor.js" addon="XenConcept/HideBbCode" min="1" /> <xf:js src="xenconcept/hidebbcode/insert-hide-button.js" addon="XenConcept/HideBbCode" min="1" /> $0 ]]>
</replace>

replace with

Code:
<replace>
<![CDATA[ $0 <xf:js addon="XenConcept/HideBbCode" src="xenconcept/hidebbcode/message.js" min="1" /> ]]>
</replace>

then go to admin.php?add-ons/ -> [XenConcept] Hide BBCode 2.1.0 and rebuild.

1726042622869.webp

Temp fix to remove the annoying missing file warning in console. It's also worth noting that the latest build also has message.js and message.min.js from the build, where as the previous version has them.
 
Last edited:
I didn’t enter the full XenForo license information when purchasing and downloading, and now the forum registration isn’t working. However, I can’t reach you. What should I do next?
 
I just want also to share bug, If you edit URL portion of node, The hide BBCode icon will not show!

Any way to fix this?
hidden.webp
 
XenConcept updated [XenConcept] Hide BBCode with a new update entry:

New release 2.1.1

Add :
  • Add support for XF resource manager
  • Add option for hide the "hidden content" message
Fix :
  • Fix error Filterer 'limit' has already been registered
  • Fix error with the node containing the url portion
  • Fix error with the media bbcode
  • Fix the js error GET [URL]https://forum.domain.com/js/xenconcept/hidebbcode/insert-hide-button.min.js?_v=90482184[/URL] net::ERR_ABORTED 404 (Not Found)

Read the rest of this update entry...
 
please help
  • ErrorException: Template error: [E_WARNING] Attempt to read property "user_id" on null
  • src/addons/XenConcept/HideBBCode/BbCode/HideBbCodeTrait.php:576
Code:
#0 src/addons/XenConcept/HideBBCode/BbCode/HideBbCodeTrait.php(576): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Att...', '/home/hostingun...', 576)
#1 src/addons/XenConcept/HideBBCode/BbCode/HideBbCodeTrait.php(109): XenConcept\HideBBCode\XF\BbCode\Renderer\Html->checkHideThanks(Object(XFRM\Entity\ResourceUpdate), NULL)
#2 src/XF/BbCode/Renderer/Html.php(349): XenConcept\HideBBCode\XF\BbCode\Renderer\Html->renderTagHideThanks(Array, NULL, Array, Array, Object(XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html))
#3 src/addons/s9e/MediaSites/XF/BbCode/Renderer/Html.php(17): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#4 src/XF/BbCode/Traverser.php(63): s9e\MediaSites\XF\BbCode\Renderer\Html->renderTag(Array, Array)
#5 src/XF/BbCode/Traverser.php(39): XF\BbCode\Traverser->renderSubTree(Array, Array)
#6 src/XF/BbCode/Traverser.php(22): XF\BbCode\Traverser->renderAst(Array, Object(SV\SignupAbuseBlocking\XF\BbCode\RuleSet), Array)
#7 src/XF/SubContainer/BbCode.php(236): XF\BbCode\Traverser->render('[HIDETHANKS](y)...', Object(XF\BbCode\Parser), Object(SV\SignupAbuseBlocking\XF\BbCode\RuleSet), Array)
#8 src/XF/Template/Templater.php(2608): XF\SubContainer\BbCode->render('[HIDETHANKS](y)...', 'html', 'resource_update', Object(XFRM\Entity\ResourceUpdate), Array)
#9 src/addons/SV/WarningImprovements/XF/Template/Templater.php(34): XF\Template\Templater->fnBbCode(Object(SV\StandardLib\XF\Template\Templater), false, '[HIDETHANKS](y)...', 'resource_update', Object(XFRM\Entity\ResourceUpdate), Array, 'html')
#10 src/XF/Template/Templater.php(1220): SV\WarningImprovements\XF\Template\Templater->fnBbCode(Object(SV\StandardLib\XF\Template\Templater), false, '[HIDETHANKS](y)...', 'resource_update', Object(XFRM\Entity\ResourceUpdate))
#11 internal_data/code_cache/templates/l13/s145/public/xfrm_resource_view.php(102): XF\Template\Templater->func('bb_code', Array, false)
#12 src/XF/Template/Templater.php(1800): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#13 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('xfrm_resource_v...', Array)
#14 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#15 src/XF/Mvc/Dispatcher.php(471): XF\Mvc\Renderer\Html->renderView('XFRM:ResourceIt...', 'public:xfrm_res...', Array)
#16 src/XF/Mvc/Dispatcher.php(453): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#17 src/XF/Mvc/Dispatcher.php(412): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#18 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#19 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#20 src/XF.php(806): XF\App->run()
#21 index.php(23): XF::runApp('XF\\Pub\\App')
#22 {main}
 
Back
Top Bottom