View Full Version : Clean Sweep Private Message Box
Logician
05-09-2002, 10:00 PM
Hiyas,
Do you have users who cant clean their private message box? Do some of your users fail to erase messages in the "sent message box" and keep getting "your pm box full" notification? This hack can help you a bit to get rid of "HELP!! I CANT GET PMS!" messages. :)
This easy-to-implement hack will add a link in your board which will sweep-clean private messages by erasing all messages off the user's inbox AND sent box. By default hack will add this link to Private Message Window ("privfolder" template) and "pmbox full" notification email so that your users will be able to clean their pm box with 1 click (and a confirmation!). However you can add it to anywhere you like.
Tested in v.2.2.2 and will work with ALL versions > 2.0.3
If you install the hack, please click install. Thank you..
Enjoy..
Logician //=^))
Logician
05-10-2002, 01:54 PM
Screenshot:
------------
Now close your eyes:
Dream a HTML link just like this:
Erase Your PM Box (http://www.vbulletin.org)
Put your imaginary link anywhere in your Private Message Window. Put the same link into "PM Message Box full" email notification message. If you like, put the link in any other windows too.
Now open your eyes and accept my gratitudes, since you saved me from posting a screenshot. ;)
* djr closes eys
[dream sequence starts]
nice screenshot man! I really like that layout! Wow, amazing graphic capabilities...
[dream sequence ends]
hey, that's nice, that's my own forum layout ;)
Eniyi
05-22-2002, 08:31 AM
Does this hack allows admins to clear other users' PM boxes?
Michael2
05-22-2002, 08:33 AM
I'm pretty sure you can do that from your control panel.
Logician
05-22-2002, 08:44 AM
Originally posted by Eniyi
Does this hack allows admins to clear other users' PM boxes?
nope users can delete their own PM boxes only..
bluecat
06-12-2002, 03:26 AM
How can I change the color of the text for the actual link of "Empty PM Box?" Thank you.
Logician
06-12-2002, 06:22 AM
Originally posted by bluecat
How can I change the color of the text for the actual link of "Empty PM Box?" Thank you.
Insert a font color tag after "a href" like:
<a href="www.asds.com"><FONT COLOR="#ff00ff">Your Link</font></a>
Erwin
06-13-2002, 01:06 AM
Good idea. I will install this too.
Erwin
06-13-2002, 01:25 AM
Works great - thanks!
irn-bru
06-13-2002, 05:39 PM
thanks nice work.
How can I make the empty pm box link the
same as the move, forward, and deleted, box.
Makes it a little neater :)
irn-bru
06-13-2002, 05:54 PM
Screenpic
Logician
06-14-2002, 09:23 AM
Originally posted by irn-bru
How can I make the empty pm box link the
same as the move, forward, and deleted, box.
Not easily achivable. Altough this code:
<FORM METHOD="LINK" ACTION="private.php?s=$session[sessionhash]&action=logicdelete">
<INPUT TYPE="submit" VALUE="Empty PM box">
</FORM>
does what you want, you can NOT insert it by replacing line:
<a href="private.php?s=$session[sessionhash]&action=logicdelete">Empty PM box</a>
That's because this section is already inside an HTML FORM tag and you cant insert form tags inside eachother.
A few possible solutions:
1- Leave it as it is. :)
2- Use the code above but change the location of Empty PM BOX button. Insert the code outside an existing form (That is, it shouldnt be somewhere between <form .....> </form> tags)
3- Instead of a form button design, use a image for this button. You can make a trick and design an image that exactly looks like an HTML button for example..
Logician
Chris M
06-14-2002, 03:11 PM
Nice Hack...
*Installs*
Satan
dreamhost
06-30-2002, 05:09 AM
thanks for the hack. one question: I have added numerous hacks that have modified the privfolder. Your directions, instead of saying find this and replace with it says this is your new code. Could you please post the needed changes only? I've spent quite a bit of time trying to decifer the origional, vs. my current file, vs. yours, very confused. thanks
Logician
06-30-2002, 04:18 PM
Originally posted by dreamhost
Your directions, instead of saying find this and replace with it says this is your new code. Could you please post the needed changes only? I've spent quite a bit of time trying to decifer the origional, vs. my current file, vs. yours, very confused. thanks
Dreamhost the code that should be added to the template is:
<a href="private.php?s=$session[sessionhash]&action=logicdelete">Empty Your Private Message Box</a>
As you can see it's just a simple HTML link, so you can insert it to any template you want and to any section in that template you wish.
santeematt
07-17-2002, 02:52 PM
sweet. i always have members who cant figure out how to erase there PMs.
dreamhost: i have the same issue as you, if you just look through the 'hacked' code you can figure out where the additions are
:)
yzztik
08-30-2002, 11:47 PM
Great hack!
Anyone know a way to integrate the backup hack with this one so that when they get the confirmation box they can have the choice to erase, backup or cancel?
Morgalis
04-17-2003, 12:43 AM
this is fabulous
i do however, need to know how to set WHEN it says too full!!
i allow 200 max messages, and it starts blinking at me when it reaches 60
either i have missed something simple or i need you to guide me please
Oblivion Knight
04-17-2003, 10:04 AM
Tested on 2.3.0 RC3 and it's working like a dream :)
No more PM's from users asking why their PM Inbox is still more than 0% full after deleting their inbox..!
Thanks Logician,
* Oblivion Knight clicks install.
Works perfect on 2.3.0 Nice work as usual. *clicks install*
Sam FT
06-28-2003, 05:11 AM
I think this is a great hack, but I wish the hack would just empty the indox, sent and message tracking only. Because I set up a custom folder called Saved Messages and those pms get deleted too. Is there a way to just delete pms from those three folder?
Kriek
06-28-2003, 02:38 PM
Exceptional combined with Improved PM Folderview.
/me clicks install
Parker Clack
06-28-2003, 10:02 PM
Logican:
I just changed
$DB_site->query("DELETE FROM privatemessage WHERE userid=$bbuserinfo[userid]");
to
$DB_site->query("DELETE FROM privatemessage WHERE userid=$bbuserinfo[userid] AND folderid=0");
to erase just those messages that are saved in the main folder. If you create another folder ie: saved or trash or whatever it is assigned a folderid and those messages will not get deleted.
Parker
Logician
06-29-2003, 09:36 AM
Today at 02:02 AM Parker Clack said this in Post #24 (https://vborg.vbsupport.ru/showthread.php?postid=413765#post413765)
Logican:
I just changed
$DB_site->query("DELETE FROM privatemessage WHERE userid=$bbuserinfo[userid]");
to
$DB_site->query("DELETE FROM privatemessage WHERE userid=$bbuserinfo[userid] AND folderid=0");
to erase just those messages that are saved in the main folder. If you create another folder ie: saved or trash or whatever it is assigned a folderid and those messages will not get deleted.
If this usage makes you happy, it is ok, enjoy. But IMO it defeats the primary reason why you need this hack: If user is advanced to delete PM folders individually then he doesn't need this hack anyway, he can just manually erase messages in the folders he wants.
But many users are newbies and just don't notice they have more than 1 PM box (inbox, outbox, other folders they created etc.). So when they get your PM folder full warning, they just delete the inbox and when this does not avoid the error, they complain. This hack is intended to cure this problem and if you exempt a certain folder, IMO it can not serve this purpose.
But your call anyway..
Parker Clack
06-29-2003, 12:26 PM
Logican:
I understand your reasoning. I don't put a limit on the number of private messages they can have. The way that I have done it if there are members that want to keep a private message they have gotten, say it has a phone number in it, they can move it to a saved folder and then delete all the others.
Just another way of doing this.
Thanks again for a great hack. I really enjoy those that you come up with.
Parker
-Sidekick-
06-29-2003, 04:42 PM
Today at 08:26 AM Parker Clack said this in Post #26 (https://vborg.vbsupport.ru/showthread.php?postid=413880#post413880)
Logican:
I understand your reasoning. I don't put a limit on the number of private messages they can have.
Then why would you need this at all?
Sam FT
07-02-2003, 11:41 PM
As anyone else had this problem..where the message tracking messages are not delete when using this hack. I have improved pm folder and improved pm folder addon installed for reference.
Kriek
07-03-2003, 01:52 PM
/me gives a nod of acknowledgment
Logician
07-03-2003, 05:53 PM
Today at 03:41 AM Music Pirate said this in Post #28 (https://vborg.vbsupport.ru/showthread.php?postid=414833#post414833)
As anyone else had this problem..where the message tracking messages are not delete when using this hack. I have improved pm folder and improved pm folder addon installed for reference.
This is not needed..
Tracking messages are not seperate records in the database, they are just a field in the existing record so they don't hold a space in MYSQL.
Besides messages in the tracking screen is not regarded in the PM quote so even if user have 10000 tracked messages in that screen, she can send/receive PMs provided that she empty other pm folders with this hack.
So this hack is only deleting pms that fills pm quote and prevent user to receive new PMs.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.