[Bounty of $500] Wiki plugin

Plugin Requests

Suggested Topics


  • 0 Votes
    10 Posts
    241 Views

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

  • 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
    2 Posts
    1k Views

    @sanatisharif probably is nodebb-plugin-iframely

  • 0 Votes
    1 Posts
    1k Views

    As I was searching for the right plugin, I found one that could be of good use. The only problem is, it hasn't been updated in almost a year. Is there any chance of an update for this plugin? @baris

    Build software better, together

    GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 330 million projects.

    favicon

    GitHub (github.com)

  • 2 Votes
    1 Posts
    1k Views

    Link to GitHub
    Now i've really wanted to use this plugin, although there is something theres missing which would really improve the plugin, it's also added on the "TODO" list but i haven't really found any progress on it lately.

    Now I thought if it really would be hard to make a "Select as best answer" option for the person who created the thread, that would automaticly lock the thread and set it as "SOLVED"

    Best Regards,
    MySelfLuls