Forum breadcrumbs – You are here:Asgaros Support ForumSupportbbspoiler
Please or Register to create posts and topics.

bbspoiler

how to disable the spoiler in asgaros. because of him the bbspoiler plugin stopped working

Hello @zion

Currently there is no option to disable the spoiler-functionality. I will try to add an option for this with the next update.

Here is the GitHub ticket for it:

https://github.com/Asgaros/asgaros-forum/issues/212

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

would greatly help everyone. thank

In the meantime you can disable it manually by making the following changes to the code.

asgaros-forum/includes/forum-spoiler.php

Change:

add_shortcode('spoiler', array($this, 'render_spoiler'));

To:

//add_shortcode('spoiler', array($this, 'render_spoiler'));

asgaros-forum/js/script.js

Remove:

// Adds a new spoiler-button to the editor.
$(document).on('tinymce-editor-setup', function(event, editor) {
    editor.settings.toolbar1 += ',spoiler';

    editor.addButton('spoiler', {
        icon: 'spoiler',
        tooltip: 'Spoiler',
        onclick: function() {
            editor.insertContent("
Spoiler
"); } }); });

 

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

third-party spoiler plugins do not work,

if you disable the asgaros plugin, everything works

With the mentioned code-changes and clearing server and browser-cache third-party spoiler-plugins should work again. I tested it with bbspoiler and its working fine. 🙂

Also ensure that the “Allow shortcodes in posts” option is enabled.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

thanks

 

very helpful

Asgaros has reacted to this post.
Asgaros

Hello again @zion

The upcoming v1.14 update will come with a new option which allows you to completely disable the spoiler-functionality. The v1.14 update will be available later this month.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!