vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Private Messages Enhancements - PM Undo (https://vborg.vbsupport.ru/showthread.php?t=258791)

sheppardzwc 02-12-2011 10:00 PM

PM Undo
 
1 Attachment(s)
PM Undo
designed by the guy at ateran (Professional vB Dev)

Ever sat down to right an email to your boss about how you hate the company, your life, your kids, his kids, his incompetence, the world, your keyboard... the list goes on. Then you hit Send? Oh [s]shi-[/s] darn, I just sent it!

Now imagine doing the same thing in a PM on your boards. There's no way out. Or is there?

Introducing PM Undo; you can now easily undo any PM in your Sent Items folder as long as the recipient(s) hasn't viewed it yet. Just click the little blue button by the time!

This has been designed for vB 3.8.x but has worked on 3.7.x. I haven't tested any lower than that.

Features:

* Undo any PM you have sent in the past as long as it hasn't been viewed yet
* Supports multiple recipients
* Includes a "PM Archive" where any administrator can view all PMs that have been "undone" and can revert/restore them if necessary (breaks rules, etc.)
* Automatic pruning of the archive mentioned previously
* Lightweight, uses as few queries as possible
* Made in the USA! :rolleyes:

Changelog:

1.1 - Fixed critical bug when a user had e-mail notification for private messages enabled
1.0 - Initial Release

and remember... :D

MARK AS INSTALLED

FreshFroot 02-13-2011 03:58 AM

wow great idea.. I've had those instances where I wish I could've undo a PM. Either because I sent 2 or just things I didn't want to send or wanted to ignore.

Great stuff!

ctrlbrk 02-15-2011 12:29 AM

Am I correct that this would not work for any users with email notifications turned on?

Hellmaster 02-15-2011 12:51 AM

Sounds sooo great, but... What about email notification?

sheppardzwc 02-15-2011 02:00 AM

Quote:

Originally Posted by ctrlbrk (Post 2162653)
Am I correct that this would not work for any users with email notifications turned on?

Quote:

Originally Posted by Hellmaster (Post 2162659)
Sounds sooo great, but... What about email notification?

Thanks for bring that to my attention; completely forgot about that feature as I rarely use it...

While I can't block e-mail notification, I've updated the modification to detect the recipients of the private message. If any of them have e-mail notification for private messages enabled it will not let the user undo the private message.

OldSchoolDSL 02-15-2011 03:29 AM

Have you or anyone tested this on vBulletin 4?

OldSchoolDSL 02-16-2011 02:21 AM

Quote:

Originally Posted by OldSchoolDSL (Post 2162680)
Have you or anyone tested this on vBulletin 4?

Well I tried, but got all kinds of little errors.

PHP Code:

Warningarray_merge () [ function.array-Merge ]: Argument # 1 is not an array in [path]/includes/class_bootstrap.php(1309) : eval()'d code on line 423 

This was posted in my header too.

Kind of hope the author will make on for vb4 soon.

sheppardzwc 02-16-2011 07:34 PM

Quote:

Originally Posted by OldSchoolDSL (Post 2163060)
Well I tried, but got all kinds of little errors.

PHP Code:

Warningarray_merge () [ function.array-Merge ]: Argument # 1 is not an array in [path]/includes/class_bootstrap.php(1309) : eval()'d code on line 423 

This was posted in my header too.

Kind of hope the author will make on for vb4 soon.

To tell you the truth I wanted to see if this was a usable mod and obviously it is, so I will upgrade it to vB4 soon. ;)

OldSchoolDSL 02-17-2011 04:45 PM

Quote:

Originally Posted by sheppardzwc (Post 2163340)
To tell you the truth I wanted to see if this was a usable mod and obviously it is, so I will upgrade it to vB4 soon. ;)

I really do look forward to this.

Thank you :)

Wonksta 02-17-2011 09:02 PM

Anyway to disable email notifications globally of new PM's via Email that has been selected by users as an option and prevent the option being availabe for members?

If so this will be a nice feature for paid subscription I think!

OldSchoolDSL 03-06-2011 04:27 PM

Any update for vBulletin 4 ?

Sadie Frost 05-06-2011 01:18 AM

Hmm nothing shows up for me in the pm list in 3.84...I do get the menu in the admincp but that's it. :(

Simon Lloyd 05-06-2011 02:47 AM

Could you possibly add an option to toggle the "don't undo if email notification"? i'd like to let my users choose to enable undo for a particular PM if a recipient has been detected as having email notifications set, maybe unhide some text and a checkbox in the PM window when the detection is made.


All times are GMT. The time now is 04:59 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.01135 seconds
  • Memory Usage 1,743KB
  • 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
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete