Calculations/Evaluations are not part of the lightweight template engine NodeBB uses. (AFAIK)
I guess the best would be to intercept the filter:post.getPosts hook and add your custom index values...
Apply these changes in the plugin in your node_modules folder until the PR is merged
@baris, thank you. Plugin started, but doesn't find any curse words anyway.
See my other updates to that same PR
@baris, perfect! Thank you very much.
Can we have a feature so that I can disallow this plugin on the shoutbox page but let it run for posts and topics ?
Also, there is 1 bug in this plugin. When we set the settings to Asterisk, then if a person makes a post using a banned word let's say s e x. then the topic URL also gets * which makes the URL request into re-direction loop and we can then never access that topic via URL.
Another bug is that it does not filters words in topic title, i.e it does not say "You cannot use 'BANNED word' in topic title" as it says in topic posts. It lets the user post with a ban word.
When are you guys going to release an update?
@faizanzahid open issues on the plugin page on github
We urgently need this plugin. Is this plugin compatible with node bb current version?
I remember it used to redirect in infinite loops if a * comes in URL. Has this fixed?
I am wondering where is the ACP link for this plugin.
I see I can edit the defaultBanList array in the index-js, but for what I am reading here above there should be a Administration link...but where?
Should be ACP->Plugins Menu after you install, activate, restart, and rebuild
I am using the latest version of the beep plugin 0.4.2 on the latest version of NodeBB 1.12.2. I have one issue with the beep plugin regarding old topics which were created before I migrated my site to NodeBB which have words which should be censored.
Newly created topics are censored with the beep plugin just fine. In the MongoDB the beep plugin actually saves topics with the censored words, so e.g. "title" : "Ps test censor" or "slug" : "123/ps-test-censor" is persisted in the database. Posts are obviously not modified by the beep plugin in the database but on the fly. Queries on the DB show the full non censored words in all posts be it old or new posts. Old and new posts are correctly censored by the beep plugin on the fly during browsing of NodeBB forum.
To fix this, post processing must be run on all topics in mongodb to modify "title" and "slug" applying the current beep censor rules.
Fortunately, I did not have that many topics to fix, so a quick manual fix is to just open each offending topic once, editing the topic as admin and saving it.
As a future improvement of this plugin, it would be very nice to have a simple button in the admin panel which runs a post-processing script for the above issue. This would be especially helpful on any change of the censor words down the line.
The idea behind this is great but sadly for me it censors parts of words like these below.
is there a fix for this?