![]() |
Delete Moderator from all forums he moderates
Hi,,
when i edit one of my moderators to normal member, I've to delete him everywhere he is moderator. Now, i would prefer a hack that deletes a moderator on all forums he moderators!!! Or, a hack that makes you able to specify @ wich forums he has to be deleted wich check boxes. Thx in Advanced, |
^bump^
|
run this query:
[sql]DELETE FROM moderator WHERE userid=xx[/sql] change xx into his userid, and he will be deleted from all forums he was moderator |
Ok thx!
|
I'm goin' to make a full hack of this!
|
Hmm, dat won't go, i guess i can;t add SQL commands to a PHP script without logging into SQL database first:/
|
Try using:
Code:
$DB_site->query("DELETE FROM moderator WHERE userid=$scriptname[userid]"); Satan |
Hmm, and i don't need to use any usernames or passwords?
|
Hmmz, i've got this for now:
Code:
//vB Mod Del Start On hit SUMBIM->db query |
Create a file named "moddel.php" with content:
PHP Code:
Satan |
All times are GMT. The time now is 03:03 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:
|