Quote:
Yesterday at 05:44 PM Music Pirate said this in Post #6
I wish there was a way that you could create a "Trash or Delete" folder and have a button/link to delete all the pms in that folder. Just like how emails are handled. Because sometimes I like to keep a few pms in a "saved" folder and since these types of hacks delete everything you can't save any pms. Didn't know if this could be possible.
|
Try this... this will add a new folder to your members pm box called "Saved Messages"... when clicking on the link with the edits below... it will remove all pms that are NOT in the saved messages folder

Note that you must have installed the above hack before this will work.
[high]Sorry But i have to do two different versions of my little hack here... the one in this post is for people who have installed
this hack... Improved PM Folderview.[/high]
In privfolder template...
Find:
PHP Code:
<tr>
<td bgcolor="#13486D" width="100%"><normalfont><a href="private.php?s=$session[sessionhash]&folderid=-1">Sent Items</a></font></td>
</tr>
Add After:
PHP Code:
<tr>
<td bgcolor="#13486D" width="100%"><normalfont><a href="private.php?s=$session[sessionhash]&folderid=-2">Saved Messages</a></font></td>
</tr>
Find:
PHP Code:
<option value="0">$inboxname</option>
Add After:
PHP Code:
<option value="-2">Saved Messages</option>
In private.php
Find:
PHP Code:
$DB_site->query("DELETE FROM privatemessage WHERE userid='".$bbuserinfo['userid']."'");
Replace With:
PHP Code:
$DB_site->query("DELETE FROM privatemessage WHERE userid='".$bbuserinfo['userid']."' AND folderid!='-2'");