vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Delete All PMs. (https://vborg.vbsupport.ru/showthread.php?t=135386)

Arda MENDES 01-03-2007 08:23 AM

Delete All PMs.
 
I wanna delete all pms on the db.I deleted some sql queries but some problems appeared.

Wordplay 01-03-2007 11:13 AM

i thought you could do that through the admincp? if you can't (which i doubt), just do it for each member individually (you can do that if you go to their profile via the admin cp) unless of course you have 10,000+ members.

Arda MENDES 01-03-2007 05:42 PM

Quote:

Originally Posted by Wordplay (Post 1149791)
i thought you could do that through the admincp? if you can't (which i doubt), just do it for each member individually (you can do that if you go to their profile via the admin cp) unless of course you have 10,000+ members.

Just have 70k+ members :rolleyes:

Bump =)

Arda MENDES 01-05-2007 02:30 AM

I've found some sql queries.U can use it to delete pms.


Deleting Contents of Messages
PHP Code:

UPDATE `pmtextSET `pmtextid` = NULL ,
`
fromuserid` = '',
`
fromusername` = '',
`
title` = '',
`
message` = '',
`
touserarray` = '',
`
iconid` = '',
`
dateline` = '',
`
showsignature` = '',
`
allowsmilie` = '' 
WHERE `pmtext`.`pmtextid` > 

Deleting Completely
PHP Code:

DELETE FROM `pmtextWHERE `pmtext`.`pmtextid` > 


libabom 01-05-2007 06:20 AM

problem .....

http://www.vbulletin.com/forum/showp...44&postcount=2



PHP Code:

 Steve Machol  Steve Machol is offline
Customer Support Manager
          
Join Date
Jul 2000
Location
Jelsoft InterGalactic HQ
Age
54
Posts
96,803
Steve Machol is on a distinguished road
To delete all PMs
run these 4 queries:

UPDATE `userSET `pmtotal` = '0',`pmunread` = '0';
TRUNCATE TABLE `pm`;
TRUNCATE TABLE `pmtext`;
TRUNCATE TABLE `pmreceipt`;

Of coursebackup your database first



All times are GMT. The time now is 11:24 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.01113 seconds
  • Memory Usage 1,728KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete