vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Delete all private messages PMs from a certain user (https://vborg.vbsupport.ru/showthread.php?t=54138)

Tungsten 06-09-2003 10:00 PM

Delete all private messages PMs from a certain user
 
I had need of this hack a while back and searched vb.org but was unable to locate anything that did it. So I decided to write my own. :)

Basically what this does is add a new entry at the top of a user's profile from the admin control panel. When viewing a user's profile in the CP, you now have an option for deleting all private messages sent FROM the user whom you are currently viewing.

It's useful for those occasions when some twit gets on your forum and starts spamming or harassing your other users through private messaging. A couple of quick clicks and anything that user has sent is immediately wiped from the database.


As always, back up your databases and vBulletin files before you apply and/or use this hack. I make no guarantees as to it's safety -- but will say that it merely uses the same code seen elsewhere in the user.php file as provided by Jelsoft. ;)


Test and confirmed to work on vBulletin 2.3.0


Screenshot will be posted next.

Tungsten 06-10-2003 07:11 PM

Admin CP showing new menu entry when viewing a user's profile...

Tungsten 06-10-2003 07:11 PM

Confirmation screen asking you if you really want to delete all PMs from this user...

N9ne 06-10-2003 08:15 PM

Nice, good work :)

Tungsten 06-10-2003 08:29 PM

Thanks. It's my first public release hack so I was kinda nervous. :)

assassingod 06-10-2003 08:34 PM

I like it. Good job:)

Tungsten 06-10-2003 08:36 PM

Tnx. :D

Sam FT 06-10-2003 08:41 PM

I have been looking for a hack like this for a long time. I will have to test this out tonight, thanks Tungsten.

Sam FT 06-11-2003 04:34 AM

Awesome hack. I like it.

*Clicks Install*

DiscussAnything 06-15-2003 12:04 AM

Nice one, but couldnt you just find the user in the PM Statistics (may be difficult on a large forum) and then delete all their PMs?

This hack definitely makes it easier, but it is already possible.


All times are GMT. The time now is 10:08 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01102 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete