vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - Remove Post Edit History (from within postbits) (https://vborg.vbsupport.ru/showthread.php?t=321937)

MarkFL 02-26-2016 10:00 PM

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:
  • 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.

https://vborg.vbsupport.ru/attachmen...1&d=1456557227

Support for this product can be found here:

Elixar 02-27-2016 06:26 AM

Awesome mod Mark. :)

hazem_aliraqi 02-27-2016 02:55 PM

thank you mark

Alan_SP 02-27-2016 04:23 PM

Great idea.

Stratis 02-27-2016 04:33 PM

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 :)

Nirjonadda 02-27-2016 05:44 PM

Can add user option? Who user can Use this mod ?

MarkFL 02-27-2016 05:49 PM

Quote:

Originally Posted by Stratis (Post 2565760)
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 :)

That will be easy to add. I will do so tonight. :)

Quote:

Originally Posted by Nirjonadda (Post 2565764)
Can add user option? Who user can Use this mod ?

Do you mean you want to permit users individually, rather than entire usergroups?

Nirjonadda 02-27-2016 06:27 PM

Yes, Enter user ID option.

MarkFL 02-27-2016 06:45 PM

Quote:

Originally Posted by Nirjonadda (Post 2565768)
Yes, Enter user ID option.

Why not just create a usergroup for that purpose?

In Omnibus 02-27-2016 08:37 PM

Quote:

Originally Posted by MarkFL (Post 2565769)
Why not just create a usergroup for that purpose?

Too easy. :D


All times are GMT. The time now is 07:06 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01191 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete