Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications

Reply
 
Thread Tools
[vb 3.0.1] Quick Ban Details »»
[vb 3.0.1] Quick Ban
Version: 1.00, by sketch42 sketch42 is offline
Developer Last Online: Dec 2011 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 06-03-2004 Last Update: Never Installs: 17
Template Edits
 
No support by the author.

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

Show Your Support

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

Comments
  #12  
Old 06-09-2004, 02:58 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice mod! Will come in handy.
Reply With Quote
  #13  
Old 06-11-2004, 07:06 PM
sketch42's Avatar
sketch42 sketch42 is offline
 
Join Date: May 2004
Location: Brooklyn, NY
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #14  
Old 06-21-2004, 05:26 PM
Slybone Slybone is offline
 
Join Date: Sep 2003
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

**Edit** nevermind ignore my newbness
Reply With Quote
  #15  
Old 06-21-2004, 06:27 PM
sketch42's Avatar
sketch42 sketch42 is offline
 
Join Date: May 2004
Location: Brooklyn, NY
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #16  
Old 06-21-2004, 07:30 PM
MegaHertz MegaHertz is offline
 
Join Date: Mar 2003
Location: U.S.A.
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice thanks!
Reply With Quote
  #17  
Old 06-21-2004, 08:33 PM
Slybone Slybone is offline
 
Join Date: Sep 2003
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #18  
Old 06-22-2004, 12:39 PM
sketch42's Avatar
sketch42 sketch42 is offline
 
Join Date: May 2004
Location: Brooklyn, NY
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #19  
Old 06-22-2004, 01:23 PM
Slybone Slybone is offline
 
Join Date: Sep 2003
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked Perfectly, Thanks for the support Great hack!
Reply With Quote
  #20  
Old 06-22-2004, 01:29 PM
sketch42's Avatar
sketch42 sketch42 is offline
 
Join Date: May 2004
Location: Brooklyn, NY
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

glad i could help
Reply With Quote
  #21  
Old 07-15-2005, 03:35 AM
sketch42's Avatar
sketch42 sketch42 is offline
 
Join Date: May 2004
Location: Brooklyn, NY
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tested and working on vb 3.0.7 :-D
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 02:48 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.04523 seconds
  • Memory Usage 2,298KB
  • Queries Executed 27 (?)
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
  • (6)bbcode_code
  • (3)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_postinfo_query
  • fetch_postinfo
  • 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