Skip to content

Customisation

130 Topics 2.5k Posts

Looking to revamp your site layout?

  • hover link effect

    Solved css link hover
    18
    1
    6 Votes
    18 Posts
    3k Views
    @DownPW Looking at the underlying code, class start is being added on hover by jQuery in this function document.querySelectorAll(".button-gradient, .button-transparent").forEach((button) => { const style = getComputedStyle(button); const lines = document.createElement("div"); lines.classList.add("lines"); const groupTop = document.createElement("div"); const groupBottom = document.createElement("div"); const svg = createSVG( button.offsetWidth, button.offsetHeight, parseInt(style.borderRadius, 10) ); groupTop.appendChild(svg); groupTop.appendChild(svg.cloneNode(true)); groupTop.appendChild(svg.cloneNode(true)); groupTop.appendChild(svg.cloneNode(true)); groupBottom.appendChild(svg.cloneNode(true)); groupBottom.appendChild(svg.cloneNode(true)); groupBottom.appendChild(svg.cloneNode(true)); groupBottom.appendChild(svg.cloneNode(true)); lines.appendChild(groupTop); lines.appendChild(groupBottom); button.appendChild(lines); button.addEventListener("pointerenter", () => { button.classList.add("start"); }); svg.addEventListener("animationend", () => { button.classList.remove("start"); }); }); }) The CSS for start is below .button-gradient.start .lines svg, .button-transparent.start .lines svg { animation: stroke 0.3s linear; } And this is the corresponding keyframe @keyframes stroke { 30%, 55% { opacity: 1; } 100% { stroke-dashoffset: 5; opacity: 0; } } It’s using both CSS and SVG, so might not be a simple affair to replicate without the SVG files.
  • easy way to add multilanguage banner

    Unsolved html
    12
    1
    5 Votes
    12 Posts
    2k Views
    @phenomlab hi Mark, no worries. I will definitely write my experience here… Unfortunately, I could not find time to try it yet.
  • Profil Photos

    Solved google
    2
    1 Votes
    2 Posts
    723 Views
    @cagatay the fastest way to do this would be to modify the auto generated sitemap.xml file so that it does not index users. It might be paint to do the same thing with users in terms of guest permissions. Let me have a look. Edit - you can do this with permissions. Go to /admin/manage/privileges then look in the left where it says guests - remove the tick from the view users permission for guests then click save You can test this out using an incognito or non logged in session. Attempting to view users should then ask you to login.
  • Nodebb icon on google page

    Solved nodebb
    9
    1
    4 Votes
    9 Posts
    2k Views
    @Panda It’s been raised multiple times, but only for the open source version, and not hosted.
  • Adding reputation

    Solved reputation
    17
    1
    4 Votes
    17 Posts
    2k Views
    @OT very odd. Shouldn’t be that complex, but glad you have it working.
  • Skins

    Solved skins
    4
    1 Votes
    4 Posts
    792 Views
    @OT Yes, I know. Here’s the article. I just finished it https://sudonix.org/topic/542/swatch-theme-changer Please try this in test first before you deploy to live.
  • nodebb-plugin-custom-pages

    Solved plugin custom-pages
    5
    2
    3 Votes
    5 Posts
    4k Views
    @DownPW it’s possible, yes, but you may inadvertently end up targeting other elements using the same class which of course isn’t desired. Can you provide a link in DM for me to review?
  • Following the API docs but its not clear ...

    Solved api nodebb
    8
    2 Votes
    8 Posts
    2k Views
    @Panda you’d be surprised. If you consider that you’d need to use the API to be able to populate a WordPress widget for example (which in turn would of course be PHP), taking this route is still immensely popular.
  • Whitespace fixes in Nodebb

    Solved nodebb
    18
    2
    7 Votes
    18 Posts
    3k Views
    @Panda Just circling back here with something of an update (which I think you’ll like). I’ve completely restructured the ranking system. There are now less ranks, with a higher point threshold to reach them. More importantly, if you reload the site, you’ll notice that the ranks are now icons. I also removed the “Author” badge, and made this a single icon, which (to me) looks much better.
  • Issues with Progress Bar on v3

    Solved
    48
    1
    14 Votes
    48 Posts
    9k Views
    @Panda You could use the below .page-topic .pagination-block.ready { display: none; }
  • Interesting Widget code, but can't fetch API

    Solved nodebb
    26
    2 Votes
    26 Posts
    6k 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
    789 Views
    No one has replied
  • fading in /tags page

    Solved nodebb
    32
    1
    30 Votes
    32 Posts
    8k Views
    Fix working perfectly
  • nodebb-user-level customisation : popover element

    Solved css user level plugin custom
    15
    6 Votes
    15 Posts
    3k 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 header nodebb
    2
    1
    2 Votes
    2 Posts
    709 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 icons vote icons
    9
    2 Votes
    9 Posts
    2k Views
    @phenomlab forget it, look likes good with your codes.
  • Reading Meter Progress bar

    Locked Solved css
    15
    1
    9 Votes
    15 Posts
    3k 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 consent popup
    2
    1
    0 Votes
    2 Posts
    986 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 [image: 1682678520417-0bda6e07-efca-4039-a132-c94060a6fec4-image.png]
  • adding some console.log to Nodebb

    Solved nodebb
    4
    1 Votes
    4 Posts
    1k 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
    6k Views
    @mventures I’ve not done anything here.