![]() |
Clean Sweep Private Message Box
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 //=^)) |
Screenshot:
------------ Now close your eyes: Dream a HTML link just like this: Erase Your PM Box 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. ;) |
[high]* djr closes eys
[/high] [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 ;) |
Does this hack allows admins to clear other users' PM boxes?
|
I'm pretty sure you can do that from your control panel.
|
Quote:
|
How can I change the color of the text for the actual link of "Empty PM Box?" Thank you.
|
Quote:
<a href="www.asds.com"><FONT COLOR="#ff00ff">Your Link</font></a> |
Good idea. I will install this too.
|
Works great - thanks!
|
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 :) |
Screenpic
|
Quote:
PHP Code:
PHP Code:
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 |
Nice Hack...
*Installs* Satan |
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
|
Quote:
PHP Code:
|
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 :) |
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? |
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 |
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, [high]* Oblivion Knight clicks install.[/high] |
Works perfect on 2.3.0 Nice work as usual. *clicks install*
|
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?
|
Exceptional combined with Improved PM Folderview.
/me clicks install |
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 |
Quote:
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.. |
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 |
Quote:
|
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.
|
/me gives a nod of acknowledgment
|
Quote:
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. |
All times are GMT. The time now is 04:44 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|