Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Remove Post Edit History (from within postbits) Details »
Remove Post Edit History (from within postbits)
Mod Version: 1.5, by MarkFL (Coder) MarkFL is offline
Developer Last Online: Jun 2020 I like it Show Printable Version Email this Page

vB Version: 4.2.x Rating: (3 votes - 5.00 average) Installs: 18
Released: 27 Feb 2016 Last Update: 11 Mar 2017 Downloads: 64
Not Supported Uses Plugins Additional Files Translations  

Overview:

This simple mod allows you to give certain usergroups the ability to remove post edit histories via a button to the left of the edit history data. Clicking the button will execute an external script that removes the post's edit history from the database, with a redirect message confirming the action taken. Both the redirect and the button's tooltip are phrased, and can be found by searching in the phrase variable names for "markfl_rpeh".

There is now also a button that allows for posts to be reverted to the previous version.



Updates

Version 1.1:
  • Fixed error where multiple buttons would be displayed for threads having more than one post with a post edit history.
  • Added setting for usergroups who can remove their own post edit histories.

Version 1.2:
  • Bug with multiple buttons fixed.

Version 1.3:
  • Bug preventing button from appearing on any page of a thread except the first fixed.

Version 1.4:
  • Added button that allows posts to be reverted to the previous version.

Version 1.5:
  • Uses intrinsic datamanager functions on post revert.
  • Make sure only forum posts are affected.
  • User returned to specific post upon action performed.

Compatibility:

Tested and working on VB 4.2.x and may work on all 4.x versions of vBulletin.

Backup/Warning:

This product does not alter your database upon installation, however it is always good practice to make regular backups and you should make a backup before installing ANY new mod.

As always, products are USE AT YOUR OWN RISK. I will provide support and do my best to help but no absolute guarantee is offered.

To Install:
  1. Download and extract the attached .zip file.
  2. Upload the contents of the "upload" folder to your forum's root directory.
  3. Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
  4. Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
  5. Click "Import."
  6. You MUST enable the product in the settings before it will function.
  7. Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.



Support for this product can be found here:

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	markfl_rpeh_acp.png
Views:	148
Size:	42.3 KB
ID:	154292   Click image for larger version

Name:	markfl_rpeh_buttons.png
Views:	276
Size:	5.2 KB
ID:	155020  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Moderators Functions Show User History On Infraction Form And Postbits MarkFL vBulletin 4.x Add-ons 72 19 Aug 2017 20:30

  #16  
Old 16 Jan 2017, 00:47
Techno Cowboy's Avatar
Techno Cowboy Techno Cowboy is offline
 
Join Date: May 2014
Real name: Cheyenne
What A Cool Tool!

Will load it on my vB 4.2.5 Beta 1 test site here shortly.

Thanks...

UPDATE:

Running As Should On My Beastly Build!
__________________
"When We Realize We Let It Go TOO Far.....It Will Be TOO Late!"

Last edited by Techno Cowboy; 16 Jan 2017 at 11:49.
Reply With Quote
  #17  
Old 03 Feb 2017, 17:06
mobster46 mobster46 is offline
 
Join Date: Dec 2016
Originally Posted by MarkFL View Post
Update - Version 1.1:
  • Fixed error where multiple buttons would be displayed for threads having more than one post with a post edit history.
  • Added setting for usergroups who can remove their own post edit histories.

Note: If upgrading from version 1.0 to version 1.1, there is no need to re-upload the external .PHP file included in the .ZIP file.
Can I see a message before it was edited?
Reply With Quote
  #18  
Old 03 Feb 2017, 17:08
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by mobster46 View Post
Can I see a message before it was edited?
Yes, you can compare versions by clicking on the "Edited by" link provided by vBulletin.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #19  
Old 03 Feb 2017, 17:11
mobster46 mobster46 is offline
 
Join Date: Dec 2016
Originally Posted by MarkFL View Post
Yes, you can compare versions by clicking on the "Edited by" link provided by vBulletin.
Is there a more practical solution to this?
2 message will be opened in the form of a pop-up window that I can see at the same moment?
Reply With Quote
  #20  
Old 03 Feb 2017, 17:12
mobster46 mobster46 is offline
 
Join Date: Dec 2016
Originally Posted by MarkFL View Post
Yes, you can compare versions by clicking on the "Edited by" link provided by vBulletin.
Okay, I noticed. Thank you.
Reply With Quote
  #21  
Old 10 Mar 2017, 12:32
X-or X-or is offline
 
Join Date: Nov 2005
This mod is not compatible with latest vb 4.2.4 update.
Accessing a CMS article can result in a database error.

Uninstalled.
Reply With Quote
  #22  
Old 10 Mar 2017, 13:15
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Real name: Doug
Installed with thanks to Mark on v4.13...

It seems to work fine, except when you edit a post to perhaps add additional text etc., then after saving it, you choose to click the "Revert Post" button because you want to restore the first original post.

That "Revert Post" button then removes all edit info from bottom of the post so it appears as it it was never edited, which is probably what it should do since you've only done one edit of the original post.

