vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Quick Ban/UnBan (https://vborg.vbsupport.ru/showthread.php?t=93057)

ConqSoft 08-23-2005 08:45 PM

Not usergroups; access masks.

Edit a user in the AdminCP. Choose Edit Forum Permissions (Access Masks) from the dropdown at the top. Should be the first option listed. You can pick/choose which forums they have access to, per user.

You may need to enable Access Masks if you haven't already.
AdminCP->vBulletin Settings->General Settings->Access Masks.

rza733 10-15-2005 12:32 AM

thanks much sketch.... works great

Kevlar 10-19-2005 01:31 AM

Is there anyway I could set this up so it limited those bannings by mods to 48 hrs or less?

Telegon80 10-19-2005 02:38 AM

installed but no workie

Flow Fusion 10-23-2005 08:23 AM

Hack is perfect for my forum. Thanks for the hard work.

*installs*

Blind Guardian 10-25-2005 03:38 AM

I tweaked it a little, since only my super-moderators and administrators can ban users, not regular moderators. I also added another if condition so that it'll only show "ban" if they're not banned, and if they are it'll only show "lift ban".

Code:

<!-- QUICK BAN -->
        <if condition="$post[usergroupid]!=6 AND $bbuserinfo[usergroupid]==6 OR $bbuserinfo[usergroupid]==5">
                <if condition="$post[usergroupid]==8 OR $post[usergroupid]==9 OR $post[usergroupid]==108">
                        <tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=liftban&userid=$post[userid]','liftban','width=800,height=375,scrollbars=yes')"><b>Lift Ban on $post[username]</b></span></td></tr>
                <else />
                        <tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]','ban','width=800,height=375,scrollbars=yes')"><b>Ban or Suspend $post[username]</b></span></td></tr>
                </if>
        </if>
<!-- /QUICK BAN -->

It's set so it won't show up on admin posts at all, but only admins and smods will see it under the dropdown. Usergroups 8, 9 and 108 are my banned, temp-banned and sig-revoked usergroups, respectively.

Other than those few minor things, I'm glad you got this up for 3.5. Thanks.

lucky64 11-01-2005 06:46 PM

I think I'll install this today.

Telegon80 11-18-2005 02:37 AM

what's the difference if i put it on postbit or postbit legacy.

i dont understand which i should put it into wtf...

bonjurkes 12-17-2005 04:13 PM

if you are using Legacy (Vertical) Postbit Template you must edit postbit legacy...

utw-Mephisto 12-26-2005 06:35 PM

Just minor, but the links look ugly ... how can I make them "normal" ?

http://img408.imageshack.us/img408/4757/untitled6fk.jpg


All times are GMT. The time now is 09:27 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.00994 seconds
  • Memory Usage 1,730KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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