meetdilip thanks...but i can see the video correctly...idk why this happen
Flarum Purify - Bad words filter
It is now visible to me as well. Not sure why it was different before.
- Edited
meetdilip Same here and sometimes error connection refused to connect.
Justoverclock Is there any list that is pre made or all the words are entered by admin only as sometimes what happens, If user is using different language then what's the possible way to get rid of them.
- Edited
1Dot you can add word through admin panel
For the video I think is related to streamable website, but not happen to me
Justoverclock I updated the extension to 0.1.1, but it looks like the bad word array is still included in the page source.
ht_miel yes i will find a solution in the next release
- Edited
0.1.2
#Changes
- Purifier now support both lowercase and uppercase words like "bad", "bAd", "BAD", "BaD" ht_miel
Updating
composer update justoverclock/flarum-ext-purify:"*"
php flarum cache:clear
[deleted]
@Justoverclock an idea here would be to extend this further so that custom REGEX is supported. This is VERY useful in automatically redacting things like email addresses, which under the GDPR, should not appear on public forums without permission. Users have a habit of leaving information like this in the open, and this extension could well fix that.
I know @IanM did something similar before with an extension which was originally open source, but is now considered private and no longer available publicly.
- Edited
[deleted] so u mean something that obscure email? sure i can implement this also in this extension
or u want a field to put your custom regex from backend?
[deleted]
Justoverclock Both
[deleted] this is a nice feauture, i will work on this
- Edited
0.1.4
- Fixed 0.1.3 version that was not compatible with flarum keywords extension (now works fine).
- Admin can now choose to automatically mask all email address posted into flarum discussion.
Updating
composer update justoverclock/flarum-ext-purify:"*"
php flarum cache:clear
not sure how can i implement a custom regex field, because i need to decide the function that regexp must have, so i need to replace what/with what?
Great! I have to make a choice between fof/filter and this one.
- Edited
- Edited
@[deleted] currently i've done a custom regexp field
as u can see in the example anyone can write your own regexp without including the initial /
and flags (that actually match every words in both upper and lowercase
in the example above the output is:
/(marco|flarum|extension)/gi
(that match these 3 words).
so u can replace that part with your own regexp (marco|flarum|extension)
Do you think this can be an acceptable solution?
regexp is replaced with [Purified]
that is completely customizable with translations (like ******, [hidden])
0.1.5
#Changes
- Admin can now setup a custom regular expression
Updating
composer update justoverclock/flarum-ext-purify:"*"
php flarum cache:clear
OneQUICKSuggestion : Is it possible to auto flag and hold post for approval when post contains that words.
1Dot not planned at moment
A crazy idea to extend
Replace words.
Example:
When the user types: You are a idiot person
This extension replace to: You are a good person.
Walys in admin panel you can use your own regexp to replace anything
Just a small note that enabling purify with empty fields will break the quote highlighting feature.