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: 28
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: 210
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
phpBB NL Extension translations, also on request.
--> Click Here: Myarea51secrets.com <--
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: 28
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: 1370
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: 11372
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

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: 1370
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: 1327
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.
Buy me a coffee
Hire me for your phpBB board.
Introducing Mobile Upgrade! Make your phpBB board like an app!
O BeldeThatTowns*for sale*
"The day we will need ideas more than possessions, we will find the secret to true wealth." - Peyami Safa
User avatar
Toxyy
Registered User
Posts: 955
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: 11372
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

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.

Return to “[3.3.x] Support Forum”