Skip to content

Want to use Sudonix themes ?

Chitchat

Related Topics
  • navigation menu panel on mobile

    Solved Customisation
    8
    7 Votes
    8 Posts
    477 Views

    @crazycells hmm. Thatā€™s odd. I havenā€™t made any changes from recollection but I could be wrong. Iā€™ll need to check.

    EDIT - very strange. I honestly donā€™t recall adding the below CSS block to alter the bottom bar, but youā€™re rightā€¦

    .bottombar-nav { padding: 0px !important; }

    Iā€™ve removed this so it reflects stock Harmony.

  • Fixed background to nodebb forum

    Solved Configure
    25
    4 Votes
    25 Posts
    2k Views

    @Panda said in Fixed background to nodebb forum:

    Chatgpt told me the ::before method.

    Go figure šŸ˜›

  • Nodebb design

    Solved General
    2
    1 Votes
    2 Posts
    301 Views

    @Panda said in Nodebb design:

    One negative is not being so good for SEO as more Server side rendered forums, if web crawlers dont run the JS to read the forum.

    From recollection, Google and Bing have the capability to read and process JS, although itā€™s not in the same manner as a physical person will consume content on a page. It will be seen as plain text, but will be indexed. However, itā€™s important to note that Yandex and Baidu will not render JS, although seeing as Google has a 90% share of the content available on the web in terms of indexing, this isnā€™t something youā€™ll likely lose sleep over.

    @Panda said in Nodebb design:

    The ā€œwrite apiā€ is preferred for server-to-server interactions.

    This is mostly based around overall security - you wonā€™t typically want a client machine changing database elements or altering data. This is why you have ā€œclient-sideā€ which could be DOM manipulation etc, and ā€œserver-sideā€ which performs more complex operations as it can communicate directly with the database whereas the client cannot (and if it can, then you have a serious security flaw). Reading from the API is perfectly acceptable on the client-side, but not being able to write.

    A paradigm here would be something like SNMP. This protocol exists as a UDP (UDP is very efficient, as it is ā€œfire and forgetā€ and does not wait for a response like TCP does) based service which reads performance data from a remote source, thus enabling an application to parse that data for use in a monitoring application. In all cases, SNMP access should be ā€œROā€ (Read Only) and not RW (Read Write). It is completely feasible to assume complete control over a firewall for example by having RW access to SNMP and then exposing it to the entire internet with a weak passphrase.

    You wouldnā€™t do it (at least, I hope you wouldnā€™t) and the same ethic applies to server-side rendering and the execution of commands.

  • Interesting Widget code, but can't fetch API

    Solved Customisation
    26
    2 Votes
    26 Posts
    2k 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?

  • Rotating homepage icons, gifs?

    Solved Configure
    2
    3 Votes
    2 Posts
    247 Views

    @eveh Itā€™s not a GIF, no. Itā€™s actually a webp file so made much smaller, and uses keyframes to control the rotation on hover. You can easily make your own though šŸ™‚

    The CSS for that is as below

    @keyframes rotate180 { from { transform: rotate(0deg); } to { transform: rotate(180deg); } } @keyframes rotate0 { from { transform: rotate(180deg); } to { transform: rotate(0deg); } }

    Your milage may vary on the CSS below, as itā€™s custom for Sudonix, but this is the class that is used to control the rotate

    .header .forum-logo, img.forum-logo.head { max-height: 50px; width: auto; height: 30px; margin-top: 9px; max-width: 150px; min-width: 32px; display: inline-block; animation-name: rotate180, rotate0; animation-duration: 1000ms; animation-delay: 0s, 1000ms; animation-iteration-count: 1; animation-timing-function: linear; transition: transform 1000ms ease-in-out; }
  • Link vs Refresh

    Solved Customisation
    20
    8 Votes
    20 Posts
    1k Views

    @pobojmoks Do you see any errors being reported in the console ? At first guess (without seeing the actual code or the site itself), Iā€™d say that this is AJAX callback related

  • Theming support in Sudonix

    Moved Announcements
    41
    61 Votes
    41 Posts
    5k Views

    @phenomlab said in Theming support in Sudonix:

    I thought Iā€™d better come by here with an update so everyone knows that the Swatch project isnā€™t abandoned, or has simply ā€œgone coldā€. In fact, quite the opposite.

    Iā€™ve setup a dev instance on my home network which Iā€™m currently developing against. Iā€™ll put some screenshots up soon, but the Swatch code is currently enjoying a rewrite. The great news is that youā€™ll get ten times the flexibility you have now meaning greater support for light themes, although the downside is that there isnā€™t that much backwards compatibility meaning some of my own themes even need to be completely redesigned.

    However, this isnā€™t the end of the world. Once youā€™re familiar with the classes, it really doesnā€™t take long at all to create your own themes.

    More to follow.

    Iā€™ll be putting together a video of what the revamped theme will look like very soon - just got some small issues to iron out, and code cleanup beforehandā€¦

  • [NodeBB] greeting message

    Solved Customisation
    2
    3 Votes
    2 Posts
    644 Views

    @pwsincd welcome to sudonix, and thanks for the comments. What your looking for is here

    https://sudonix.com/topic/195/nodebb-welcome-message/3?_=1648295651358