Editing all quoted info everywhere a post is quoted?

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
User avatar
Toxyy
Registered User
Posts: 541
Joined: Mon Oct 24, 2016 3:22 pm
Contact:

Editing all quoted info everywhere a post is quoted?

Post by Toxyy » Sat Nov 10, 2018 7:19 pm

So in my anonymous extension, if someone quotes a post and then that post is made anonymous after the fact, people will be able to tell who the anonymous user is. Much of this is fixed by the user not changing their minds but that is not the right solution here.

How expensive would it be to parse all posts in a thread to see if a post has been quoted, then modify the usernames in those quotes? I already modify the usernames in quotes for notifications when submitting, but this seems absolutely idiotic. The only way I can think of to change this would be to parse every post down to like, 3 levels, and add the postid of the post that quoted them in some long array, per quote. That would significantly decrease the having to parse every post thing but good lord this just seems idiotic to think about.

Should I just not allow people to toggle anonymous on and off to avoid this mess? I'm already going to have to modify all notifications if a post is edited, which isn't that bad by comparison but, damn...
I am a web developer/administrator, specializing in forums. If you have work you need done or are too lazy to do, pm me!

My extensions:
[3.2][BETA] Anonymous Posts || [3.2][RC] Show User Activity

User avatar
david63
Jr. Extension Validator
Posts: 14903
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Editing all quoted info everywhere a post is quoted?

Post by david63 » Sat Nov 10, 2018 10:26 pm

Toxyy wrote:
Sat Nov 10, 2018 7:19 pm
How expensive would it be to parse all posts in a thread to see if a post has been quoted
That would, to a large extent, depend on how replies there were in the topic (phpBB does not have threads).

Also bear in mind that a post can be quoted in another topic.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
3Di
Registered User
Posts: 12982
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Editing all quoted info everywhere a post is quoted?

Post by 3Di » Sun Nov 11, 2018 6:18 am

Have a look at this one viewtopic.php?f=456&t=2473896 perhaps helps.
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

User avatar
Toxyy
Registered User
Posts: 541
Joined: Mon Oct 24, 2016 3:22 pm
Contact:

Re: Editing all quoted info everywhere a post is quoted?

Post by Toxyy » Sun Nov 11, 2018 7:21 pm

david63 wrote:
Sat Nov 10, 2018 10:26 pm
That would, to a large extent, depend on how replies there were in the topic (phpBB does not have threads).

Also bear in mind that a post can be quoted in another topic.
Yeah, that's why I'm more in favor for only allowing it for staff, but it seems that most of the coding is done by this extension:
3Di wrote:
Sun Nov 11, 2018 6:18 am
Have a look at this one viewtopic.php?f=456&t=2473896 perhaps helps.
Thanks! I think this is exactly what I need.
I am a web developer/administrator, specializing in forums. If you have work you need done or are too lazy to do, pm me!

My extensions:
[3.2][BETA] Anonymous Posts || [3.2][RC] Show User Activity

Post Reply

Return to “Extension Writers Discussion”

Who is online

Users browsing this forum: No registered users and 11 guests