inherit
208996
0
Aug 21, 2024 19:31:57 GMT -8
Slain
32
May 2014
greystar
|
Post by Slain on Dec 29, 2022 10:14:52 GMT -8
Hey all, it's me again! I am attempting to make my site feel as comfortable and safe as possible, as well as conforming more with GDPR. I want to censor user email addresses for moderators. Below is an example of what I mean;
Normal: example@example.com
Censored: ex*****@example.com
I'm pretty sure this requires a bit of javascript to do, but I'm not sure what elements to point it at or where to start to be absolutely honest. Any help is appreciated!
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Dec 30, 2022 10:00:30 GMT -8
While JavaScript is quite capable of hiding email addresses like you are asking, it is fraught with danger, and may even be against PBs rules.
JS can easily be turned off, it also doesn't currently work on the mobile app, so anyone wanting to see your hidden email addresses can do so pretty easily.
If you really want to share email addresses with anyone on your forum, it's best to do so with a private message.
|
|
inherit
208996
0
Aug 21, 2024 19:31:57 GMT -8
Slain
32
May 2014
greystar
|
Post by Slain on Dec 31, 2022 3:31:53 GMT -8
As it stands currently, we have some custom HTML to filter what groups are able to view certain aspects on user profiles. I'm not 100% certain if it can be censored using HTML alone..? Every reference I've viewed online includes Javascript and it's unfortunate that it won't work on Proboards. The current system we have works, so I guess we can stick with that for now. Thank you for the response!
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Dec 31, 2022 5:45:28 GMT -8
As it stands currently, we have some custom HTML to filter what groups are able to view certain aspects on user profiles. I'm not 100% certain if it can be censored using HTML alone..? Every reference I've viewed online includes Javascript and it's unfortunate that it won't work on Proboards. The current system we have works, so I guess we can stick with that for now. Thank you for the response! There is another option.. I wrote a 'Whisper Tag' plugin that allows you to post whispers to members of your choice. Only the members you kist will see the whispers, and the text is encrypted at the point of posting, so if JS was disabled, all the user would see is a bunch of random characters. Whisper TagsThere is no reason why that couldn't be used to hide emails within posts.
|
|
inherit
6871
0
Jun 10, 2024 2:25:35 GMT -8
bigballofyarn
"If you wish to make an apple pie from scratch, you must first invent the universe." -Carl Sagan
7,886
January 2003
bigballofyarn
|
Post by bigballofyarn on Dec 31, 2022 5:53:20 GMT -8
You can always create your own staff groups, assign the powers you want them to have, and then mark them as not staff. They won't be able to see email addresses at all unless the member shares them with everyone.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Jan 1, 2023 9:24:09 GMT -8
Ahhh.. Sorry, I thought you meant hiding emails in POSTS.. While my explanation against a plugin still stands, it would not be against PB rules to change something that is there by default, though it would still be easily circumvented. bigballofyarn's solutions is the best, and would be totally secure.
|
|