![]() |
Remove Post Edit History (from within postbits)
1 Attachment(s)
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. https://vborg.vbsupport.ru/attachmen...1&d=1463551611 Updates Version 1.1:
Version 1.2:
Version 1.3:
Version 1.4:
Version 1.5:
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:
https://vborg.vbsupport.ru/attachmen...1&d=1456557227 Support for this product can be found here: |
Awesome mod Mark. :)
|
thank you mark
|
Great idea.
|
Works perfect, nice Mod.
For future use. You have this now: Allowed Usergroup(s) Set the usergroup(s) allowed to remove post edit histories. How about one more option, if it can be done. Allowed Usergroup(s) Set the usergroup(s) allowed to remove from there own posts edit histories. * I have this now for use to Admins, SMods and Mods. * If forums have experts members or else (as I have), they might want to give them the privileges to use this mod, but only effect to there own posts. :D Mark you Rock :) |
Can add user option? Who user can Use this mod ?
|
Quote:
Quote:
|
Yes, Enter user ID option.
|
Quote:
|
Quote:
|
Update - Version 1.1:
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. |
I have seen multiple button yesterday, you prevent me.
Now with this v1.1 nothing works at least for me. Made clean install, same thing. Install v1.0 works again. Tried this change 3-4 times. |
Quote:
|
Quote:
Update v1.3 works fine. Than you, very useful mod :) |
Update - Version 1.4:
|
What A Cool Tool! :cool:
Will load it on my vB 4.2.5 Beta 1 test site here shortly. Thanks...:up: UPDATE: Running As Should On My Beastly Build! :D |
Quote:
|
Quote:
|
Quote:
2 message will be opened in the form of a pop-up window that I can see at the same moment? |
Quote:
|
This mod is not compatible with latest vb 4.2.4 update.
Accessing a CMS article can result in a database error. Uninstalled. |
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 |
Quote:
In the next update, I will add a condition that prevents the button from showing up on CMS articles. Quote:
|
Quote:
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 |
Update - Version 1.5:
|
1 Attachment(s)
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 |
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. :) |
Quote:
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 |
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. :( |
database error on cms articles still happen
|
Quote:
Do you happen to have Mark Thread Unread On Edit [v2.2] installed? |
Quote:
The database error happens only when this post edit mod is installed and enabled. As soon as it is disabled, the error no longer happens. I'm not 100% sure but I think there is a set of conditions for the database crash to occur -cms article must be published -cms article must be edited -user must be logged in try re-access the article then and the crash should occur |
Quote:
|
all I know is if I uninstall this product I no longer have issues with cms ¯\_(ツ)_/¯
|
All times are GMT. The time now is 03:28 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|