[XenConcept] Hide BBCode

[XenConcept] Hide BBCode [Paid] 2.0.9 Patch 1

No permission to buy ($40.00)
"Hide reply or reaction" icon is not listed in "Settings BBCode-Buttons".
See attachement
 

Attachments

  • Auswahl_002.webp
    Auswahl_002.webp
    8 KB · Views: 5
Is this the solution for "my" issue? ( #262 )

I speak in german now. It's very hard in english ^^

Der Editor & BB Code Manager von Lukas W. kann den standard für HIDE auf reply oder reaction einstellen.
Das ist sehr wichtig, wenn man von vB kommt und eine grosse Datenbank hat.
Man sollte den standard von HIDE auch auf react stellen können.

Sorry. Pls use a translator ^^
 
Last edited:
Hello,

Sorry I forgot to post my answer.

I've reinstalled the add-on and I can't reproduce the problem.

Do you have the latest version of the add-on.
2.0.7 Patch Level 3

Sorry, I have a inofficial version of it. But before I pay for a addon, I want know.
 
2.0.7 Patch Level 3

Sorry, I have a inofficial version of it. But before I pay for a addon, I want know.

Did you replace the files properly?

I pence that a file was not uploaded correctly.

Find: XenConcept/HideBBCode/Listener/Listener.php
 
Here my listener.php file on the server:

Code:
<?php

/*************************************************************************
* Hide BBCode - XenConcept (c) 2020
* All Rights Reserved.
**************************************************************************
* This file is subject to the terms and conditions defined in the Licence
* Agreement available at Try it like it buy it :)
*************************************************************************/

namespace XenConcept\HideBBCode\Listener;

use XF\Repository\Reaction;
use XF\Repository\UserGroup;

class Listener
{

    protected static $_productId = 36;

    public static function appPubSetup(\XF\App $app)
    {
        $branding = $app->offsetExists('xenconcept_branding') ? $app->xenconcept_branding : [];

        $branding[] = self::$_productId;

        $app->xenconcept_branding = $branding;
    }

    /**
     * @param array $data
     *    -> dialog
     *    -> view
     *    -> template
     *    -> params
     * @param \XF\Pub\Controller\AbstractController $controller
     */
    public static function editorDialog(array &$data, \XF\Pub\Controller\AbstractController $controller)
    {
        $template = '';

        switch ($data['dialog'])
        {
            case 'hide':
                $template = 'xc_hide_bbcode_editor_dialog_hide';
                break;
            case 'hideReply':
                $template = 'xc_hide_bbcode_editor_dialog_hide_reply';
                break;
            case 'hidePosts':
                $template = 'xc_hide_bbcode_editor_dialog_hide_posts';
                break;
            case 'hideTrophy':
                $template = 'xc_hide_bbcode_editor_dialog_hide_trophy';
                break;
            case 'hideReactScore':
                $template = 'xc_hide_bbcode_editor_dialog_hide_react_score';
                break;
            case 'hideReplyReact':
                $template = 'xc_hide_bbcode_editor_dialog_hide_reply_react';
                $data['params']['reactions'] = $controller->repository('XF:Reaction')->findReactionsForList(true)->fetch()->pluckNamed('title', 'reaction_id');
                break;
            case 'hideReplyOrReact':
                $template = 'xc_hide_bbcode_editor_dialog_hide_reply_or_react';
                $data['params']['reactions'] = $controller->repository('XF:Reaction')->findReactionsForList(true)->fetch()->pluckNamed('title', 'reaction_id');
                break;
            case 'hideReact':
                $template = 'xc_hide_bbcode_editor_dialog_hide_react';
                $data['params']['reactions'] = $controller->repository('XF:Reaction')->findReactionsForList(true)->fetch()->pluckNamed('title', 'reaction_id');
                break;
            case 'hideShowtogroup':
                $template = 'xc_hide_bbcode_editor_dialog_hide_showtogroup';
                $data['params']['userGroups'] = $controller->repository('XF:UserGroup')->getUserGroupTitlePairs();
                break;
            case 'hideUser':
                $template = 'xc_hide_bbcode_editor_dialog_hide_user';
                break;
        }

        if (!empty($template))
        {
            $data['template'] = $template;
        }
    }

    public static function editorButtonData(array &$buttons, \XF\Data\Editor $editorData)
    {
        $fa = 'fa-eye-slash';

        $hideButtons = [
            'xcHideDefault' => [
                'fa'    => $fa,
                'title' => \XF::phrase('xc_hide_bbcode.hide')
            ],
            'xcHidePosts' => [
                'fa'    => $fa,
                'title' => \XF::phrase('xc_hide_bbcode.hide_posts')
            ],
            'xcHideReplyReact' => [
                'fa'    => $fa,
                'title' => \XF::phrase('xc_hide_bbcode.hide_reply_react')
            ],
            'xcHideReply' => [
                'fa'    => $fa,
                'title' => \XF::phrase('xc_hide_bbcode.hide_reply')
            ],
            'xcHideReact' => [
                'fa'    => $fa,
                'title' => \XF::phrase('xc_hide_bbcode.hide_react')
            ],
            'xcHideShowToGroup' => [
                'fa'    => $fa,
                'title' => \XF::phrase('xc_hide_bbcode.hide_showtogroups')
            ],
            'xcHideUser' => [
                'fa' => $fa,
                'title' => \XF::phrase('xc_hide_bbcode.hide_user')
            ],
            'xcHideTrophy' => [
                'fa' => $fa,
                'title' => \XF::phrase('xc_hide_bbcode.hide_trophy')
            ],
            'xcHideReactScore' => [
                'fa' => $fa,
                'title' => \XF::phrase('xc_hide_bbcode.hide_react_score')
            ],
        ];

        $buttons = array_merge($buttons, $hideButtons);
    }
}

And I must have the setting [HIDE] = react
 
Last edited:
Here my listener.php file on the server:

Code:
<?php

/*************************************************************************
* Hide BBCode - XenConcept (c) 2020
* All Rights Reserved.
**************************************************************************
* This file is subject to the terms and conditions defined in the Licence
* Agreement available at Try it like it buy it :)
*************************************************************************/

namespace XenConcept\HideBBCode\Listener;

use XF\Repository\Reaction;
use XF\Repository\UserGroup;

class Listener
{

    protected static $_productId = 36;

    public static function appPubSetup(\XF\App $app)
    {
        $branding = $app->offsetExists('xenconcept_branding') ? $app->xenconcept_branding : [];

        $branding[] = self::$_productId;

        $app->xenconcept_branding = $branding;
    }

    /**
     * @param array $data
     *    -> dialog
     *    -> view
     *    -> template
     *    -> params
     * @param \XF\Pub\Controller\AbstractController $controller
     */
    public static function editorDialog(array &$data, \XF\Pub\Controller\AbstractController $controller)
    {
        $template = '';

        switch ($data['dialog'])
        {
            case 'hide':
                $template = 'xc_hide_bbcode_editor_dialog_hide';
                break;
            case 'hideReply':
                $template = 'xc_hide_bbcode_editor_dialog_hide_reply';
                break;
            case 'hidePosts':
                $template = 'xc_hide_bbcode_editor_dialog_hide_posts';
                break;
            case 'hideTrophy':
                $template = 'xc_hide_bbcode_editor_dialog_hide_trophy';
                break;
            case 'hideReactScore':
                $template = 'xc_hide_bbcode_editor_dialog_hide_react_score';
                break;
            case 'hideReplyReact':
                $template = 'xc_hide_bbcode_editor_dialog_hide_reply_react';
                $data['params']['reactions'] = $controller->repository('XF:Reaction')->findReactionsForList(true)->fetch()->pluckNamed('title', 'reaction_id');
                break;
            case 'hideReplyOrReact':
                $template = 'xc_hide_bbcode_editor_dialog_hide_reply_or_react';
                $data['params']['reactions'] = $controller->repository('XF:Reaction')->findReactionsForList(true)->fetch()->pluckNamed('title', 'reaction_id');
                break;
            case 'hideReact':
                $template = 'xc_hide_bbcode_editor_dialog_hide_react';
                $data['params']['reactions'] = $controller->repository('XF:Reaction')->findReactionsForList(true)->fetch()->pluckNamed('title', 'reaction_id');
                break;
            case 'hideShowtogroup':
                $template = 'xc_hide_bbcode_editor_dialog_hide_showtogroup';
                $data['params']['userGroups'] = $controller->repository('XF:UserGroup')->getUserGroupTitlePairs();
                break;
            case 'hideUser':
                $template = 'xc_hide_bbcode_editor_dialog_hide_user';
                break;
        }

        if (!empty($template))
        {
            $data['template'] = $template;
        }
    }

    public static function editorButtonData(array &$buttons, \XF\Data\Editor $editorData)
    {
        $fa = 'fa-eye-slash';

        $hideButtons = [
            'xcHideDefault' => [
                'fa'    => $fa,
                'title' => \XF::phrase('xc_hide_bbcode.hide')
            ],
            'xcHidePosts' => [
                'fa'    => $fa,
                'title' => \XF::phrase('xc_hide_bbcode.hide_posts')
            ],
            'xcHideReplyReact' => [
                'fa'    => $fa,
                'title' => \XF::phrase('xc_hide_bbcode.hide_reply_react')
            ],
            'xcHideReply' => [
                'fa'    => $fa,
                'title' => \XF::phrase('xc_hide_bbcode.hide_reply')
            ],
            'xcHideReact' => [
                'fa'    => $fa,
                'title' => \XF::phrase('xc_hide_bbcode.hide_react')
            ],
            'xcHideShowToGroup' => [
                'fa'    => $fa,
                'title' => \XF::phrase('xc_hide_bbcode.hide_showtogroups')
            ],
            'xcHideUser' => [
                'fa' => $fa,
                'title' => \XF::phrase('xc_hide_bbcode.hide_user')
            ],
            'xcHideTrophy' => [
                'fa' => $fa,
                'title' => \XF::phrase('xc_hide_bbcode.hide_trophy')
            ],
            'xcHideReactScore' => [
                'fa' => $fa,
                'title' => \XF::phrase('xc_hide_bbcode.hide_react_score')
            ],
        ];

        $buttons = array_merge($buttons, $hideButtons);
    }
}

And I must have the setting [HIDE] = react

I confirm that the files are not up to date. You just have to upload the files again.
 
Die Standard Aktion bei [HIDE] muss ich als Reaction einstellen können.
Es ist nur REPLY möglich.
Ich habe tausende Posts (Importiert von vB), welche ein [HIDE] haben.
Diese sollten auch mit einem React geöffnet werden können. Der HIDEREACT existiert nicht in dieser Datenbank.

The default action for [HIDE] must be set as a reaction.
Only REPLY is possible.
I have thousands of posts (imported from vB) that have a [HIDE].
These should also be open with a React. The HIDEREACT does not exist in this database.
 
Die Standard Aktion bei [HIDE] muss ich als Reaction einstellen können.
Es ist nur REPLY möglich.
Ich habe tausende Posts (Importiert von vB), welche ein [HIDE] haben.
Diese sollten auch mit einem React geöffnet werden können. Der HIDEREACT existiert nicht in dieser Datenbank.

The default action for [HIDE] must be set as a reaction.
Only REPLY is possible.
I have thousands of posts (imported from vB) that have a [HIDE].
These should also be open with a React. The HIDEREACT does not exist in this database.

Thank you for your response. This will be available in the next version.
 
Top Bottom