Skip to content

Customisation

Looking to revamp your site layout?

121 Topics 2.3k Posts
  • Interesting Widget code, but can't fetch API

    Solved
    26
    2 Votes
    26 Posts
    1k Views

    @Panda said in Interesting Widget code, but can’t fetch API:

    How did you drop that widget into the post there?
    I hadnt seen this BSgenerator anywhere on sudonix site, do you use it somewhere already?

    Yes, here

    https://sudonix.org/topic/414/corporate-bullshit-generator?_=1687774393044

    It’s not a “post” or “topic” in the common sense. It is actually a page in it’s own right and leverages nodebb-plugin-custom-pages. This in turn creates a new “route” which behaves like a page, meaning it is then exposed for widgets.

    @Panda said in Interesting Widget code, but can’t fetch API:

    Also can you explain more what you mean by calling the code externally. In my API call example, how would I go about doing that?

    By this, I mean create all the required code in an external JS file that is reachable by the NodeBB instance - so, in “public” for example - or in my case /public/js. The widget then “calls” that file and because it runs outside of the scope of NodeBB, you just need to return the values to the widget.

    Hope this makes sense?

  • 1 Votes
    1 Posts
    275 Views
    No one has replied
  • fading in /tags page

    Solved
    32
    30 Votes
    32 Posts
    3k Views

    Fix working perfectly 👍 🙂

  • 6 Votes
    15 Posts
    695 Views

    No no, I said that in the sense that he told me it was simple ^^
    I was able to see that this was not the case by targeting the elements he had advised me.

  • Header Menu After Upgrading V3.1.1

    Solved
    2
    2 Votes
    2 Posts
    147 Views

    @cagatay this relates to a change the css classes used for the brand header meaning it will now float to the left instead of right.

    If you’d like to retain the original behavior, you can add this css class

    [data-widget-area="brand-header"] { justify-content: end; display: flex; }

    Further information here

    https://community.nodebb.org/topic/17090/manual-build-a-custom-header-in-harmony/19?_=1684069325296

  • NodeBB v3 Vote Icon

    Solved
    9
    2 Votes
    9 Posts
    446 Views

    @phenomlab forget it, look likes good with your codes.

  • Reading Meter Progress bar

    Locked Solved
    15
    9 Votes
    15 Posts
    819 Views

    For anyone else following this thread, please see
    https://sudonix.com/topic/467/issues-with-progress-bar-on-v3

  • NodeBB: Consent policy popup

    Solved
    2
    0 Votes
    2 Posts
    456 Views

    @mventures said in NodeBB: Consent policy popup:

    How did you implement this consent pop-up?

    This is located in /admin/settings/cookies

    @mventures said in NodeBB: Consent policy popup:

    Does it appear every new day for a user who has accepted it?

    No. It places a cookie on the machine of the user who visits the site, and once they accept it, it doesn’t appear again unless you select

    0bda6e07-efca-4039-a132-c94060a6fec4-image.png

  • adding some console.log to Nodebb

    Solved
    4
    1 Votes
    4 Posts
    473 Views

    @eeeee if you’re using the console, you could try

    node app.js > app.log 2>&1

    This would redirect stdout to a file named app.log and redirect stderr to stdout.

    I’m not sure about standard logging under NodeBB, but there is an error log located at logs/error.log.

    Failing that, you could always stop the NodeBB service then use ./nodebb dev from the console which would then provide debug output.

  • Heading text on NodeBB forum

    Solved
    27
    1 Votes
    27 Posts
    2k Views

    @mventures I’ve not done anything here.

  • Mongo Eror with v3 beta-1

    Solved
    8
    4 Votes
    8 Posts
    266 Views

    @cagatay ok. You should use a copy of the production database or a completely new one. Never share a database between two instances of NodeBB.

  • Footer bar add center text

    Solved
    41
    8 Votes
    41 Posts
    3k Views

    @phenomlab said in Footer bar add center text:

    div#console-nav-tab

    Ah ok test with bottom: 0px !important; idem

  • 1 Votes
    5 Posts
    557 Views

    @DownPW very useful tip. Thanks

  • optional "snow falling" theme

    Solved
    6
    6 Votes
    6 Posts
    281 Views

    @Sala ok, but that’s still the same loop which is going to have an impact on the CPU.

  • Post Style View

    Solved
    67
    18 Votes
    67 Posts
    5k Views

    @cagatay

    Just add margin-left on the element like @phenomlab said to you :

    topic [component="post/parent"] { margin-left: 10px; }

    aa08c62b-4223-4cba-8c0f-c73d50474c0d-image.png

    Maybe @phenomlab have a better way

  • The best css to customize our logo?

    Solved
    2
    1 Votes
    2 Posts
    258 Views

    @Sala This should look better

    .sidenav .navbar-brand { padding-top: 0.5rem; padding-bottom: 0.5rem; }

    e5cec20e-be36-4ee8-9129-fd11ad4656ac-image.png

    You can increase the top and bottom padding by increasing the values above.

  • Meilisearch Configuration

    Solved
    2
    0 Votes
    2 Posts
    109 Views

    @cagatay it should be created as soon as you start the instance. See below

    https://docs.meilisearch.com/learn/security/master_api_keys.html#communicating-with-a-protected-instance

  • Link Not Working

    Solved
    5
    1 Votes
    5 Posts
    178 Views

    @cagatay Good question, but one that’s likely best answered by the devs themselves. Could easily be done with a simple jQuery regex but that would really just be painting over rotten wood.

  • Upload Problem

    Solved
    17
    0 Votes
    17 Posts
    445 Views

    @cagatay ok

  • 3 Votes
    7 Posts
    554 Views

    @crazycells pleasure. Using percentages makes much more sense in this case. It’s the same argument with px vs pt vs em with fonts, margins, padding, etc., in the sense that em is generally preferred over px and pt

    https://stackoverflow.com/questions/609517/why-em-instead-of-px