[CDB] Prime Post Revisions

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Anti-Spam Guide
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
Dark❶
Registered User
Posts: 395
Joined: Mon Jan 15, 2018 1:22 pm
Location: D@rK V0id
Name: Dark❶ [dark1]
Contact:

Re: [3.2][3.3][RC] Prime Post Revisions

Post by Dark❶ »

Zinnn wrote: Mon Sep 26, 2022 9:24 am ...
I don't mind the edits being visible, I just don't want to clog the DB with storing info about my edits. I.e. I have a sticky thread that serves as a menu, which I edit on a daily basis. It's unnecessary for me to keep storing all those edits (I know I can delete them one by one, but it's time consuming).
...
But that would delete everyone's history right?

The reason why I want this extension is (and this has happened a few times already) some old, no longer active users decide to come back after many years and edit all their posts deleting all their comments. So sometimes I catch this behaviour only some time after they do it.
Then use checkbox Do not save post history in Options tab while editing your post.
{ same place as disable BBcode or smilies or ...etc... }

Best regards :+1:
Dark❶ [dark1]
Zinnn
Registered User
Posts: 88
Joined: Sun Apr 21, 2019 8:14 am

Re: [3.2][3.3][RC] Prime Post Revisions

Post by Zinnn »

Brilliant, I totally missed that checkbox! thank you :)
panhead
Registered User
Posts: 950
Joined: Sat Dec 20, 2003 8:17 pm

Re: [3.2][3.3][RC] Prime Post Revisions

Post by panhead »

I do not see that checkbox?
Zinnn
Registered User
Posts: 88
Joined: Sun Apr 21, 2019 8:14 am

Re: [3.2][3.3][RC] Prime Post Revisions

Post by Zinnn »

Image
panhead
Registered User
Posts: 950
Joined: Sat Dec 20, 2003 8:17 pm

Re: [3.2][3.3][RC] Prime Post Revisions

Post by panhead »

This is all (for administrator):
post.jpg
post.jpg (8.75 KiB) Viewed 1723 times
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26505
Joined: Fri Aug 29, 2008 9:49 am

Re: [3.2][3.3][RC] Prime Post Revisions

Post by Mick »

Maybe you have to be a founder?
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
User avatar
primehalo
Former Team Member
Posts: 2988
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [3.2][3.3][RC] Prime Post Revisions

Post by primehalo »

That option shows if you have permission to delete the revision.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
panhead
Registered User
Posts: 950
Joined: Sat Dec 20, 2003 8:17 pm

Re: [3.2][3.3][RC] Prime Post Revisions

Post by panhead »

I am founder and can delete revisions.
User avatar
primehalo
Former Team Member
Posts: 2988
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [3.2][3.3][RC] Prime Post Revisions

Post by primehalo »

It checks the m_primepostrev_delete and f_primepostrev_delete permissions. If you have the ability to delete a revision then you should have the ability to not store a revision. If you don't, maybe it didn't install correctly?
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
panhead
Registered User
Posts: 950
Joined: Sat Dec 20, 2003 8:17 pm

Re: [3.2][3.3][RC] Prime Post Revisions

Post by panhead »

maybe it didn't install correctly?
Can't rule that out :) , but what could have gone wrong?
Best to un-install and install?
User avatar
primehalo
Former Team Member
Posts: 2988
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [3.2][3.3][RC] Prime Post Revisions

Post by primehalo »

If you want to debug it, search the code for NO_POST_REV. This is the template variable that controls whether the checkbox is shown. It gets set in this line:

Code: Select all

$page_data['NO_POST_REV'] = !$new_post && $this->core->is_auth('delete', $event['forum_id'], $event['post_data']['poster_id']);
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!
panhead
Registered User
Posts: 950
Joined: Sat Dec 20, 2003 8:17 pm

Re: [3.2][3.3][RC] Prime Post Revisions

Post by panhead »

I had 1.0.3 installed, updated to 1.0.6. No change.
How can I debug it?
User avatar
Dark❶
Registered User
Posts: 395
Joined: Mon Jan 15, 2018 1:22 pm
Location: D@rK V0id
Name: Dark❶ [dark1]
Contact:

Re: [3.2][3.3][RC] Prime Post Revisions

Post by Dark❶ »

panhead wrote: Fri Sep 30, 2022 4:53 pm I had 1.0.3 installed, updated to 1.0.6. No change.
How can I debug it?
Better to: disable > delete data > delete files > fresh install

Best regards :+1:
Dark❶ [dark1]
panhead
Registered User
Posts: 950
Joined: Sat Dec 20, 2003 8:17 pm

Re: [3.2][3.3][RC] Prime Post Revisions

Post by panhead »

Will do, thank you.
panhead
Registered User
Posts: 950
Joined: Sat Dec 20, 2003 8:17 pm

Re: [3.2][3.3][RC] Prime Post Revisions

Post by panhead »

Did as suggested, I see the option now. Thanks again.
Locked

Return to “Extensions in Development”