Plugin Requests

217 Topics 1.1k Posts
  • Upgrade - nodebb-plugin-topic-ratings

    Solved
    0 Votes
    34 Posts
    1k Views

    @baris said in Upgrade - nodebb-plugin-topic-ratings:

    You could filter the topics in a hook like filter:topics.filterSortedTids and only return ones that have more than a certain rating.

    GPT recommend me to do this 😹

    In plugin.json add new hook "hooks": [ { "hook": "filter:category.topics.prepare", "method": "sortTopicsByRating" } ] In library.js add new methid sortTopicsByRating plugin.sortTopicsByRating = function (data, callback) { if (data.req.query.sort === 'rating') { data.req.query.sort = '-rating'; } callback(null, data); }; In templates/categories.tpl add this code for sorted <li data-sort="rating"><a href="#">[[global:topics_sorted_by_rating]]</a></li> In public/js/topic-ratings.js add this javascript $(window).on('action:ajaxify.end', function () { var $sortDropdown = $('.category-header .dropdown-menu'); if ($sortDropdown.length) { var $ratingSortItem = $('<li data-sort="rating"><a href="#">[[global:topics_sorted_by_rating]]</a></li>'); $sortDropdown.append($ratingSortItem); $ratingSortItem.on('click', function () { var url = window.location.href; url = url.replace(/(\?|&)sort=\w+/, ''); url += (url.indexOf('?') >= 0 ? '&' : '?') + 'sort=rating'; ajaxify.go(url); }); } });

    Bot say after this I can sorted a topics via url ?sort=rating

    I'm not tested this code, but it looks not bad...

  • Plugin Request for browser notifications.

    Unsolved
    0 Votes
    6 Posts
    145 Views

    @julian Is it possible to adjust the plugin to take the user's ID instead of the username?

  • Upgrade - nodebb-widget-rss

    0 Votes
    7 Posts
    142 Views

    @baris said in Upgrade - nodebb-widget-rss:

    I'm not sure if you need to restart after saving in the acp page.

    Well, you have to 😄 Working now, thanks

  • Ko-Fi Webhook Plugin Request

    1 Votes
    1 Posts
    52 Views

    Ko-Fi is a simple donation platform that allows people to send tip without too much hassle.

    While they do not have full blown API, they do have webhook that we can redirect to our own endpoints.

    Here's an example of the data that will be sent for a single donation:

    data = { "verification_token": "8c2a3835-4544-4f27-a53a-adfd1fcc5664", "message_id": "b54fa6ec-07c9-44aa-be0e-b0f4095d9145", "timestamp": "2023-07-29T16:27:32Z", "type": "Donation", "is_public": true, "from_name": "Jo Example", "message": "Good luck with the integration!", "amount": "3.00", "url": "https://ko-fi.com/Home/CoffeeShop?txid=00000000-1111-2222-3333-444444444444", "email": "[email protected]", "currency": "USD", "is_subscription_payment": false, "is_first_subscription_payment": false, "kofi_transaction_id": "00000000-1111-2222-3333-444444444444", "shop_items": null, "tier_name": null, "shipping": null }

    Would be nice if NodeBB have plugin that can act as endpoint so we can hook right here on our Ko-Fi profile
    55224b71-5ae6-499d-97f9-7474ab9cd3f1-image.png

    And have it lists our donators on a page in mysite.com/donators sorted by date descending.

  • rating plugin / points plugin for items

    0 Votes
    9 Posts
    172 Views

    @crazycells and that makes a lot of sense. Personally, I do read reviews, and it's quite easy to spot the fake ones you see on Amazon. I much prefer the end user's take than the manufacturer.

  • nodebb-widget-board-stats Update

    3 Votes
    6 Posts
    591 Views

    @DownPW

    as far as i know, it’s not necessary.  it’s still up and running at our site.  it was a caching-problem after updating our tester.  (sorry for not reporting.)

  • User blogs

    0 Votes
    3 Posts
    83 Views

    @phenomlab hey, that's pretty cool, I didn't know it supported blog usage like forums of old 🙂

  • 1 Votes
    24 Posts
    2k Views

    @DownPW said in nodebb-plugin-imgbb - nodebb-plugin-imgur Clone:

    It seems indeed, or so I missed something (if someone can confirm)

    Confirmed 🙂 There are no settings in the ACP in v3.

  • 0 Votes
    10 Posts
    240 Views

    @julian Yes, I managed to fix them and do PR

  • Logout User from external website

    0 Votes
    8 Posts
    352 Views

    If you can, yes... that would work if you had the session uuid, which you might not.

    Essentially, when you use SSO to log in a user via a third-party authenticator, NodeBB is maintaining that session, not the other site. That's why it's not assumed behaviour that if you log out of the other site, that you also log out of NodeBB.

    If the user wants to log out of the forum, they'd have to log out themselves via the NodeBB logout button.

    That said, in the end the logout is literally just a POST request... so in your site, you could code in a XHR that calls POST https://your.nodebb.site/logout and that would log out the user 😄

  • Making the latest topic as homepage?

    0 Votes
    3 Posts
    125 Views

    Yeah not sure if there is enough demand to put this in core, but fairly simple to do in a plugin. Create a new route like @julian suggested and then rewrite the url to the latest topic.

    routeHelpers.setupPageRoute(router, '/latest', async (req, res, next) => { const db = require.main.require('./src/database'); const tid = await db.getSortedSetRevRange('topics:tid', 0, 0); req.url = res.locals.isAPI ? `/api/topic/${tid}` : `/topic/${tid}`; next(); });

    Then you can set your homepage to latest and it will show the latest topic as homepage.

  • Embed mastodon and bridge?

    0 Votes
    24 Posts
    768 Views

    Really? 🤐

    I look at what I did wrong. Until here already thanks!

  • 1 Votes
    3 Posts
    181 Views

    @julian thank you for your answer. I agree that stripe is probably better siuted for this, the only thing is, that here in germany the usage of paypal is much bigger than credit cards, which is the primary payment method for stripe i think.

  • 0 Votes
    7 Posts
    436 Views

    Ok thank you very much! I just love that this is possible with nodebb and all the contributers!

  • Rating system like the way in GetApp?

    1 Votes
    3 Posts
    261 Views

    If I wanted to develop it by my own, what kind of coding knowledges should I learn? Please help.

  • Chat in main page

    0 Votes
    19 Posts
    2k Views

    @gotwf You make some great points here that are hard to argue. As a privacy advocate (as you know already) it's important to protect privacy - if chat is effectively on public display for everyone else to see, it's no longer private, but a broadcast.

    The entire point (on sudonix.com at least) is for chat to include sensitive information that particular user does not want made public, such as usernames and passwords etc.

  • 0 Votes
    1 Posts
    109 Views

    Personally i would like to see a plugins for the integration with encrypted messaging services like IRC and XMPP.
    The nodeBB should be a "relay point" serving all those incoming messages and sending back the responses from users.

    Then we need working poll voting plugin, which can be used anonymously in tor network and in normal internet.

    Then plugin which actually play video in the topic like flash player in former times of youtube, current plugins play videos but not as embedded video player.

  • 1 Votes
    21 Posts
    6k Views

    nodebb-plugin-hide-links-to-guests

    Hide links to guest for NodeBB. Latest version: 1.0.4, last published: a year ago. Start using nodebb-plugin-hide-links-to-guests in your project by running `npm i nodebb-plugin-hide-links-to-guests`. There are no other projects in the npm registry using nodebb-plugin-hide-links-to-guests.

    favicon

    npm (www.npmjs.com)

    enjoy 🙂

  • Wish for the plugin for slack

    0 Votes
    1 Posts
    116 Views

    Came from https://github.com/NodeBB/nodebb-plugin-quickstart/issues/174.

    I wish I could have the stable plugin for slack for nodebb.

    There are few in the community and those are not working in version 2.x.

  • Modify nodebb-plugin-ws-dice

    0 Votes
    17 Posts
    830 Views

    @oplik0 said in Modify nodebb-plugin-ws-dice:

    @DownPW v2.4.0 inlines the text now, making it work fine with multiple lines:

    Wooooo Very very good job @oplik0 😉👏

    awesome

    @oplik0 said in Modify nodebb-plugin-ws-dice:

    Unfortunately I'm not sure how to go about putting the icon in the middle of the event, so it's just aligned to the first line instead.

    I tried some css without success.
    Maybe @phenomlab knows how to do this ?

    It's a detail because it's already great and much better as a result!!