How to remove Foe posts from quotes and hide Foe posts completely?

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
phpbuser19
Registered User
Posts: 29
Joined: Mon Aug 16, 2021 9:36 pm

How to remove Foe posts from quotes and hide Foe posts completely?

Post by phpbuser19 »

1. Some of my users are complaining that they can see messages for users from their personal foe list in quotes.

When someone is quoting their "foe" - that message is still readable by the user.

2. Is there a way to make "foe" posts to be deleted completely (from posts and quotes), without an option to see them. Right now when someone from your foe lists posts something - you still have an option to "unhide" it.
User avatar
SpIdErPiGgY
Registered User
Posts: 330
Joined: Sun May 02, 2021 2:11 pm
Location: Erpe-Mere, Aalst, BE
Name: Andy Dm

Re: How to remove Foe posts from quotes and hide Foe posts completely?

Post by SpIdErPiGgY »

Same with private messages. They can still PM you, OR you need to make a rule in the PM settings.
It would be better to completely hide the foes everywhere.

Foe = Blocked = Invisible
Image
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: How to remove Foe posts from quotes and hide Foe posts completely?

Post by david63 »

phpbuser19 wrote: Wed Sep 15, 2021 4:31 pm Is there a way to make "foe" posts to be deleted completely
If that was even possible then if every member of your board was a foe of another member you would have nothing on your board
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
phpbuser19
Registered User
Posts: 29
Joined: Mon Aug 16, 2021 9:36 pm

Re: How to remove Foe posts from quotes and hide Foe posts completely?

Post by phpbuser19 »

david63 wrote: Wed Sep 15, 2021 8:05 pm
phpbuser19 wrote: Wed Sep 15, 2021 4:31 pm Is there a way to make "foe" posts to be deleted completely
If that was even possible then if every member of your board was a foe of another member you would have nothing on your board
I mean delete completely for the user with the Foe list.

If I have user X blocked/added to Foe list - I don't want to see their posts, or quotes with their posts.
Bruce Banner
Registered User
Posts: 1383
Joined: Thu Sep 25, 2014 10:36 am

Re: How to remove Foe posts from quotes and hide Foe posts completely?

Post by Bruce Banner »

Would this need an extension?
User avatar
warmweer
Jr. Extension Validator
Posts: 12091
Joined: Fri Jul 04, 2003 6:34 am
Location: somewhere in the space-time continuum

Re: How to remove Foe posts from quotes and hide Foe posts completely?

Post by warmweer »

Bruce Banner wrote: Mon Apr 22, 2024 9:38 pm Would this need an extension?
Strange question. There are three options: extension, custom coding or default feature.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
Bruce Banner
Registered User
Posts: 1383
Joined: Thu Sep 25, 2014 10:36 am

Re: How to remove Foe posts from quotes and hide Foe posts completely?

Post by Bruce Banner »

warmweer wrote: Tue Apr 23, 2024 4:23 am Strange question. There are three options: extension, custom coding or default feature.
How could I possibly know which option would work?
User avatar
halil16
Registered User
Posts: 1491
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil

Re: How to remove Foe posts from quotes and hide Foe posts completely?

Post by halil16 »

It seems like a bit of a tall order. Can it be controlled and hidden with the user id or username in the quote? But what if these are deleted? What if it just copies the text and uses the straight quote BBcode? It seems like it can't be completely blocked.
Introducing Mobile Upgrade! *Make your phpBB board like an app! 📱
Hire me for your phpBB board. 🚩
Buy me a coffee ☕

"The day we'll need ideas more than possessions, we'll find the secret to true wealth." - Peyami Safa /peˈjɑːmi saˈfɑː/
User avatar
Toxyy
Registered User
Posts: 966
Joined: Mon Oct 24, 2016 3:22 pm
Location: Namek

Re: How to remove Foe posts from quotes and hide Foe posts completely?

Post by Toxyy »

Because of the way quoting works internally it would be kind of tedious to remove foe posts using PHP. Technically possible but you'd have to use DOMXpath and do some fun parsing there, per user, whenever viewing a topic page and parse every post's quotes. I do some xpath parsing here for reference. I'm not sure how much of server resources that would use, especially if your board is pretty large. If an extension were to be made for this purpose it would make more sense to parse every quote block with javascript using a predefined list of the user's current foes IMO. Could be done either way but less server resources used that way.

If they manually quote someone by writing manual bbcode as halil said in the post above, good luck with that though.
I am a web developer/administrator, specializing in forums. If you have work you need done or are too lazy to do, pm me!

Some of my extensions:
[3.3][BETA] Post Form Templates || [3.3][BETA] Anonymous Posts || [3.2][3.3][BETA] ACP Merge Child Forums || [3.2][BETA] Sticky Ad || [3.2][DEV] User Delete Topics || [3.3][DEV] Moderate While Searching || [3.3][RC] Short Number Twig Extension
User avatar
warmweer
Jr. Extension Validator
Posts: 12091
Joined: Fri Jul 04, 2003 6:34 am
Location: somewhere in the space-time continuum

Re: How to remove Foe posts from quotes and hide Foe posts completely?

Post by warmweer »

Bruce Banner wrote: Tue Apr 23, 2024 5:05 am
warmweer wrote: Tue Apr 23, 2024 4:23 am Strange question. There are three options: extension, custom coding or default feature.
How could I possibly know which option would work?
All 3 would work if coded properly, but custom coding (as you should know) is not recommended as it implies redoing the edit with each update + the uncertainty of the code still functioning as expected with phpBB updates.
The same applies to extensions but to a much lesser degree as extensions are usually updated by the author (if necessary).

Default feature avoids the hassle but that will only happen if the feature is deemed necessary or very valuable.
For me removing posts and quotes from foes isn't a good option, however the option of making them invisible (a user/forum permission) could be something to consider (with the option to show the post/quote with a simple click button attached to a post ; something like a spoiler button) (having said this, I doubt I would ever make use of it)..
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
tahiti
Registered User
Posts: 9
Joined: Sat Nov 16, 2024 10:33 am

Re: How to remove Foe posts from quotes and hide Foe posts completely?

Post by tahiti »

Did anyone happen to come up with a solution for this? My users are much the same as OP. They came from an old forum, where they were able to block another user, which completely hid the blocked user from their experience (ie, no threads visible, no posts visible, quoted posts not visible, no PM ability, etc). It was a true out of sight, out of mind experience for them.

It's been a long time since I've seen that complete of a user to user block function on a forum, so I'm skeptical it's possible, or popular enough for it to be developed. However, an enhanced foe list where at least the blocked user can't PM the user who blocked them, and an improvement on the hidden posts/replied to posts would be an acceptable solution for them at this point. While these people have largely all posted together for decades, they fight like siblings at times and the ability to give each other personal time outs has been pretty invaluable over the years.

I'm pretty new to all this, but I've tried searching forums and extensions without much luck. Results always tend to give info on admin level blocking of users, rather than user to user block functionality. This is the first thread I've seen discussing exactly what I'm looking for.

Thanks for any help. I'll keep looking in the meantime.

Return to “[3.3.x] Support Forum”