PDA

View Full Version : User can Empty All PMs


Beorn
06-24-2003, 10:00 PM
This is really simple. I was amazed when I couldn't find it here. All it does is empties a user's PM box when they click a link and say "Yes, I'm sure"...

If you're good, you can get this installed in less than a minute. Otherwise, it may take two minutes!

You can alter it so that it appears as one of the Move/Forward/Delete buttons...you can also make an image for it (new message, pm tracking, pm to buddies, folders)

Really simple. That's all.

Logician
06-25-2003, 06:01 PM
You didn't search hard:
Clean Sweep Private Message Box (https://vborg.vbsupport.ru/showthread.php?s=&threadid=38489)

Floris
06-25-2003, 06:07 PM
A fair try though :)

ImportPassion
06-25-2003, 06:51 PM
this one is way more simple tho.

Thnx dood.

minder
06-25-2003, 07:32 PM
cool very simple i click install

Sam FT
06-25-2003, 09:44 PM
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.

Beorn
06-26-2003, 12:47 AM
Today at 03:01 PM Logician said this in Post #2 (https://vborg.vbsupport.ru/showthread.php?postid=412697#post412697)
You didn't search hard:
Clean Sweep Private Message Box (https://vborg.vbsupport.ru/showthread.php?s=&threadid=38489)


Agh! I searched for empty, delete, remove....

I couldn't find yours...sorry...

Music Pirate -- I'll see if I can work on that after I finish up a few other things that are waiting for my attention....

ranger2kxlt
06-26-2003, 04:45 AM
Yesterday at 05:44 PM Music Pirate said this in Post #6 (https://vborg.vbsupport.ru/showthread.php?postid=412775#post412775)
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.

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 (https://vborg.vbsupport.ru/showthread.php?s=&threadid=36764)... Improved PM Folderview.

In privfolder template...

Find:
<tr>
<td bgcolor="#13486D" width="100%"><normalfont><a href="private.php?s=$session[sessionhash]&folderid=-1">Sent Items</a></font></td>
</tr>

Add After:
<tr>
<td bgcolor="#13486D" width="100%"><normalfont><a href="private.php?s=$session[sessionhash]&folderid=-2">Saved Messages</a></font></td>
</tr>


Find:
<option value="0">$inboxname</option>

Add After:
<option value="-2">Saved Messages</option>



In private.php

Find:
$DB_site->query("DELETE FROM privatemessage WHERE userid='".$bbuserinfo['userid']."'");

Replace With:
$DB_site->query("DELETE FROM privatemessage WHERE userid='".$bbuserinfo['userid']."' AND folderid!='-2'");

ranger2kxlt
06-26-2003, 04:57 AM
And this one is for people who just have the default pm box.

In privfolder template...

Find:
<option value="-1" $folderselect[$sent]>$sentitemsname</option>

Add After:
<option value="-2">Saved Messages</option>


Find:
<option value="0">$inboxname</option>

Add After:
<option value="-2">Saved Messages</option>



In private.php

Find:
$DB_site->query("DELETE FROM privatemessage WHERE userid='".$bbuserinfo['userid']."'");

Replace with:
$DB_site->query("DELETE FROM privatemessage WHERE userid='".$bbuserinfo['userid']."' AND folderid!='-2'");

Sam FT
06-26-2003, 09:25 PM
Thats great ranger2kxlt I will have to take a look at this. I totally forgot about saying that I had the Improved Folder View Hack installed you must have read my mind..:). But I will take a look at this, it will be great...this way my users can keep those pms they want saved. I say release this a hack so that everyone knows about this.

Sam FT
06-28-2003, 03:39 PM
Sorry ranger2kxlt but it didn't work. When I moved a pm to the Saved Messages folder the pm didn't showup..basically vanished.

ranger2kxlt
06-29-2003, 06:24 AM
Sorry it was a typo on my part... try again, all fixed ;).