Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nodebb-plugin-category-sort-by-votes-next

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodebb-plugin-category-sort-by-votes-next

Adds functionality to sort topics by votes in category list view

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Nodebb-Plugin-Category-Sort-By-Votes

License Version Downloads

Adds ability to sort topic by votes within a category to your NodeBB.

image

Installation

  • Install it from NodeBB Admin Panel, or

      npm install nodebb-plugin-category-sort-by-votes
    

Usage

  1. Go to the ACP (Admin Control Panel).
  2. Activate plugin and reload NodeBB.
  3. Click Plugins -> Category Sort to go to the Plugin's settings.
  4. Click "Re Index" to index all topics (see below screenshot).

image

  1. Go to any category, select "Most votes" from the "Sort by" dropdown and it should work!

Notes

Feature of sorting by votes use cid:[cid]:tids:votes as key, while it is not supported by NodeBB.So we must recreate the index to make it work. If "reindex" is not applied before you use "Sort By Votes" option in the category page, the category page will be blank.

We also use action:post.downvote, action:post.unvote, action:post.upvote hook to listen user actions and dynamically update the sortedSet which use cid:[cid]:tids:votes as key.

Keywords

FAQs

Package last updated on 27 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc