The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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, |
#2
|
||||
|
||||
^bump^
|
#3
|
||||
|
||||
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 |
#4
|
||||
|
||||
Ok thx!
|
#5
|
||||
|
||||
I'm goin' to make a full hack of this!
|
#6
|
||||
|
||||
Hmm, dat won't go, i guess i can;t add SQL commands to a PHP script without logging into SQL database first:/
|
#7
|
||||
|
||||
Try using:
Code:
$DB_site->query("DELETE FROM moderator WHERE userid=$scriptname[userid]"); Satan |
#8
|
||||
|
||||
Hmm, and i don't need to use any usernames or passwords?
|
#9
|
||||
|
||||
Hmmz, i've got this for now:
Code:
//vB Mod Del Start <html> <form> <input type="text" name="$moddel[userid]"> <input type="submit" name="Submit" value="Submit"> </form> </html> <?php $DB_site->query("DELETE FROM moderator WHERE userid=$moddel[userid]"); ?> //vB Mod Del End On hit SUMBIM->db query |
#10
|
||||
|
||||
Create a file named "moddel.php" with content:
PHP Code:
Satan |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|