What is the name of the plugin?

Plugin Requests

Suggested Topics


  • 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...

  • 0 Votes
    17 Posts
    828 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!!

  • 0 Votes
    1 Posts
    433 Views

    Hello,

    Is there any plugin around here similar to IP.Downloads / FileBase ?

  • Reputation plugin

    Plugin Requests
    0 Votes
    7 Posts
    2k Views

    Well, @pichalite made the reactions plugin, perhaps that's closer?

  • 0 Votes
    2 Posts
    1k Views

    What script are you using? The HTML from my Associates page works out-of-the-box.