Skip to content

Announcements

Announcements in relation to the community

64 Topics 698 Posts

Subcategories


  • Found an issue here? Let us know!

    21 Topics
    302 Posts

    @crazycells yes, this might be because of another plugin I have active that calculates the total votes across a topic. Will need to check

  • ANNOUCEMENT: New NTFY Server

    9
    7 Votes
    9 Posts
    316 Views

    @crazycells that’s as good a test as any 🙂

  • 6 Votes
    16 Posts
    690 Views

    And it seems to be less conflicting!

  • Theme retirement

    21
    16 Votes
    21 Posts
    1k Views

    I relented somewhat here and added another swatch - one I missed, which was previous called “blackout”. This specific one has been adapted to work on the new theming engine, but the others have been reclassified, and renamed to suit.

    image.png

    As a result, the theme you might have had will probably be reflecting something else, so you (might) need to change your themes accordingly. The changes are as follows

    Light -> No Change
    Cloudy -> Is now the old “Dim”
    Dim -> Is now the old “Dark”
    Dark -> Now a new theme based on the revamped “Blackout”

  • Testing out Webdock.io

    Moved
    2
    5 Votes
    2 Posts
    277 Views

    Just coming back to this thread for review (as I often do), and it looks like Webdock have increased their available offerings - some are extremely powerful, yet very competitive from the pricing perspective.

    image.png

    10 CPU cores, plus 20Gb RAM? Well worth a look (and the asking price) - there’s also a fixed IP which is hugely beneficial.

    Clearly, this is well beyond what most people will want to spend - it’s more of an example (but interestingly, Sudonix runs on something not too different from the above).

    However, not all that glitters is gold 😕 - just have a walk through the benchmark report I found below and you’ll see a huge difference between Heztner and Webdock

    https://www.vpsbenchmarks.com/compare/hetzner_vs_webdock

    That being said, the amount of HTTP requests that Webdock handles in relation to Hetzner is superior - @DownPW you might want to have a look at this - there’s a free 24 hour trial… 🙂

    5203639b-2f62-47e6-b87b-37580ce5deae-image.png

  • 6 Votes
    4 Posts
    188 Views

    @cagatay these changes aren’t published anywhere presently, so nothing for you to do.

  • New Code Repository

    2
    3 Votes
    2 Posts
    129 Views

    @phenomlab very nice and useful idea

    Bravo Xd GIF

  • Rebranding / other changes

    42
    33 Votes
    42 Posts
    1k Views

    @crazycells said in Rebranding / other changes:

    thanks for the info you gave, I need to transfer this info to our dev team

    No problems - let me know if you need any other info.

  • 22 Votes
    21 Posts
    1k Views

    Already found 2 bugs, which have been committed to live code

    Relative path is provided in some instances, so a function now exists to return the full path instead so the image is rendered OGProxy does not target chat - this has been fixed
  • New "services" page

    3
    7 Votes
    3 Posts
    162 Views

    @DownPW Yes, this is the general idea. I’m also in the process of putting together a welcome message to be displayed when a new user registers so they can explore all of the services on offer.

  • 10 Votes
    4 Posts
    180 Views

    Quick update - I decided to do the redirect from sudonix.com to sudonix.org using Cloudflare’s Edge Network as it’s much more efficient than having to send the request to this server for it to simply then bounce back.

  • 36 Votes
    55 Posts
    4k Views

    @DownPW I see why. The code relies on the existence of

    [component="topic/quickreply/container"]

    However, this by definition means that the below has to be enabled

    aeef638f-4188-489d-a9f2-f3a26dbca9d8-image.png

    It will then work

    7fb38631-e0f3-46ef-b652-00929d927b13-image.png

    For some unknown reason, this is hidden in Harmony, and only shows if you select it. In v2, it seems that the <section> is deleted altogether in Persona if “Quick Reply” is disabled, meaning it won’t fire as it can’t locate that specific component.

    The downside is that you might not want the quick reply function, but I think it’s a PITA to scroll up to the top of the post just to reply, so I have it on 🙂

  • Happy new year 2023

    3
    +0
    7 Votes
    3 Posts
    165 Views

    happy new year all 😉

  • Clustering for NodeBB enabled

    4
    8 Votes
    4 Posts
    181 Views

    @Hari thanks. Pretty much as I said in the original post 👍

  • Theming support in Sudonix

    Moved
    41
    61 Votes
    41 Posts
    4k 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…

  • Unable to install User Level plugin

    Solved
    6
    2 Votes
    6 Posts
    174 Views

    @Sampo2910 said in Ranking system revisited:

    Yes that worked

    Good

    @Sampo2910 said in Ranking system revisited:

    How to go about getting the ‘labels’ or is that an automatic thing within the plugin.

    That should be automatic as you get upvoted etc. Best way to test is to create another user, login with that session using an incognito browser, and upvote each other with test posts 🙂

  • NodeBB v3

    2
    3 Votes
    2 Posts
    166 Views

    @cagatay JS will work fine - no changes there, and there are no plans to drop support for jQuery. More of an issue is the CSS - for which there are quite a few breaking changes. Keep an eye on sudonix.dev (my development site) where you can see progress in relation to how I am tackling the compatibility issues.

  • Ranking system revisited

    3
    3 Votes
    3 Posts
    257 Views

    @cagatay nodebb-plugin-user-level

  • 24 Votes
    49 Posts
    2k Views

    @crazycells You should be able to upvote more now as I’ve located the hard coded function in the plugin responsible for this and changed it from

    maxVotesPerUser(reputation) { let MIN = 5, MAX = 50; let calculatedVotesPerUser = Math.floor(reputation / 10); if (calculatedVotesPerUser < MIN) { calculatedVotesPerUser = MIN; } else if (calculatedVotesPerUser > MAX) { calculatedVotesPerUser = MAX; } return calculatedVotesPerUser; },

    to

    maxVotesPerUser(reputation) { let MIN = 5, MAX = 500; let calculatedVotesPerUser = Math.floor(reputation / 50); if (calculatedVotesPerUser < MIN) { calculatedVotesPerUser = MIN; } else if (calculatedVotesPerUser > MAX) { calculatedVotesPerUser = MAX; } return calculatedVotesPerUser; },

    It appears that the upvote limit is 10% of your reputation by default.

  • Changing the look of recent cards

    1
    2 Votes
    1 Posts
    156 Views

    I wanted a way to draw attention to the recent cards on the categories page to make them stand out more - and what better way to do this than with some CSS. Here’s a short video of the outcome of that very exercise. Watch the recent cards closely as I cycle through the themes.

    There’s a gradient being set there which is essentially two of the core colours in each theme.

    For example, in swatch “Anthracite”, it’s easy to see how this effect works

    1981b09d-671d-42c7-89ae-555f30916669-image.png

    Essentially, we are setting the border-color and color variables to match the color set by the category itself. Essentially, this is an extension of this thread
    https://sudonix.com/topic/256/recent-cards-plugin-customization

    The minor change here is just one line

    $(document).ready(function() { $(window).on('action:ajaxify.end', function(data) { $('.recent-card-container').each(function(i) { var dataId = $(this).attr("data-cid"); var color = $('[role="presentation"]', this).css("background-color"); //console.log("data-cid " + dataId + " is " + color); $('[data-cid="' + dataId + '"] .recent-card').attr("style", "border-color: " + color); $('[data-cid="' + dataId + '"] .recent-card h4 a').attr("style", "color: " + color); }); }); });

    The line in question is

    $('[data-cid="' + dataId + '"] .recent-card h4 a').attr("style", "color: " + color);

    By adding this line, we change both the border color, and the text color to match. I also chose to thicken the border by 1px to give it a bit more depth, which works very well. I did consider a box-shadow but I think that may look somewhat “overdone” and odd when coupled with other elements. The jury is still out on that one 🙂

  • 4 Votes
    8 Posts
    300 Views

    @Sampo2910 Here’s a demo of it from their blog

    skins.gif