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)

Gary King 08-30-2003 10:00 PM

Quick Ban
 
<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.

Blizzb 08-31-2003 02:06 AM

This is convenient. Thank you!

jdmuniverse 08-31-2003 02:12 AM

I get this error...

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

EDIT: I am using 2.2.9. I just noticed this is for 2.3.2 maybe that's why?

Remi 08-31-2003 02:14 AM

Thank you very much Gary, great hack. https://vborg.vbsupport.ru/external/2011/01/19.gif

lasto 08-31-2003 06:48 AM

does this work on 2.3 ?

assassingod 08-31-2003 07:34 AM

Nice, but i've seen in done im template edits.

N9ne 08-31-2003 08:15 AM

And also, this will add at least 3 queries per post on showthread, so if you have 10 posts displayed on showthread on each page, you can expect an additional 30 queries on your page.

assassingod 08-31-2003 08:18 AM

Quote:

Today at 10:15 AM N9ne said this in Post #7
And also, this will add at least 3 queries per post on showthread, so if you have 10 posts displayed on showthread on each page, you can expect an additional 30 queries on your page.
Ouch...

Gary King 08-31-2003 11:52 AM

Quote:

Today at 05:15 AM N9ne said this in Post #7
And also, this will add at least 3 queries per post on showthread, so if you have 10 posts displayed on showthread on each page, you can expect an additional 30 queries on your page.
Let me release version 1.1, this was a quick release and it was almost midnight.

Gary King 08-31-2003 12:27 PM

There we go, no more extra queries ;)


All times are GMT. The time now is 08:31 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.01045 seconds
  • Memory Usage 1,729KB
  • 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
  • (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
  • (10)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