View Full Version : vBmoddel
Hack Name: vBmoddel
Hack maker: Flup
Hack Version: 2.1
Credits:
Xenon & Hellsatan
What does this hack do?
This hack deletes a moderator from all forums he moderators!!!
Just by giving his userID and press "delete"
Newest version : 2.2
Moddel.php Download Here (https://vborg.vbsupport.ru/attachment.php?s=&postid=336312)
New in version 2.2 :
Moderator automaticly becomes a regular member!
Automated
12-30-2002, 01:09 PM
nice hack, but i only have three mods so that isnt really an issue ;)
partang2
12-30-2002, 01:29 PM
Yes, this is a nice hack! But I have also only 3 mods. Maybe I will try it if I needs more mods.... Thanx anyway! :)
Dean C
12-30-2002, 01:41 PM
You really should include what the hack does in the first post :p
- miSt
:P
I really don't remember anymore :D
It's vague. but i think to remember it delete's moderators by their UserID :)
Xenon
12-30-2002, 02:32 PM
Mist is right flup, the rules should be clear to post the effect of the hack when releasing it.
also please shorten your sig, you are over the 8 lines limit :)
thank you
Ok i'll add the what does it do to it
And shorten my sign
Xenon
12-30-2002, 03:02 PM
thanks :)
can i make a suggestion for next version?
instead of just enter his userid, maybe a dropdownlist or something like would be better :)
Dean C
12-30-2002, 03:08 PM
Yep that would be nice... so you had a list of all the moderators and they were in a drop-down.. :p
LoL @ Mist
I can do that i guess, thx4tip
alkatraz
12-30-2002, 03:45 PM
Thanks for the hack, I may use it later on
Who rated this thread 1 :(
Chris M
12-30-2002, 04:40 PM
Somebody keeps doing that to hacks:mad:
Looking good flup;):D
Satan
DrkFusion
12-30-2002, 05:47 PM
Nice hack...
By the way I told you about the sig limit, but nooooo you don't listen to litle ol me :(
MasterDuDe
12-30-2002, 06:08 PM
nice hack but i'll don't think i'll install it
Chris M
12-30-2002, 06:35 PM
Lol @ Arunan:p
Satan
Originally posted by DrkFusion
Nice hack...
By the way I told you about the sig limit, but nooooo you don't listen to litle ol me :(
[@ DrkFusion ]
:cough:
Originally posted by FireFly
[list] For text signatures: 4 lines normal size, 8 lines small size and up to 90 chars per line. Empty lines are also counted! Font sizes above 2 are not allowed.
you one line is 111 chars or 101 :)
:cough:
[/@DrkFusion ]
i will be using this when my site is up an running very nice :)
Ok, in the attachment the new moddel.php file!
This is version 2.2!!!
Beware!!!! this ain't working perfectly!!!
You will see a list with: 10x yourself 5x admin2
etc.!!!
Im working on this :)
*** PSSST SATAN WHAT YA DO??? :P ***
deFunx
12-30-2002, 07:39 PM
Useful hack...
Chris M
12-30-2002, 09:34 PM
@flup - It worked perfectly well on my offline board...
Let me test again;)
Satan
Chris M
12-30-2002, 11:04 PM
The script I have works perfectly fine:confused:
Here is a screenshot, of 4 mods that moderate 4 forums:)
Satan
Aha! butttttttt,
put 1 of those to 2 forums, his name will appear twice.
:)
Maybe I can make an addon wich shows all moderators in colums
with his name and ID
So we can leave it like first hack :)
Herman
12-31-2002, 04:15 PM
This is a nice hack, though I have what you all thought about, I made myself a dropdown I may release it, but meh, I like to keep some stuff private...
:| you make hacks and dont release :|
OMG thats the best part of making a hack, releasing it and get command!
Chris M
12-31-2002, 05:24 PM
NTLDR helped me find a way to make it only grab the name once:p
PMed you flup:)
Satan
Version 2.1 is launched, each moderator is only shown once!!!
Thx HellSatan for helping!
In attachment new moddel.ph
Link14716
12-31-2002, 09:33 PM
It'd be better if you attached new versions in the first post for your sake. That way people won't accidently install the firat version ;)
Nice hack, but I only have 2 mods, heh.
* Link14716 clicks install.
Chris M
12-31-2002, 10:49 PM
Lol...
There is no need for masses...
I have 2 admins (including myself) and about 5 mods:)
Satan
Link14716
When you have 2 mods,
and you add those 2 to each 16 forums to moderate (or 6 or whatever)
You could delete them from all forums at once!!!
This will spare some time.
It's not my job to say: INSTALL
But just clearing some things up :) *ROFL*
Chris M
12-31-2002, 11:43 PM
True;)
Satan
Any other requests on this script?!
Chris M
01-01-2003, 09:22 PM
Can it make me rich?:p
If so, I'd like one of those;)
Satan
Chris M
01-02-2003, 09:08 AM
Er...
Perhaps you can select which forums to delete?:)
i.e. You can mass prune the moderators, but from certain forums instead of having to go and delete individual ones;)
Satan
Boofo
01-02-2003, 09:52 AM
Does this delete them from the board or just take their moderatorship (is that even a word?) away?
Well, when you have deleted a moderator, or let's say, you've took his moderator (or Super Mod) status away and changed it into Member or whatever, he will still be listed as moderator in showgroups.php because he isn't deleted from the forums!
That's why i made this hack, i had 7 mods wich i have deleted
And i had to delete them manualy what took lots time more that this!
So this hack don't delete them from the forum, but just what you
said, it take their moderatorship away!
Boofo
01-02-2003, 10:02 AM
Ok, I see. Then you could basically take his moderatorship away from all forums and leave him as a moderator without anything to moderate. Like a "Moderator Langoliers", so to speak. The drop down with the forums listing that they are mods of would be great in case you didn't want to delete them from all forums.
Chris M
01-02-2003, 12:30 PM
Uhuh;) What I asked for:)
Satan
Boofo
01-02-2003, 01:12 PM
I figured if 2 of us ask, it might happen a little quicker? :p
Chris M
01-02-2003, 01:35 PM
Lol:p
Good idea;)
Satan
:P LoL
Satan, do you have ICQ or MSN?!
I need your help again I think
Chris M
01-02-2003, 02:00 PM
MSN: msn@darkblazes.com / darkblazes_cm@hotmail.com
AIM: noXchris / hellsatancoa
:)
Satan
Ok i'm now in your MSN but you are doin' homework hahah :)
Learner29
01-02-2003, 02:51 PM
Originally posted by Boofo
Does this delete them from the board or just take their moderatorship (is that even a word?) away?
Thanks Boofo for asking the exact question that I had in mind....
and thanks to flup for providing this hack and for providing support for it
I shall try it now.
Well you also have to thank HellSatan and Xenon for helping me with this hack!
Learner29
01-02-2003, 03:19 PM
:surprised: :surprised: :surprised: :surprised: :surprised:
Yes your hack works very well buddies.. it DOES delete the moderator from All forums in One Shot..........
BUT I COULD STILL ENTER PRIVATE FORUMS AS A KILLED MODERATOR!!!!!
ANY HELP OUT THERE??????
Learner29
01-02-2003, 03:23 PM
and the killed moderator status in the admin control panel is STILL as MODERATOR after deleting the mod with your method.
when I kill a mod manually, his status would go back to simple normal members....
I know that's coming in version 2.2
Mod's wil automaticly turned into Member status.
But I think this would result in some problems, but i'll look!
Chris M
01-02-2003, 04:14 PM
Why would it result in problems?
Just add a query in the "dogo" part:
$DB_site->query("UPDATE user SET usergroupid='2' WHERE userid='$modtodel'");
Satan
Caus I thougt I couldn't make 2 db queries
Chris M
01-02-2003, 04:56 PM
Of course you can:)
You can have 100 "$DB_site->query" lines in a row (as long as they are correctly formed)
I wouldn't recommend that though;)
Satan
Ok, version 2.2 laucned, in 1st post the DONWLOAD link is renewed and .txt file is renewed., have fun :)
Chris M
01-02-2003, 05:36 PM
Lol:)
Now for v3;)
^^^^^^^^^
Satan
Yeah V3 will have checkboxes with the forums a moderator has to be deleted from :|
It will take some time though but i think me and hellsatan, and some other hacker wich is able to help will get it :)
I'm still bussy, ;)
I can't get it really actually :|
yzztik
01-03-2003, 10:26 PM
How about an option for removing their access from any private forums? Like any set to yes it sets to default or something?
Chris M
01-03-2003, 11:08 PM
Well by defualt it will set the user to the usergroupid 2 (registered), so it isn't possible unless you use an option to say "reset to registered usergroup?", and then code that above;)
Satan
yzztik
01-04-2003, 12:53 AM
ok fair enough. At least with this hack is one less step.
I just can't get this code working (check boxes)
Sorry :|
Chris M
01-04-2003, 12:55 PM
Have you tried using Radio buttons?
It would be much simpler;)
Satan
Radio Buttons or Check Boxes I can't get it :(
What would be the point of using radio buttons...? You wouldn't be able to select more than one moderator ;).
If you do figure out the checkboxes, here's some indepth do'da's you could do :D :
Each moderator is listed, and under his name is:
Checkboxes for each forum he mods, if selected, he will be demodded from that forum.
A select all checkbox which selects all forums.
A 'usergroupid to put mod into after being demodded'
(this is good for say putting a mod as a supermod)
A checkbox which will reset all his access masks to default.
There could be a link on the page which will demod all mods from all forums.
There could be a link on the page which will reset every mod's usergroupid to a given usergroupid, IF all mods are demodded.
There could be a link on the page which will reset all mods' access masks to default.
There's loads of stuff you could do here :D
Anyway, great hack, will use it, very useful as I have over 20 mods!
Chris M
01-04-2003, 01:32 PM
:bored:
Anyone help him?
@N9ne - Sure you can:)
And not any more you don't;)
Satan
Thx for support I will add some of this stuff certainly to V3
Originally posted by hellsatan
:bored:
Anyone help him?
@N9ne - Sure you can:)
And not any more you don't;)
Satan
'And not any more you don't;)'
Directed at me? Well technically I still do have 20 mods left in my DB backup :p
And you can't select multiple radio buttons, that's why checkboxes are around...
Chris M
01-04-2003, 01:37 PM
Who said anything about multiple radio buttons?:bored:
You have a dropbox with values to show the set number of mods on the page
You have the moderator's name as a heading, and all the forums they moderate, and a "yes" or "no" option to delete them as moderator of that forum, and then the next moderator is below with a similar setup etc:p
Satan
LOL well if you put it THAT way then yes you CAN use radio buttons :p
Hellsatan 2003, still confusing people...522,353 victims :p
Originally posted by N9ne
There's loads of stuff you could do here :D
Tell more :)
This would be the first to for me to work with DB commands ....
$DB_site->query("DELETE FROM moderator WHERE userid="$modtodel ON forumid=$forums2del");
Rest from hack:
<?php
error_reporting(7);
require("./global.php");
cpheader();
if (isset($action)==0) {
$action="go";
}
// ###################### Start go #######################
if ($action=="go") {
doformheader("moddel","dogo");
maketableheader("Remove Mods");
$mods = $DB_site->query("SELECT DISTINCT moderator.userid, user.* FROM moderator LEFT JOIN user ON moderator.userid=user.userid");
while ($moddel = $DB_site->fetch_array($mods)) {
$moddels .= '<option value="'.$moddel[userid].'">'.htmlspecialchars($moddel[username]).'</option>';
}
$forumsdf = $DB_site->query("SELECT DISTINCT forum.forumid, forum.* moderator LEFT JOIN forum ON moderator.forumid=forum.forumid");
while ($forums2del = $DB_site->fetch_arrays($forumsdf)) {
$forums2del .= '<option value="'.$forums2del[forumid].'">'.htmlspecialchars($forums2del[forumname]).'</option>';
}
print '<tr class="'.getrowbg().'"><td>Select Moderator</td><td>';
print '<select name="modtodel">'.$moddels.'</select></td>';
print '</tr>';
print '<br>';
print '<tr class="'.getrowbg().'"><td>Select Forum</td><td>';
print '<select forum="forumtodelmod">'.$forums2del.'</select></td>';
print '</tr>';
doformfooter("Go");
}
// ###################### Start dogo #######################
if ($HTTP_POST_VARS['action']=="dogo") {
$DB_site->query("DELETE FROM moderator WHERE userid=$modtodel");
$DB_site->query("DELETE FROM moderator WHERE userid="$modtodel ON forumid=$forums2del");
$DB_site->query("UPDATE user SET usergroupid='2' WHERE userid='$modtodel'");
$action="go";
echo "<p>Moderator Deleted</p>";
}
cpfooter();
?>
Im quite a n00b with DB queries :)
By The Way, I just copied the DB query from the 1st made by Xenon and than edited it a little bit :p
But the problem is that "home made db querie :)"
If that's working I have got step 1 of delete mod from forum finished, and i could work on checkboxes/radiobuttons to make it easier.
Errrrm,....Hellsatain ? :D Xenon? :D
:paranoid: ^BUMP^ :cheeky:
PM Xenon and Hellsatan...they're more likely to see it that way :)
Boofo
01-06-2003, 05:24 AM
On my drop down listing for the mods delete in the Admin CP, I have one mod listed there 3 times. It is the first one in the list. Any fix for this or did I miss something? :)
This is already fixed in v2.1
yzztik
01-06-2003, 12:18 PM
I installed this on 2.2.9 and tested. It removed the mod from the forums but it did not change the group back to member. Any ideas?
Boofo
01-06-2003, 12:28 PM
Originally posted by flup
This is already fixed in v2.1
Well, we have a problem then. I just installed the version 2.2 of the php file and the listing still shows the first mod on the list 3 times.
V2.2 on my forums :
All my moderators including the 2 admins (/me and antonieQ)
are moderating several forums
Originally posted by yzztik
I installed this on 2.2.9 and tested. It removed the mod from the forums but it did not change the group back to member. Any ideas?
Maybe you've installed 2.1
Here is 2.2 ! *attachment*
By The Way v3.0 maybe lauched after this week, school has begun :(
Ok so in 2.2, when you remove a mod, does his usergroup get set as registered?
Originally posted by hellsatan
:bored:
Anyone help him?
@N9ne - Sure you can:)
And not any more you don't;)
Satan
When are you online? we could look together, I still get those lazy SQL errors, invalid querie :rolleyes:
Mr. Brian
01-16-2003, 12:17 PM
Still the same after download, no different.
Or maybe i entered the wrong coading>
</table>
</td></tr></table><br>
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr id="cat">
<td bgcolor="{categorybackcolor}" colspan="6"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont color="{categoryfontcolor}"><b>$forum[title]</b></normalfont></a>
<br><smallfont color="{categoryfontcolor}">$forum[description]</smallfont></td>
</tr>
<tr>
<td colspan="6" bgcolor="{catlinecolor}"></td>
</tr>
Anything wrong?
Thanks :laugh:
What does this suppose to mean in this hack?
All I can say is I have this hack installed and it works perfectly for me, very handy.
Exero
09-26-2003, 10:32 AM
aaah a realy good hack :)
i can use it....sweeeeeeeeeeet
Glad you like it
Since i was some inactive last weeks.
I was wondering, if there still are requests for this "Del modeerator from checked forums"? function....
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.