PDA

View Full Version : request : mass delete for users have 0 posts


06 Aug 2000, 14:28
how ?

make a hack for me :D

06 Aug 2000, 16:03
<?php

require("global.php");

$DB_site->query("DELETE from user where POSTS = 0");
echo ("Worthless 0 Postin' users NUKED");


?>

// Paste this to a file, such as delete.php
// Upload it to your server in your vB directory and
// open it in your browser.

06 Aug 2000, 21:04
thank you :)
it worked

06 Aug 2000, 22:14
echo ("Worthless 0 Postin' users NUKED");


LOL! Gotta love it :D

~Chris

18 Aug 2000, 00:41
Can you add a parameter so that I can delete users with 0 posts that joined more than, say, two months ago?

18 Aug 2000, 01:05
Originally posted by Troy Roberts
Can you add a parameter so that I can delete users with 0 posts that joined more than, say, two months ago?

Sure thats simple enough


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


That will delete users that have 0 posts and have registered before february 1st, 2000 (2000-02-01) the date is in yyyy-mm-dd format so be carefull with it!

BACKUP ALL DATA BEFORE EVER ATTEMPTING TO MANUALLY DELETE FROM YOUR DATABASE!!!!!!!!!!

~Chris

18 Aug 2000, 01:23
Thank you. I'll give it a try.