![]() |
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. |
This is convenient. Thank you!
|
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? |
Thank you very much Gary, great hack. https://vborg.vbsupport.ru/external/2011/01/19.gif
|
does this work on 2.3 ?
|
Nice, but i've seen in done im template edits.
|
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.
|
Quote:
|
Quote:
|
There we go, no more extra queries ;)
|
no more extra LOL so is it 30 or is it less
need to know cause on a shared server and dont want to big of a server load |
One last thing Gary please
Can I move the "Baned User" to the group of my choice instead of using the default group (1). Thanks |
Quote:
|
Quote:
|
so using this in any thread will add 20 more queries am i following this right or does it not add at all
/me is confused |
Quote:
|
Quote:
My temporary ban group is ( 13 ) Thanks |
Quote:
Let me know if you run into any problems :) |
nice idea :)
|
Personally I think banning someone is useless. They just come back and cause more trouble. I just put the miserable user hack on em.
|
Quote:
|
Quote:
you still can use this to quickly add a user to your miserable group :D =================== Thank you very much Gary, I will install the new addition shortly :smoke: |
Quote:
|
Wow I didnt know that.... thanks!
By the way how do I find out the user group ID of miserable users? I cant see it anywhre in the user groups list :rolleyes: |
Quote:
|
Quote:
That hack I made was for convenience, it's a tiny hack but I thought i'd make it because I was bored. Just hover over the usergroup's title or edit button or whatever in the AdminCP usergroup listings and it will show you the id in the status bar. |
I know thats the problem there is no miserable usergroup in the list of usergroups. Thats why I asked how to find it out.
|
For the miserable users hack, if the miserable users don't change usergroups (if they stay in Registered usergroup, etc.) then you can move them to their own usergroup, then apply this hack as well.
|
Bah too much work lol
|
So lazy :p
|
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] |
wuts the chance gettion this to work for vb3 rc4
|
Quote:
|
Quote:
|
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:
|
Try putting global $DB_site; before all that code.
|
can someone make a 3.0 version of this pelase
|
When I click it it just takes me to forum home...
|
All times are GMT. The time now is 04:43 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|