vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   [vb 3.0.1] Quick Ban (https://vborg.vbsupport.ru/showthread.php?t=89269)

sketch42 06-03-2004 10:00 PM

[vb 3.0.1] Quick Ban
 
Since the Modcp link is gone from the bottom of the
page my moderators needed a quick way to ban a user without going
to the modcp. So this hack adds aoption to Ban a user directly from
the offending post, via the drop down menu link by the users name.
This is Moderator Forum Specific, which means moderators can only ban
users in their own forum, and not in another moderators forum. Also a
moderator can not ban any of the forum Administrators.


This Hack is Based on Erwins Warning System/Automatic Ban Hack and Magnus's Add On.

Dont forget to click Install

Brad 06-04-2004 11:19 AM

I like this one! :)

Zachery 06-04-2004 12:11 PM

Nice work!

sketch42 06-04-2004 12:25 PM

thanks... lol the only reason i came up with it is because i really didnt want to istall erwins hack ... lol... there where waaaay to many features i knew i wouldnt use.... so i spent the night searching and viola!! :)

chrisvonc 06-06-2004 02:17 PM

Nice, thank you!

mholtum 06-06-2004 04:30 PM

Now that is something even I got to work the first time! Good work.

Erwin 06-08-2004 05:23 AM

Oh... I feel so rejected! ;)

sketch42 06-08-2004 05:28 AM

Quote:

Originally Posted by Erwin
Oh... I feel so rejected! ;)

bah... i wish you put this out... took me all night to figure that one line out... lol :o

wrongful 06-08-2004 11:12 AM

Awesome, thanks!

Elorion 06-08-2004 07:38 PM

coo.....installed

Tony G 06-09-2004 02:58 AM

Nice mod! Will come in handy. :)

sketch42 06-11-2004 07:06 PM

a small update... i added a link for unbanning someone... if you want to add it just follow the instructions again and uncomment the line where it says

//Unban//

delete those characters and your done..

the Unban link will obviously only work on a user thats currently banned

enjoy ;)

Slybone 06-21-2004 05:26 PM

anyway to make it so its not moderator specific, just if your a admin or supermod it works?

**Edit** nevermind ignore my newbness

sketch42 06-21-2004 06:27 PM

Find This
Code:

        <if condition="$post[usergroupid]!=6 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
and replace with this

Code:

        <if condition="($bbuserinfo[usergroupid]==5 || $bbuserinfo[usergroupid]==6)">
for just supermods and admins

MegaHertz 06-21-2004 07:30 PM

Very nice thanks!

Slybone 06-21-2004 08:33 PM

When trying to change it to smod & admins only... i get
Quote:

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected ';' in /home/forums/includes/adminfunctions_template.php(3028) : eval()'d code on line 228

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

**EDIT** Nevermind I found the error you forgot to add a ) after ==6 so it should look like

Code:

        <if condition="($bbuserinfo[usergroupid]==5 || $bbuserinfo[usergroupid]==6)">
**EDIT Number 2** What do you put if Administrator is your Secondary Usergroup?

sketch42 06-22-2004 12:39 PM

Quote:

Originally Posted by Slybone
When trying to change it to smod & admins only... i get


Code:

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected ';' in /home/forums/includes/adminfunctions_template.php(3028) : eval()'d code on line 228

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

**EDIT** Nevermind I found the error you forgot to add a ) after ==6 so it should look like

Code:

        <if condition="($bbuserinfo[usergroupid]==5 || $bbuserinfo[usergroupid]==6)">

Fixed in my previous post


Quote:

Originally Posted by Slybone
**EDIT Number 2** What do you put if Administrator is your Secondary Usergroup?

im not too familiar with secondary groups but i think it would be something like this
Code:

        <if condition="($bbuserinfo[usergroupid]==5 || $bbuserinfo[membergroupids]==6)">
although im not too sure... i dont have any admins on a secondary group .. if you can try that code and post results it would be appreciated

Slybone 06-22-2004 01:23 PM

Worked Perfectly, Thanks for the support Great hack!

sketch42 06-22-2004 01:29 PM

:D glad i could help :D

sketch42 07-15-2005 03:35 AM

tested and working on vb 3.0.7 :-D

stan111 09-19-2005 10:17 AM

wow, this is a good little hack
thanks a lot
installed

ZeryabPhone 10-07-2005 10:47 AM

installed and working fine on vb v 3.0.9

Regards


All times are GMT. The time now is 03: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.02308 seconds
  • Memory Usage 1,753KB
  • 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
  • (6)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete