Currently using a profanity filter that just puts [censorsed] for anything that is triggered. while this is good, it would be extremely helpful to understand what the original text was for moderation purposes. Is that a plugin that allows mods to see what the original post was while still censoring for normal viewers?
Guest css filter
-
Greetings!
I am trying to create a css code, which will only affect guests, or code that will only affect those who are logged in to the forum.
The question is how to make such a filter ...
Or maybe another solution ???
-
https://github.com/NodeBB/NodeBB/commit/04b1f702cd1c1eb345add2cfebb842bd2c1c5cc6, You can use
user-loggedin
anduser-guest
after this commit. -
@baris I did not understand
I added the code you referred to the main JS page of my forum
What do I need to write in practice for the next CSS code to apply but only to guests?//Removing the Like button [component="post/upvote"], { display: none !important; }
Purpose: To remove the Like button
-
@שלמה-shlomo
You need to add this code
if (req.loggedIn) { parts.push('user-loggedin'); } else { parts.push('user-guest'); }
in this file
src/middleware/helpers.js
in thebuildBodyClass
function.After that your css can use
.user-guest [component="post/upvote"], { display: none !important; }
-
@baris Thank you!
It just works!
Now I can hide objects from guests