![]() |
is this possible?
So you could delete all users with 0 or 0-3 etc posts... i really need this.. |
Code:
<? HTH, or at least sets you in the right direction. -jim |
thanks alot :)
|
it doesn't work..
i pu it in the /admin directory and changed Code:
require("admin/config.php"); Code:
require("config.php"); |
Jim, you forgot to connect to MySQL. :)
[code]<?php require("global.php"); if($action=="") { print("<form action=\"delete.php\" method=\"post\"><input type=\"hidden\" name=\"action\" value=\"deleteusers\"><p>Delete users with less than <input type=\"text\" size=\"5\" name=\"numberposts\"> posts.</p><p><input type=\"submit\" value=\"DELETE USERS\"></form>"); } if($action==deleteusers) { $DB_site->query("DELETE FROM user WHERE posts < '$numberposts'"); print("You have successfully deleted all users with less than $numberposts posts.") } ?> |
Quote:
-jim |
can you please post the whole text for delete.php ?!
PLEASE!!!! |
this is the code:
Code:
<?php |
i've tried that but it doesn't work~~~~
|
The quick way:
Just run this query in PHPMyAdmin: DELETE FROM user WHERE posts < 4 or whatever number of posts you like. |
Do you realize that you're now also deleting members who just have registered?
|
its smarter do it by last time posted ;)
|
Then you should do it like this:
delete from user WHERE POSTS = 0 AND lastpost<UNIX_TIMESTAMP('2001-02-01') or any other date in y-m-d format. Instead of lastpost you could use lastvisit or lastactivity as well to not delete any silent readers. |
Quote:
|
Quote:
http://vbulletin.com/forum/showthrea...threadid=10108 if you download it jsut put a reply to that thread |
All times are GMT. The time now is 07:15 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:
|