• HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    Menu
    • HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    Get in touch
    Get in touch
    Menu
    • HOME
    • PRODUCT
    • PRICING
    • ABOUT
    • COMMUNITY
    • Sign in
    • Start free trial
    • Get in touch
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    • Documentation
      • Home
      • Read API
      • Write API
      • Plugin Development
    1. Home
    2. Klaus6
    K
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 7
    • Best 2
    • Controversial 0
    • Groups 0

    Klaus6

    @Klaus6

    2
    Reputation
    1
    Profile views
    7
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Klaus6 Unfollow Follow

    Best posts made by Klaus6

    • RE: [nodebb-plugin-ns-spoiler] NS Spoiler

      Thanks for the suggestion @crazycells ! That plugin works indeed (I used this version which seems to be more up to date). The only problem my users have with that plugin is that the spoiler content is displayed in the post preview. Any suggestions on how to block spoiler content in post previews?

      posted in NodeBB Plugins
      K
      Klaus6
    • RE: [nodebb-plugin-ns-spoiler] NS Spoiler

      @crazycells On the main page with the listing of the posts, there is a preview that reveals the spoiler content.

      For instance, I put a spoiler with the text "Spoiler content" into a post, and on the post listing page the text is revealed.

      ad6c416e-4662-40fd-9028-85a33154c80d-image.png

      posted in NodeBB Plugins
      K
      Klaus6

    Latest posts made by Klaus6

    • RE: [nodebb-plugin-ns-spoiler] NS Spoiler

      Thanks a ton, that looks interesting.

      I wonder, though: Shouldn't it be possible to just strip the spoiler content in the preview? That is, filter the content and remove the spoiler content for the preview? I don't know how NodeBB is programmed - maybe the template language supports some kind of transformation/filtering?

      posted in NodeBB Plugins
      K
      Klaus6
    • RE: [nodebb-plugin-ns-spoiler] NS Spoiler

      @crazycells On the main page with the listing of the posts, there is a preview that reveals the spoiler content.

      For instance, I put a spoiler with the text "Spoiler content" into a post, and on the post listing page the text is revealed.

      ad6c416e-4662-40fd-9028-85a33154c80d-image.png

      posted in NodeBB Plugins
      K
      Klaus6
    • RE: [nodebb-plugin-ns-spoiler] NS Spoiler

      Thanks for the suggestion @crazycells ! That plugin works indeed (I used this version which seems to be more up to date). The only problem my users have with that plugin is that the spoiler content is displayed in the post preview. Any suggestions on how to block spoiler content in post previews?

      posted in NodeBB Plugins
      K
      Klaus6
    • RE: [nodebb-plugin-ns-spoiler] NS Spoiler

      Is there really no way to get a working spoiler plugin for the current version of NodeBB? All alternatives seem to be even more outdated than this one.

      posted in NodeBB Plugins
      K
      Klaus6
    • RE: [nodebb-plugin-ns-spoiler] NS Spoiler

      This plugin isn't working anymore on my forum since a couple of months.

      I'm on version 8.0.0 of the plugin, Nodebb version 1.19.1

      The problem is that the spoilered text isn't loading when pressing on the spoiler header.

      When turning on the JavaScript debugger, I get an

      Error has occurred, error: [[error:no-privileges]]

      in spoiler.js:50.

      The relevant JavaScript function that triggers the error is this one:

          function toggle($button) {
              var $spoiler = $button.parents(elements.MAIN),
                  $content = $spoiler.find(elements.CONTENT),
                  open     = $spoiler.attr('data-open') === 'true',
                  postId   = parseInt($spoiler.attr('data-pid')),
                  index    = parseInt($spoiler.attr('data-index')),
                  icon     = $button.find('i');
      
              $spoiler.attr('data-open', !open);
      
              if (!open) {
                  icon.removeClass(classes.OPEN_EYE).addClass(classes.CLOSE_EYE);
              } else {
                  icon.removeClass(classes.CLOSE_EYE).addClass(classes.OPEN_EYE);
              }
      
              // Check if content is empty
              if ($content.html().length === 0) {
                  socket.emit(
                      'plugins.ns-spoiler.getSpoilerContent',
                      {index: index, postId: postId},
                      function (error, content) {
                          if (error) {
                              return console.error('Error has occurred, error: %s', error.message);
                          }
                          $content.html(content);
                      }
                  );
              }
      
          }
      

      The socket.emit call always yields the "no privilege" error.

      Any ideas?

      posted in NodeBB Plugins
      K
      Klaus6
    • Invalid CSRF Token, again

      I'm using the latest NodeBB v1.16 via Cloudron.

      An error that must be related to one of the more recent NodeBB updates is that forum users report strange errors where they only get the single word "Error" in some situations when they use the forum.

      These situations seem to coincide with log entries in the server log that look like this:

      Dec 22 19:42:18 2020-12-22T18:42:18.963Z [4567/289] - error: /api/v3/topics/6185
      Dec 22 19:42:18 invalid csrf token

      I have seen that "Invalid csrf token" has been discussed in this forum before, but those discussions were many years ago. Could this strange behavior be related to this recent addition to NodeBB, maybe? Any other idea?

      posted in Technical Support
      K
      Klaus6

    Get Started

    • Product
    • Pricing

    Resources

    • Demo Site
    • Answers
    • Docs
    • Bug Bounty

    Company

    • About
    • Blog
    • Contact
    Start Free Trial
    Github Facebook Instagram Twitter
    © 2014 – 2022 NodeBB, Inc. — Made in Canada.
    • Terms
    • Privacy
    • GDPR
    • DMCA
    • Contact
    Menu
    • Terms
    • Privacy
    • GDPR
    • DMCA
    • Contact