Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vBmoddel Details »»
vBmoddel
Version: 1.00, by flup flup is offline
Developer Last Online: Nov 2021 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 12-29-2002 Last Update: Never Installs: 16
 
No support by the author.

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

New in version 2.2 :
Moderator automaticly becomes a regular member!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 01-04-2003, 01:34 PM
flup's Avatar
flup flup is offline
 
Join Date: Jan 2002
Location: Maastricht, NL
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thx for support I will add some of this stuff certainly to V3
Reply With Quote
  #73  
Old 01-04-2003, 01:35 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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

And you can't select multiple radio buttons, that's why checkboxes are around...
Reply With Quote
  #74  
Old 01-04-2003, 01:37 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Satan
Reply With Quote
  #75  
Old 01-04-2003, 01:47 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LOL well if you put it THAT way then yes you CAN use radio buttons

Hellsatan 2003, still confusing people...522,353 victims
Reply With Quote
  #76  
Old 01-04-2003, 03:08 PM
flup's Avatar
flup flup is offline
 
Join Date: Jan 2002
Location: Maastricht, NL
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

rofl
Reply With Quote
  #77  
Old 01-04-2003, 03:13 PM
flup's Avatar
flup flup is offline
 
Join Date: Jan 2002
Location: Maastricht, NL
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by N9ne
There's loads of stuff you could do here
Tell more
Reply With Quote
  #78  
Old 01-04-2003, 03:33 PM
flup's Avatar
flup flup is offline
 
Join Date: Jan 2002
Location: Maastricht, NL
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This would be the first to for me to work with DB commands ....
Reply With Quote
  #79  
Old 01-04-2003, 03:35 PM
flup's Avatar
flup flup is offline
 
Join Date: Jan 2002
Location: Maastricht, NL
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
  $DB_site->query("DELETE FROM moderator WHERE userid="$modtodel ON forumid=$forums2del");
Reply With Quote
  #80  
Old 01-04-2003, 03:36 PM
flup's Avatar
flup flup is offline
 
Join Date: Jan 2002
Location: Maastricht, NL
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Rest from hack:
Code:
<?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
Reply With Quote
  #81  
Old 01-04-2003, 03:38 PM
flup's Avatar
flup flup is offline
 
Join Date: Jan 2002
Location: Maastricht, NL
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

By The Way, I just copied the DB query from the 1st made by Xenon and than edited it a little bit

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:25 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06070 seconds
  • Memory Usage 2,310KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete