[XenConcept] Hide BBCode

[XenConcept] Hide BBCode [Paid] 2.0.9 Patch 1

No permission to buy ($40.00)
I'm just trying to ascertain if there is an option that will allow users to choose to "like (react) OR reply" to see hidden text. In other words, I apply HIDELIKEREPLY (however you want to word it) to text, and then the user can choose to do either: either reply OR react to see the hidden text. Up to them. So far I see one option that allows them to react only (not react OR reply), another option that allows them reply only (not reply OR react), and another that forces users to do both: react AND reply (if I'm understanding it right).

As for mapping/associating with just "Hide," it looks like there is already an option for that...? I assumed if there was a LIKEREPLY option, I'd already be able to do that.

EDITED to hopefully make it a little clearer.

I will add it in the next version.

HIDEREACTORREPLY

To see the content you must react or respond to the content.


Did I understand well?
 
@XenConcept Can you take a look at this error on a new installation on XenForo 2.2.1
XF\Db\InvalidQueryException: MySQL statement prepare error [1064]: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1 src/XF/Db/AbstractStatement.php:228
Code:
SELECT post_id, message FROM xf_post WHERE post_id IN()
------------

#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException()
#1 src/XF/Db/Mysqli/Statement.php(39): XF\Db\Mysqli\Statement->getException()
#2 src/XF/Db/Mysqli/Statement.php(54): XF\Db\Mysqli\Statement->prepare()
#3 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
#4 src/XF/Db/AbstractAdapter.php(155): XF\Db\AbstractAdapter->query()
#5 src/addons/XenConcept/HideBBCode/Setup.php(46): XF\Db\AbstractAdapter->fetchAll()
#6 src/XF/AddOn/StepRunnerInstallTrait.php(60): XenConcept\HideBBCode\Setup->installStep2()
#7 src/XF/AddOn/StepRunnerInstallTrait.php(27): XenConcept\HideBBCode\Setup->installStepRunner()
#8 src/XF/Admin/Controller/AddOn.php(403): XenConcept\HideBBCode\Setup->install()
#9 src/XF/Mvc/Dispatcher.php(350): XF\Admin\Controller\AddOn->actionInstall()
#10 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass()
#11 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch()
#12 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop()
#13 src/XF/App.php(2300): XF\Mvc\Dispatcher->run()
#14 src/XF.php(465): XF\App->run()
#15 admin.php(13): XF::runApp()
#16 {main}
 
@XenConcept Can you take a look at this error on a new installation on XenForo 2.2.1
XF\Db\InvalidQueryException: MySQL statement prepare error [1064]: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 1 src/XF/Db/AbstractStatement.php:228
Code:
SELECT post_id, message FROM xf_post WHERE post_id IN()
------------

#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException()
#1 src/XF/Db/Mysqli/Statement.php(39): XF\Db\Mysqli\Statement->getException()
#2 src/XF/Db/Mysqli/Statement.php(54): XF\Db\Mysqli\Statement->prepare()
#3 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
#4 src/XF/Db/AbstractAdapter.php(155): XF\Db\AbstractAdapter->query()
#5 src/addons/XenConcept/HideBBCode/Setup.php(46): XF\Db\AbstractAdapter->fetchAll()
#6 src/XF/AddOn/StepRunnerInstallTrait.php(60): XenConcept\HideBBCode\Setup->installStep2()
#7 src/XF/AddOn/StepRunnerInstallTrait.php(27): XenConcept\HideBBCode\Setup->installStepRunner()
#8 src/XF/Admin/Controller/AddOn.php(403): XenConcept\HideBBCode\Setup->install()
#9 src/XF/Mvc/Dispatcher.php(350): XF\Admin\Controller\AddOn->actionInstall()
#10 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass()
#11 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch()
#12 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop()
#13 src/XF/App.php(2300): XF\Mvc\Dispatcher->run()
#14 src/XF.php(465): XF\App->run()
#15 admin.php(13): XF::runApp()
#16 {main}
Hello,

I don't have any error, nor did I manage to generate it. Did you try to change the version of PHP?
 
Bug with the latest BBCode?

Code:
Server error log
ErrorException: Template error: Template public:xc_hide_bbcode_editor_dialog_hide_reply_or_react is unknown src/XF/Template/Templater.php:664
Generated by: hey78 Nov 11, 2020 at 4:40 AM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError()
#1 src/XF/Template/Templater.php(664): trigger_error()
#2 src/XF/Template/Templater.php(1576): XF\Template\Templater->getTemplateData()
#3 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate()
#4 src/XF/Mvc/Renderer/Json.php(84): XF\Template\Template->render()
#5 src/XF/Mvc/Renderer/Json.php(68): XF\Mvc\Renderer\Json->renderHtmlFallback()
#6 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Json->renderView()
#7 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView()
#8 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply()
#9 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render()
#10 src/XF/App.php(2300): XF\Mvc\Dispatcher->run()
#11 src/XF.php(465): XF\App->run()
#12 index.php(20): XF::runApp()
#13 {main}
Request state
array(4) {
  ["url"] => string(202) "/index.php?editor/dialog&dialog=hideReplyOrReact&_xfRequestUri=%2Fforums%2Fforum.94%2Fpost-thread&_xfWithData=1&_xfToken=1605040699%2C214149f7492cc833ae248dd05028bbb5&_xfResponseType=json"
  ["referrer"] => string(63) "https://domain.com/forums/forum.94/post-thread"
  ["_GET"] => array(6) {
    ["editor/dialog"] => string(0) ""
    ["dialog"] => string(16) "hideReplyOrReact"
    ["_xfRequestUri"] => string(43) "/forums/forum.94/post-thread"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(43) "1605040699,214149f7492cc833ae248dd05028bbb5"
    ["_xfResponseType"] => string(4) "json"
  }
  ["_POST"] => array(0) {
  }
}

I can't use it for now because of the error.
 
Thanks for the quick fix.
However I got new issue now :).

Happens on Article thread...
After you react or reply as required by this addon, 1st post display becomes normal thread view instead of article view.
 
Bug on the latest version :(
HidePost and HideReact can't be used anymore, always show [Hidden content] once posted a thread.
 
Not sure if possible to downgrade :(

But this BBCodes is not working now.
HIDEPOSTS
HIDEREACT
HIDEUSER


Only HIDEREPLYORREACT is working.
 
Hello,

@XenConcept

I'm unable to get the drop-down icon to display on the toolbar. I've even tried a reset. I've noticed is doesn't even show on the preview, no matter where you place it. Look here:

View attachment 239602

Any suggestions?
You can test :

You can go to: admin.php?button-manager/ and go to: Editor dropdowns and click on the button dedicated to it, and just make save

Regards, CRUEL-MODZ
 
Hello,


You can test :

You can go to: admin.php?button-manager/ and go to: Editor dropdowns and click on the button dedicated to it, and just make save

Regards, CRUEL-MODZ
Eck, thanks. I didn't even realize you'd replied, didn't see an alert, and I deleted my post. I realized belatedly that I had to make changes under the Options settings as well as permissions. I was just so used to doing things a certain way with the previous addon that I used for this, that it didn't occur to me to check there first. 🤪
 
Top Bottom