Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Quick Ban Details »»
Quick Ban
Version: 1.00, by Gary King Gary King is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 08-30-2003 Last Update: Never Installs: 10
 
No support by the author.

<font size="3">What does this hack do?</font>

This hack changes the Report this post to a moderator button to a link to quickly ban the user, if the user clicking the link is either an administrator, supermoderator, or moderator, and has the right permissions to ban the user. But, if the user is either an admin, supermod, or mod, then the link will be a regular report link again.

The advantage about this hack is that you don't have to go all the way to the mod cp to ban a user, if you have the right permissions to, because you don't need to report the post then, anyways.

Show Your Support

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

Comments
  #32  
Old 09-02-2003, 01:04 PM
Kriek's Avatar
Kriek Kriek is offline
 
Join Date: Jul 2002
Location: Florida
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got this working via 2.3.0 w/ few minor modifications. I also amended the script to display the entire link in the $reportpost variable, so non-staff would see Report to Mod and staff would see Ban User as a text link.

[high]* Kriek licks install[/high]
Reply With Quote
  #33  
Old 02-29-2004, 12:12 PM
NexVision NexVision is offline
 
Join Date: Nov 2003
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wuts the chance gettion this to work for vb3 rc4
Reply With Quote
  #34  
Old 02-29-2004, 12:13 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NexVision
wuts the chance gettion this to work for vb3 rc4
Zero. vB2 hacks don't work on vBulletin 3.
Reply With Quote
  #35  
Old 02-29-2004, 12:18 PM
NexVision NexVision is offline
 
Join Date: Nov 2003
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by assassingod
Zero. vB2 hacks don't work on vBulletin 3.
i guess i shoulda been more direct i was really fishing for someone to take on the project
Reply With Quote
  #36  
Old 03-27-2004, 02:43 AM
PMantis24 PMantis24 is offline
 
Join Date: Apr 2003
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get this error message in 2.3.0

Fatal error: Call to a member function on a non-object in /home/v6p/public_html/forums/admin/functions.php on line 391

Line 390 to 401:
PHP Code:
    if ($post['usergroupid']!=2) {
    
$reportpost="report.php?s=$session[sessionhash]&postid=$post[postid]";
      }
      elseif ((!
$perms[ismoderator] and !$ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid] AND canbanusers=1")) AND !$reportpost) {
        
$reportpost="report.php?s=$session[sessionhash]&postid=$post[postid]";
      }
    elseif ((
$bbuserinfo['usergroupid']==or $bbuserinfo['usergroupid']==or $bbuserinfo['usergroupid']==7) AND ($post['usergroupid'] != and $post['usergroupid'] != and $post['usergroupid'] != 7) AND !$reportpost) {
        
$reportpost="mod/user.php?action=ban&userid=".$post['userid'].$qbgroup;
    }
    else {
        
$reportpost="report.php?s=$session[sessionhash]&postid=$post[postid]";
    } 
Any ideas?
Reply With Quote
  #37  
Old 03-27-2004, 01:06 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try putting global $DB_site; before all that code.
Reply With Quote
  #38  
Old 03-25-2005, 06:55 PM
KanyeWest's Avatar
KanyeWest KanyeWest is offline
 
Join Date: Dec 2004
Location: Mohegan Lake Ny
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can someone make a 3.0 version of this pelase
Reply With Quote
  #39  
Old 05-03-2005, 05:42 PM
Destroyed Soul's Avatar
Destroyed Soul Destroyed Soul is offline
 
Join Date: Jan 2005
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I click it it just takes me to forum home...
Reply With Quote
Reply

Thread Tools

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 03:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05411 seconds
  • Memory Usage 2,281KB
  • Queries Executed 23 (?)
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
  • (1)bbcode_php
  • (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
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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