Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. Recent
    Log in to post
    • All categories
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • Dark Shy

      UNSOLVED have problem with install on vm
      Technical Support • • Dark Shy

      26
      0
      Votes
      26
      Posts
      112
      Views

      nhl.pl

      Are sure you want it here?
      index index.php index.html index.htm;

      Again.
      root /var/www/html;

      You can also try to replace localhost with 127.0.0.1:4567.
      proxy_pass http://localhost:4567;

    • I

      Section name not being included in breadcrumb
      General Discussion • • inna

      23
      0
      Votes
      23
      Posts
      228
      Views

      I

      @inna By the way, as I've here, I've entered some info, but I found something:

      at registerHooks (/some_path/src/plugins/load.js:159:13) at Plugins.loadPlugin (/some_path/src/plugins/load.js:122:4)

      The issue is Plugins.loadPlugin is in line 159, and registerHooks is in line 122.
      Should I report this to NodeBB Github issues? Is it related to Persona theme? Or just reporting here is enough to check it?

    • Q

      help 安装出错,好心人帮我看看
      Technical Support • • qiancsf

      1
      0
      Votes
      1
      Posts
      5
      Views

      Q

      mmexport1615090124478.jpg mmexport1615090109118.jpg

    • Q

      help 安装出错,帮我看看
      Technical Support • • qiancsf

      4
      0
      Votes
      4
      Posts
      9
      Views

      Q

      mmexport1615090124478.jpg mmexport1615090109118.jpg

    • JKSH

      Search bar navigation fails if user clicks slowly
      Bug Reports • • JKSH

      3
      1
      Votes
      3
      Posts
      30
      Views

      baris

      This should be fixed on master and on this forum as well.

    • M

      Creating a post-only category
      Technical Support • • MCMDEV

      1
      0
      Votes
      1
      Posts
      8
      Views

      M

      Does someone know a way to create a post-only category?
      I am trying to create a category for ban appeals in which users should be able to create a new topic and only see their own topics listed so other users can't see their appeal and if they appealed.
      If that is possible, is it possible to make pinned topics readable for everyone?

      Otherwise, what would be the best way to achieve something like this?

      Thanks.

    • Q

      help 安装失败
      Technical Support • • qiancsf

      4
      0
      Votes
      4
      Posts
      11
      Views

      PitaJ

      @qiancsf don't install NodeBB as root. Create an unprivileged user to install and run NodeBB under.

      You need to install git.

    • dogs

      UNSOLVED How to prevent mobile side menu reacting on geasture? theme-persona
      NodeBB Themes • menu nodebb theme • • dogs

      2
      0
      Votes
      2
      Posts
      17
      Views

      PitaJ

      @dogs I think this will work for you, placed in the custom JS

      document.documentElement.classList.add('preventSlideout')
    • andrew xoa

      Don't GET req.query.name to collection.find in express and MongoDB
      General Discussion • • andrew xoa

      2
      0
      Votes
      2
      Posts
      8
      Views

      PitaJ

      Hi, while you're welcome to post here, this is not a general forum for Node. It's the community forum for NodeBB, a Node.js based forum software.

      You'll probably have better luck with your question on StackOverflow or Reddit.

    • dogs

      Short & Quick: Rendered STL-Model Viewer inside Topics - in under 2 minutes
      NodeBB Plugins • model nodebb plugin • • dogs

      1
      1
      Votes
      1
      Posts
      17
      Views

      dogs

      Re: Execute Custom JS on Infinite Scroll

      A little while ago I read this thread - today that strange white gave me an idea. How cool would it be to have an STL viewer right in the forum?

      So I got down to work and programmed a small snippet quick & dirty. Everything can be reached via custom codes in the ACP. No plugin required.

      Preview nodebb stl viewer preview How does it work?

      Your liked files will be automatically converted:

      [My Model](https://example.com/assets/model.stl)

      turns out with a little 3d cube attached. A click on this cube toggles the STL-Model preview.

      Bildschirmfoto 2021-03-06 um 14.22.23.png

      As showed in the preview video, the STL-Viewer is also available in the composer preview.

      Bildschirmfoto 2021-03-06 um 14.24.18.png

      Compatibility

      This little snippet is also mobile responsive 😵 You can view the 3d models on mobile devices like a boss. Full responsive. 💪

      Code

      Just at these snippets to custom HTML / CSS / Javascript via the ACP.

      style.css

      iframe.stl-model-viewer{ min-width: 200px; max-width: 600px; width: 100%; min-height: 300px; max-height: 500px; height: 100%; border: 1px solid lightgray; border-radius: 10px; display: block; margin-bottom: 25px; margin-left: auto; margin-right: auto; -webkit-box-shadow: 0px 13px 29px -15px rgba(0,0,0,0.75); -moz-box-shadow: 0px 13px 29px -15px rgba(0,0,0,0.75); box-shadow: 0px 13px 29px -15px rgba(0,0,0,0.75); }

      javascript.js

      var re = /(?:\.([^.]+))?$/; // NO BACKSLASH AT THE END! var base_url = "https://your-nodebb-url.com"; $(window).on('action:posts.loaded action:ajaxify.end action:composer.preview', function(data) { $('a').each(function(){ var href = $(this).attr("href"); var ext = re.exec(href)[1]; if(ext == "stl"){ var indicator = Math.floor(Math.random() * 1000000) + 1 var currentModelUrl = $(this); if (href.substring(0, 8) !== 'https://'){ href = base_url + href; } var alreadyLinked = $(this).closest('p').find('a#open-stl-model').attr('data-url'); if(!alreadyLinked){ $(' <a style="margin-left: 5px; cursor: pointer;" title="3D-Modell anzeigen" id="open-stl-model" data-url="' + href + '" related="' + indicator + '"><i class="fa fa-cube"></i></a>').insertAfter(currentModelUrl); $(' <div id="' + indicator + '" style="display: none;" data-url="' + href + '"><iframe class="stl-model-viewer" src="https://www.viewstl.com/?embedded&url=' + href + '&color=white&bgcolor=transparent&shading=flat&rotation=yes&clean=yes&noborder=yes&orientation=top&edges=no"></iframe></div>').insertAfter( $(this).closest("p") ); } } }); }); $(window).on('action:ajaxify.end action:composer.preview', function(data) { $('a#open-stl-model').click(function(){ var thisLink = $(this); var related = thisLink.attr("related"); $('div#' + related).slideToggle(); }) })

      Before running:

      Change the base url to fit your nodebb path:

      // NO BACKSLASH AT THE END! var base_url = "https://your-nodebb-url.com";

      In case of https://community.nodebb.org/ it would be:

      // NO BACKSLASH AT THE END! var base_url = "https://community.nodebb.org";

      It is used to convert local links e.g /assets/uploads/top_pla_3_holes.stl to public links: https://community.nodebb.org/assets/uploads/top_pla_3_holes.stl

      Adjustments

      You can take a look at viewstl.com/embed to adjust your model viewer inside of javascript.js.

      $(' <div id="' + indicator + '" style="display: none;" data-url="' + href + '"><iframe class="stl-model-viewer" src="https://www.viewstl.com/?embedded&url=' + href + '&color=white&bgcolor=transparent&shading=flat&rotation=yes&clean=yes&noborder=yes&orientation=top&edges=no"></iframe></div>').insertAfter( $(this).closest("p") );

      There are thinks like:

      Shading Rotation Orientation Model Color Background Color Limitations

      The files which are linked in the topic have to be accessible by viewstl.com so private files wont work here I think. 🤔
      Maybe you do have to enable cross site origin for viewstl.com as well.

      This should be just a little playaround with some nodebb given features. As mentioned: it's a quick & dirty plugin which uses third party services. But there is also a standalone javascript plugin available: https://www.viewstl.com/plugin/ which you could use in a nodebb plugin.

      See this topic more as a simple feature and as well as an inspiration for other plugins in this direction you could make.

      Maybe its interesting for @Aleksei or someone else. 🙂

      Thanks for reading. 👋

    • dogs

      [nodebb-plugin-makesmart-gallery] - Image Slider for topics
      NodeBB Plugins • gallery images plugin • • dogs

      5
      6
      Votes
      5
      Posts
      72
      Views

      crazycells

      @dogs this is great! 👍 thanks

    • Nicolas

      Forum is not available anymore
      Technical Support • • Nicolas

      46
      0
      Votes
      46
      Posts
      477
      Views

      Nicolas

      Thank you everybody for helping me with forum troubleshooting. The problem has been found. It's memory limit. After a few years of use, 512MB RAM + 256MB swap is not enough anymore (I have some suspicions that swap does not kick in, but it's a topic for a different story).

      If somebody searches, and no changes plugins, core, or hardware, and you do not have plugins that depend on external services - check if it's a memory issue.

    • Q

      测试一下,中文
      NodeBB Themes • 临澧县 常德市 新安镇 • • qiancsf

      1
      0
      Votes
      1
      Posts
      17
      Views

      Q

      我测试一下中文......

    • D

      Facebook SSO Plugin Issues: Data Deletion Callback Request URL needed
      General Discussion • • daftcyborg

      4
      0
      Votes
      4
      Posts
      73
      Views

      julian

      @pitaj This seems to be a new requirement, so if that is truly the case, then our Facebook SSO plugin is not compatible with the latest Facebook changes.

      https://github.com/julianlam/nodebb-plugin-sso-facebook/issues/55

      Thanks for reporting

      julianlam created this issue in julianlam/nodebb-plugin-sso-facebook open Data Deletion Callback #55
    • psychobunny

      Question and Answer plugin
      NodeBB Plugins • • psychobunny

      35
      5
      Votes
      35
      Posts
      9843
      Views

      psychobunny

      @murcs thanks! https://github.com/NodeBB/nodebb-plugin-question-and-answer/issues/78

      I didn't actually realize it was an issue here as well, doh! I think I know what the problem is, will look into it

      psychobunny created this issue in NodeBB/nodebb-plugin-question-and-answer open Editing a topic deactivates question status #78
    • I

      How to print NodeBB current version in HTML
      General Discussion • • inna

      6
      0
      Votes
      6
      Posts
      63
      Views

      PitaJ

      It used to be there, but was removed
      https://github.com/NodeBB/NodeBB/commit/cb4930dac8854976b68a174ad4b65815f7e63f62#diff-949f495d29fabde280ed4c38b2eaef79a5313bda04f180faa594c135dfffa1ecL22

      Not sure why

      @inna feel free to open an issue on the Github page if you want this added back

      0 barisusakli committed to NodeBB/NodeBB remove version and environment from config
    • N

      Session Sharing NodeBB and Wordpress(Referrer URL in the header)
      NodeBB Plugins • • Nethrah

      1
      0
      Votes
      1
      Posts
      29
      Views

      N

      We successfully integrated wordpress with nodebb, every thing works great.Here is my site "https://www,happyusclub.com". But during login from the nodebb site , the referrer link in the header is showing as "https://forum.happyusclub.com" without any permalinks.
      Basically we are trying to redirect users to the referrer page after login.(similar to nodebb community after login the users redirecting to the page where they come from). But in my site when the user clicks login it goes to wordpress sso as expected but with referrer link as forum homePage without any permalink. Can anyone share your thoughts on how to approach this problem.

    • 徐再贤

      UNSOLVED How to get {pageSize} posts(replies) in first page
      Technical Support • • 徐再贤

      1
      0
      Votes
      1
      Posts
      29
      Views

      徐再贤

      Hi~
      I have a question about pagnition behavior.
      When i set page size to 5, i will get 1 main post and 4 replies in first page. and 5 replies in other page.
      But i want 5 replies in first page, and every other page as well.
      And i can't find any hook can help. 😞

      is it possible to do this right now ?

    • julian

      1.17.0 Breaking Changes
      NodeBB Development • 1.17.0 breaking • • Julian Lam

      8
      2
      Votes
      8
      Posts
      505
      Views

      julian

      The action:flags.create hook is no longer called after flag notifications have been delivered to the admins/mods. It is now called after the flag is created (as per the name).

      Note that a flag is only created the first time a post or user is flagged. Subsequent flags add a report to the existing flag, which you can listen for with action:flags.addReport. This hook is called on all report additions, including during the initial flag creation.

      Where action:flags.create used to be, we now call action:flags.notify and pass in additional properties from, to, and the notification object itself.

      https://github.com/NodeBB/NodeBB/commit/00a68a954895b450933e738058b9b8f6c225333a

      0 julianlam committed to NodeBB/NodeBB feat: add additional flag hooks [breaking] `action:flags.create` on initial flag creation `action:flags.notify` on notification to admins and moderators `action:flags.addReport` on flag report addition (called during initial flag create, too)
    • B

      Write API v3 - Changing category permissions
      Technical Support • • Brophy

      5
      0
      Votes
      5
      Posts
      57
      Views

      B

      @pitaj Thanks. I'm not in a particular rush for it, so I'll drop a note on GitHub, thank you very much.