vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Quick Ban (https://vborg.vbsupport.ru/showthread.php?t=56633)

Kriek 09-02-2003 01:04 PM

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]

NexVision 02-29-2004 12:12 PM

wuts the chance gettion this to work for vb3 rc4

assassingod 02-29-2004 12:13 PM

Quote:

Originally Posted by NexVision
wuts the chance gettion this to work for vb3 rc4

Zero. vB2 hacks don't work on vBulletin 3.

NexVision 02-29-2004 12:18 PM

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

PMantis24 03-27-2004 02:43 AM

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?

Gary King 03-27-2004 01:06 PM

Try putting global $DB_site; before all that code.

KanyeWest 03-25-2005 06:55 PM

can someone make a 3.0 version of this pelase

Destroyed Soul 05-03-2005 05:42 PM

When I click it it just takes me to forum home...


All times are GMT. The time now is 06:51 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.01247 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete