Hide links from guests / Filter post content based on user group
-
-
@julian @psychobunny Why was CLS removed from NodeBB? It seems like a feature removed to me.
The pull request:
https://github.com/NodeBB/NodeBB/pull/4162 -
-
@Telokis I added the
uid
to that hook. On the master branch, and in the next version of NodeBB, you'll be good. -
@Telokis there is no way besides maybe cherry picking that specific commit or changing the code yourself
-
@Annihil said in Hide links from guests / Filter post content based on user group:
Hi,
I'd like a plugin that display links to registered users only, is there any plugins that allows this?
From the point of view of a guest, he would see something like [Link available to registered users only] instead of the links.
Actually, it would be even nicer to be able to filter all types of content and replace it with another one according to the group of the user.I know that it's possible
You'd want to create a plugin that acts on the
filter:parse.post
hook, and removes private information (of your choosing) based on whether the user is an admin or not.but haven't find any plugins actually doing it yet
you could simply use the widgets, as they have restrictions on who can or cant see them
-
@ChaosYamYT
True, but that's a not very convenient workaround, I was talking about the content of posts actually -
@Annihil Oh, I see. ( ;-; I got downvoted)
-
@Telokis
What's up with the plugin? -
nodebb-plugin-hide-links-to-guests
Hide links to guest for NodeBB. Latest version: 1.0.6, last published: 3 months 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.
npm (www.npmjs.com)
enjoy