[XenConcept] Hide links / Medias / Images (BbCode) to guests

[XenConcept] Hide links / Medias / Images (BbCode) to guests [Paid] 2.1.6

No permission to buy ($15.00)

CtrlV

Member
Hello @XenConcept, I found some server error logs here, I would like to share here which maybe fix on the next update, you can also investigate this error.

Server error log:
TypeError: Argument 1 passed to XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html::canDisplayErrorUrl() must be an instance of XF\Entity\Post, null given, called in /home/*******/public_html/src/addons/XenConcept/HideLinkFromGuests/XF/BbCode/Renderer/Html.php on line 110 src/addons/XenConcept/HideLinkFromGuests/BbCode/Renderer/CheckTrait.php:429
Generated by: yolufunmilayo Jun 3, 2020 at 7:28 PM

Stack trace
#0 src/addons/XenConcept/HideLinkFromGuests/XF/BbCode/Renderer/Html.php(110): XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html->canDisplayErrorUrl(NULL)
#1 [internal function]: XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html->renderTagUrl(Array, 'http://moviespy...', Array, Array, Object(XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html))
#2 src/XF/BbCode/Renderer/Html.php(295): call_user_func(Array, Array, 'http://moviespy...', Array, Array, Object(XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html))
#3 src/XF/BbCode/Traverser.php(61): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#4 src/XF/BbCode/Traverser.php(37): XF\BbCode\Traverser->renderSubTree(Array, Array)
#5 src/XF/BbCode/Traverser.php(20): XF\BbCode\Traverser->renderAst(Array, Object(XenConcept\HideBBCode\XF\BbCode\RuleSet), Array)
#6 src/XF/SubContainer/BbCode.php(219): XF\BbCode\Traverser->render('[URL='http://mo...', Object(XF\BbCode\Parser), Object(XenConcept\HideBBCode\XF\BbCode\RuleSet), Array)
#7 src/XF/Template/Templater.php(2038): XF\SubContainer\BbCode->render('[URL='http://mo...', 'html', 'user:signature', Object(Siropu\Shoutbox\XF\Entity\User), Array)
#8 [internal function]: XF\Template\Templater->fnBbCode(Object(XenConcept\HideBBCode\XF\Template\Templater), false, '[URL='http://mo...', 'user:signature', Object(Siropu\Shoutbox\XF\Entity\User))
#9 src/XF/Template/Templater.php(936): call_user_func_array(Array, Array)
#10 internal_data/code_cache/templates/l1/s3/public/message_macros.php(279): XF\Template\Templater->func('bb_code', Array, false)
#11 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(XenConcept\HideBBCode\XF\Template\Templater), Array, Array)
#12 internal_data/code_cache/templates/l1/s3/public/post_macros.php(213): XF\Template\Templater->callMacro('message_macros', 'signature', Array, Array)
#13 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(XenConcept\HideBBCode\XF\Template\Templater), Array, Array)
#14 internal_data/code_cache/templates/l1/s3/public/thread_view.php(536): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#15 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(XenConcept\HideBBCode\XF\Template\Templater), Array)
#16 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#17 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#18 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#19 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#20 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#21 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#22 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#23 src/XF.php(391): XF\App->run()
#24 index.php(20): XF::runApp('XF\\Pub\\App')
#25 {main}

Request state:
array(4) {
["url"] => string(73) "/threads/the-hows-of-us-2018-amzn-1080p-720p-webrip-x265-hevc-alb3rt.254/"
["referrer"] => string(31) "https://*****.com/forums/20/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
There are links on the signature of some thread starter shown in the request state, that's maybe the error. hope it fix
 

XenConcept

Well-known member
Hello @XenConcept, I found some server error logs here, I would like to share here which maybe fix on the next update, you can also investigate this error.

Server error log:


Stack trace


Request state:

There are links on the signature of some thread starter shown in the request state, that's maybe the error. hope it fix

Hello,

Thanks for the information. I'll take a look.
 

XenConcept

Well-known member
@XenConcept
This is Mega.nz link: https://mega.nz/file/4Zh1jJBQ#RivBuJd-AKGPn_yOblCLjkitL55KHcka_hyCr6Fsmaw (full URL with decryption key)

Now when opening the URL through redirection via anonymizer, it opens only https://mega.nz/file/4Zh1jJBQ (means excluding the part from # , so the decryption key does not remain it the link) .

Currently to sort out the issue I've excluded the Mega.nz domain in exclusion list, but you have better solution ?

I'll make a note. I'll look at it as soon as possible.
 

rosal

Active member
The problem its the http://anonym.es/ dont recognize the # and its not the addon.

So one way to bypass this is to implement the list urls will be anonymized, so this way we dont add mega.nz like the list Website Excluted but Website anonymized , only urls in that list will be anonymized.
 

CtrlV

Member
Another server error caused by hidelinks, Please review

Server error log:
Code:
TypeError: Argument 1 passed to XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html::canDisplayErrorUrl() must be an instance of XF\Entity\Post, null given, called in /home/******/public_html/src/addons/XenConcept/HideLinkFromGuests/XF/BbCode/Renderer/Html.php on line 110 src/addons/XenConcept/HideLinkFromGuests/BbCode/Renderer/CheckTrait.php:429
Generated by: fhilix1911 Jun 13, 2020 at 9:07 AM


Stack trace
Code:
#0 src/addons/XenConcept/HideLinkFromGuests/XF/BbCode/Renderer/Html.php(110): XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html->canDisplayErrorUrl(NULL)
#1 [internal function]: XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html->renderTagUrl(Array, 'https://t.co/bf...', Array, Array, Object(XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html))
#2 src/XF/BbCode/Renderer/Html.php(295): call_user_func(Array, Array, 'https://t.co/bf...', Array, Array, Object(XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html))
#3 src/XF/BbCode/Traverser.php(61): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#4 src/XF/BbCode/Renderer/Html.php(306): XF\BbCode\Traverser->renderSubTree(Array, Array)
#5 src/XF/BbCode/Traverser.php(61): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#6 src/XF/BbCode/Renderer/Html.php(987): XF\BbCode\Traverser->renderSubTree(Array, Array)
#7 [internal function]: XF\BbCode\Renderer\Html->renderTagSize(Array, '15px', Array, Array, Object(XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html))
#8 src/XF/BbCode/Renderer/Html.php(295): call_user_func(Array, Array, '15px', Array, Array, Object(XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html))
#9 src/XF/BbCode/Traverser.php(61): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#10 src/XF/BbCode/Traverser.php(37): XF\BbCode\Traverser->renderSubTree(Array, Array)
#11 src/XF/BbCode/Traverser.php(20): XF\BbCode\Traverser->renderAst(Array, Object(XenConcept\HideBBCode\XF\BbCode\RuleSet), Array)
#12 src/XF/SubContainer/BbCode.php(219): XF\BbCode\Traverser->render('[IMG]https://i....', Object(XF\BbCode\Parser), Object(XenConcept\HideBBCode\XF\BbCode\RuleSet), Array)
#13 src/XF/Template/Templater.php(2038): XF\SubContainer\BbCode->render('[IMG]https://i....', 'html', 'user:signature', Object(Siropu\Shoutbox\XF\Entity\User), Array)
#14 [internal function]: XF\Template\Templater->fnBbCode(Object(XenConcept\HideBBCode\XF\Template\Templater), false, '[IMG]https://i....', 'user:signature', Object(Siropu\Shoutbox\XF\Entity\User))
#15 src/XF/Template/Templater.php(936): call_user_func_array(Array, Array)
#16 internal_data/code_cache/templates/l1/s4/public/message_macros.php(279): XF\Template\Templater->func('bb_code', Array, false)
#17 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(XenConcept\HideBBCode\XF\Template\Templater), Array, Array)
#18 internal_data/code_cache/templates/l1/s4/public/post_macros.php(213): XF\Template\Templater->callMacro('message_macros', 'signature', Array, Array)
#19 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(XenConcept\HideBBCode\XF\Template\Templater), Array, Array)
#20 internal_data/code_cache/templates/l1/s4/public/thread_view.php(536): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#21 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(XenConcept\HideBBCode\XF\Template\Templater), Array)
#22 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#23 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#24 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#25 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#26 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#27 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#28 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#29 src/XF.php(391): XF\App->run()
#30 index.php(20): XF::runApp('XF\\Pub\\App')
#31 {main}

Request state:

Code:
array(4) {
  ["url"] => string(61) "/threads/escape-from-pretoria-2020-720p-web-dl-x265-hevc.712/"
  ["referrer"] => string(21) "https://*****.com/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 

XenConcept

Well-known member
Another server error caused by hidelinks, Please review

Server error log:
Code:
TypeError: Argument 1 passed to XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html::canDisplayErrorUrl() must be an instance of XF\Entity\Post, null given, called in /home/******/public_html/src/addons/XenConcept/HideLinkFromGuests/XF/BbCode/Renderer/Html.php on line 110 src/addons/XenConcept/HideLinkFromGuests/BbCode/Renderer/CheckTrait.php:429
Generated by: fhilix1911 Jun 13, 2020 at 9:07 AM


Stack trace
Code:
#0 src/addons/XenConcept/HideLinkFromGuests/XF/BbCode/Renderer/Html.php(110): XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html->canDisplayErrorUrl(NULL)
#1 [internal function]: XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html->renderTagUrl(Array, 'https://t.co/bf...', Array, Array, Object(XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html))
#2 src/XF/BbCode/Renderer/Html.php(295): call_user_func(Array, Array, 'https://t.co/bf...', Array, Array, Object(XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html))
#3 src/XF/BbCode/Traverser.php(61): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#4 src/XF/BbCode/Renderer/Html.php(306): XF\BbCode\Traverser->renderSubTree(Array, Array)
#5 src/XF/BbCode/Traverser.php(61): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#6 src/XF/BbCode/Renderer/Html.php(987): XF\BbCode\Traverser->renderSubTree(Array, Array)
#7 [internal function]: XF\BbCode\Renderer\Html->renderTagSize(Array, '15px', Array, Array, Object(XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html))
#8 src/XF/BbCode/Renderer/Html.php(295): call_user_func(Array, Array, '15px', Array, Array, Object(XenConcept\HideLinkFromGuests\XF\BbCode\Renderer\Html))
#9 src/XF/BbCode/Traverser.php(61): XF\BbCode\Renderer\Html->renderTag(Array, Array)
#10 src/XF/BbCode/Traverser.php(37): XF\BbCode\Traverser->renderSubTree(Array, Array)
#11 src/XF/BbCode/Traverser.php(20): XF\BbCode\Traverser->renderAst(Array, Object(XenConcept\HideBBCode\XF\BbCode\RuleSet), Array)
#12 src/XF/SubContainer/BbCode.php(219): XF\BbCode\Traverser->render('[IMG]https://i....', Object(XF\BbCode\Parser), Object(XenConcept\HideBBCode\XF\BbCode\RuleSet), Array)
#13 src/XF/Template/Templater.php(2038): XF\SubContainer\BbCode->render('[IMG]https://i....', 'html', 'user:signature', Object(Siropu\Shoutbox\XF\Entity\User), Array)
#14 [internal function]: XF\Template\Templater->fnBbCode(Object(XenConcept\HideBBCode\XF\Template\Templater), false, '[IMG]https://i....', 'user:signature', Object(Siropu\Shoutbox\XF\Entity\User))
#15 src/XF/Template/Templater.php(936): call_user_func_array(Array, Array)
#16 internal_data/code_cache/templates/l1/s4/public/message_macros.php(279): XF\Template\Templater->func('bb_code', Array, false)
#17 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(XenConcept\HideBBCode\XF\Template\Templater), Array, Array)
#18 internal_data/code_cache/templates/l1/s4/public/post_macros.php(213): XF\Template\Templater->callMacro('message_macros', 'signature', Array, Array)
#19 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}(Object(XenConcept\HideBBCode\XF\Template\Templater), Array, Array)
#20 internal_data/code_cache/templates/l1/s4/public/thread_view.php(536): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#21 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(XenConcept\HideBBCode\XF\Template\Templater), Array)
#22 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#23 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#24 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#25 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#26 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#27 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#28 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#29 src/XF.php(391): XF\App->run()
#30 index.php(20): XF::runApp('XF\\Pub\\App')
#31 {main}

Request state:

Code:
array(4) {
  ["url"] => string(61) "/threads/escape-from-pretoria-2020-720p-web-dl-x265-hevc.712/"
  ["referrer"] => string(21) "https://*****.com/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Hello,

Are you using the latest version of the add-on?

Regards
 

XenConcept

Well-known member
The problem its the http://anonym.es/ dont recognize the # and its not the addon.

So one way to bypass this is to implement the list urls will be anonymized, so this way we dont add mega.nz like the list Website Excluted but Website anonymized , only urls in that list will be anonymized.

Hello,

I will add this option in the next version.
 

maxicep

Active member
I didn't understand the features exactly. @XenConcept

Screenshot shows the only hiding URL's. But someone says hiding images too ?

The add-on hiding all URL and IMG tags to guests ? Or only URL's ?
And what about attached images ?
 

XenConcept

Well-known member
I didn't understand the features exactly. @XenConcept

Screenshot shows the only hiding URL's. But someone says hiding images too ?

The add-on hiding all URL and IMG tags to guests ? Or only URL's ?
And what about attached images ?

Hello,

The add-on hides the BB Code
  • URL
  • Media
  • Attach
The BB Codes will be hidden from visitors and members who do not validate their email.

Screenshot_1.png
 

yin9

Member
Hi @XenConcept,

I'm planning to update XenForo soon, this add-on works with XF 2.2?

Thanks in advance.

Edit: It seems works well on 2.2.
 
Last edited:

maxicep

Active member
Can someone confirm that that add-on hides the [IMG ] bbcode external images which added to posts.

I'm asking to aouthor but didn't answer yet.
 
Top