However, the content showing in the post is NOT just the content of the original post you wanted to revert to, but rather the last edited post state you had saved, which included the changes you had made? If you then select EDIT POST again, you now see correctly just the content of the original post you wanted to revert to?

Is there something I'm not understanding?

Thanks...

Regards,
Doug

Last edited by BadgerDog; 10 Mar 2017 at 13:24.
Reply With Quote
  #23  
Old 10 Mar 2017, 16:56
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by X-or View Post
This mod is not compatible with latest vb 4.2.4 update.
Accessing a CMS article can result in a database error.

Uninstalled.
Sorry, I never intended it to work with CMS, but with forum posts only...it is in fact compatible with vB 4.2.4.

In the next update, I will add a condition that prevents the button from showing up on CMS articles.

Originally Posted by BadgerDog View Post
Installed with thanks to Mark on v4.13...

It seems to work fine, except when you edit a post to perhaps add additional text etc., then after saving it, you choose to click the "Revert Post" button because you want to restore the first original post.

That "Revert Post" button then removes all edit info from bottom of the post so it appears as it it was never edited, which is probably what it should do since you've only done one edit of the original post.

However, the content showing in the post is NOT just the content of the original post you wanted to revert to, but rather the last edited post state you had saved, which included the changes you had made? If you then select EDIT POST again, you now see correctly just the content of the original post you wanted to revert to?

Is there something I'm not understanding?

Thanks...

Regards,
Doug
That likely has to do with post caching. I may need to look into using vBulletin's intrinsic data manager rather than writing to the db.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #24  
Old 10 Mar 2017, 17:40
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Real name: Doug
Originally Posted by MarkFL View Post
That likely has to do with post caching. I may need to look into using vBulletin's intrinsic data manager rather than writing to the db.
Ahhh... that could be ...

If you want to add something to code that forces (flushes) the cache to eliminate the residual left over text, I'd be happy to test an update for you.

Thanks Mark ...

Regards,
Doug
Reply With Quote
  #25  
Old 11 Mar 2017, 02:23
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Update - Version 1.5:
  • Uses intrinsic datamanager functions on post revert.
  • Make sure only forum posts are affected.
  • User returned to specific post upon action performed.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #26  
Old 11 Mar 2017, 11:32
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Real name: Doug
Thanks Mark...

Updated to 1.5 and ran a test thread ..

1. Created a new thread (first post)...
2. Edited (didn't go to advanced edit) first post simply adding some text..
3. After saving the edited post, screen flashed and edited first post returned showing correctly edits post adding the new text, however, there was only the standard vbulletin edit link notification at bottom of post (see right pic). I then clicked page refresh and that link, plus your add on options appeared. (see left pic)
4.Clicked "Revert" button and web page screen cleared to a white page and froze. It didn't return to the post and I had to click on home page to work my way back to the test post.
5. The good news is when I did that and got back to the test post, it had reverted correctly to the original first post content, as it should have, plus no vBulletin edit link or your add-on option appeared any longer, whic would also be correct for your mod. The locked up white screen seems to be something new for us in 1.5.

If there's anything else we can do to help, please let use know..

Note: we do use Sucuri firewal..

https://sucuri.net/website-firewall/

It has been an outstanding product for our site to protect it from spam, viruses and added improved performance. It uses a world wide caching system, so I wonder if that's a factor.

Regards,
Doug
Attached Images
File Type: png Screen Shot 2017-03-11 at 6.24.45 AM.png (8.7 KB, 3 views)
File Type: png Screen Shot 2017-03-11 at 6.24.23 AM.png (7.6 KB, 2 views)
Reply With Quote
  #27  
Old 11 Mar 2017, 13:36
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Hello Doug,

I suspect the white screen you got is an issue with using vB 4.1.x, as I'm not getting that on my local dev site running vB 4.2.5. The buttons don't appear immediately after using the quick editor, only the advanced editor but I don't consider that much of an issue since you would typically use this on the posts of others.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #28  
Old 11 Mar 2017, 13:52
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Real name: Doug
Originally Posted by MarkFL View Post
Hello Doug,

I suspect the white screen you got is an issue with using vB 4.1.x, as I'm not getting that on my local dev site running vB 4.2.5. The buttons don't appear immediately after using the quick editor, only the advanced editor but I don't consider that much of an issue since you would typically use this on the posts of others.
Thanks Mark..

I didn't get the white screen hang with v1.4, so something changed in 1.5 that has caused the hanging white screeninteraction.

Appreciate your efforts, but I'll uninstall the mod, since it's unlikely to work with our site at this point...

Regards,
Doug
Reply With Quote
  #29  
Old 11 Mar 2017, 14:05
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
I made only one change to the removal portion of the script, and this change is also in the revert portion, so it's odd that the removal portion gives you a white screen while the revert portion doesn't.

However, as I said, I can't replicate the issue. Sorry about that.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #30  
Old 12 Mar 2017, 22:44
X-or X-or is offline
 
Join Date: Nov 2005
database error on cms articles still happen
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 03:35.

Layout Options | Width: Wide Color: