PDA

View Full Version : Delete all PMs and Adminlog


arena
02-25-2007, 10:00 PM
Delete all PMs and Adminlog

Your database Run SQL query/queries on database

UPDATE `user` SET `pmtotal` = '0',`pmunread` = '0';
TRUNCATE TABLE `pm`;
TRUNCATE TABLE `pmtext`;
TRUNCATE TABLE `pmreceipt`;
TRUNCATE TABLE `adminlog`;

This action can not be un-done. :)

Shazz
02-26-2007, 07:47 PM
Should be in this forum
https://vborg.vbsupport.ru/forumdisplay.php?f=184

Shazz
02-26-2007, 07:48 PM
But running this query on deleting PM, It still shows x private messages they have
Looks very werid

Lionel
02-26-2007, 08:13 PM
But running this query on deleting PM, It still shows x private messages they have
Looks very werid

That's in user table. Don't empty your user table though.

A_V
02-26-2007, 08:40 PM
This is not any mod, is in one "How-to"

stinger2
02-26-2007, 08:57 PM
https://vborg.vbsupport.ru/showthread.php?t=108711&highlight=mass+delete+pm
i have asked this question about one year ago...and i posted the answer i got from vb.com in the above thread........

not to sound ungrateful.but why is it released as an add on???:confused:

Shazz
02-26-2007, 09:16 PM
Already been stated in post 1.

BobbyBig
02-28-2007, 06:49 PM
Installed :p

SaN-DeeP
03-01-2007, 08:04 PM
How can i setup a scheduled task for same ?
(Clear all logs once per week and delete all pms which are 30+ days old)

I think you can bundle the same as a plugin ?

thanks

momo2
06-16-2007, 11:59 AM
i tried to do this but, You are not authorized to execute SQL queries i get this, any ideas ?

Shazz
06-16-2007, 12:45 PM
i tried to do this but, You are not authorized to execute SQL queries i get this, any ideas ?

Go into your FTP > /includes/config.php

// ****** USERS WITH QUERY RUNNING PERMISSIONS ******
// The users specified here will be allowed to run queries from the control panel.
// See the above entries for more information on the format.
// Please note that the ability to run queries is quite powerful. You may wish
// to remove all user IDs from this list for security reasons.
$config['SpecialUsers']['canrunqueries'] = '1';

Find // ****** USERS WITH QUERY RUNNING PERMISSIONS ******

Add your userid to that as you see there

Shazz
06-16-2007, 12:46 PM
Ever since I upgraded to 3.6.7 PL1 its now showing

An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ';
TRUNCATE TABLE `pm`;
TRUNCATE TABLE `pmtext`;
TRUNCATE TAB

momo2
06-19-2007, 07:10 PM
Thanks, Shazz, I'll do it