PDA

View Full Version : Delete PM after reply is sent


Andreas
01-26-2005, 10:00 PM
Description
This hack gives you a new checkbox (under Additional Options) when replying to a PM.
If it is checked, the original PM will be deleted after the reply was sent - helps to keep your PM-Box clean :).

Details
Files to Modify: 1
Templates to Modify: 1
Difficulty: Easy

Changelog
1.01 Fixed the errors in the install instructions
1.02 Fixed pmtotal not being updated

gembels
01-27-2005, 05:40 AM
good.. nice hack.. *click installed*

yoyoyoyo
01-27-2005, 06:45 AM
For such a small hack the install is pretty wacky.

Using 3.0.6 In profile.php I can't seem to find:
$pm['forward'] = 0;
or
$url = "private.php?$session[sessionurl]";
eval(print_standard_redirect('pm_messagesent'));
are you sure you didn't mean private.php instead of profile.php in the instructions?

I also don't see a "newpm" template. Are you sure you didn't mean pm_newpm?

That's all 3 edits, and all of them are fubar ;)

edit: I went ahead and applied the changes in the read me to the private.php file and pm_newpm template instead, assuming that is what you meant, and it works fine :D Thanks!

Andreas
01-27-2005, 11:43 AM
Yeah, private.php and pm_newpm were meant, seems like I was too tired when putting this together ;)
Fixed, thanks for pointing this out.

voclain
01-27-2005, 12:43 PM
THANK YOU SO MUCH!!!!

Kirk

Kihon Kata
01-29-2005, 04:50 AM
"Clicks" install!

mkdevo
02-24-2005, 03:54 PM
cool hack.. installed.. one question:

would it be possible (and how?) to add this hack to the quick reply hack (https://vborg.vbsupport.ru/showthread.php?t=59999)??

allhandl
02-28-2005, 11:19 AM
Pefect and Quick Hack. Flawless.

What variable do i change to default to be on?

drumsy
05-17-2005, 11:15 PM
This does not reduce the total PM count. How can I accomplish this?

Andreas
06-03-2005, 03:16 AM
Instructions updated, thank you.

yj_enquirer
06-09-2005, 09:35 PM
Thank-you... as a admin of a site...this is proving to be a major benefit for me...

Thanks..

Gutspiller
08-16-2005, 08:08 PM
Can this be set as a perminent setting or does the user have to manually click this checkbox every single time they reply to a PM?

Andreas
08-16-2005, 08:14 PM
You can easily make it checked by default by adding checked="checked"

Gutspiller
08-16-2005, 08:58 PM
Where would I add that in the code?

voclain
11-18-2006, 03:39 AM
I'm wondering if this will work with 3.6.3???

Kirk

voclain
11-21-2006, 07:18 PM
Bump???? Still wondering???

Kirk