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)

Parker Clack 05-15-2006 05:38 PM

Can you write this that an email is sent to the member when they are banned with the reason, length of the ban, etc?

Smiry Kin's 05-31-2006 03:43 PM

well this doesnt work, i donno if the codes changed, because it works perfect on my other forums... shame really..

never mind, got ti working, i think

MissKalunji 08-05-2006 11:49 AM

will this work with 3.6?

nix 08-18-2006 02:53 PM

I'm using it on 3.6 Gold.

MissKalunji 08-22-2006 03:15 AM

still working on 3.6

Chicago_VLNU_4s 09-11-2006 01:35 AM

I put it in postbit_legacy and it shows up in the drop down, but when i click it, nothin happens! What's wrong?

El Orans 10-12-2006 02:39 PM

This code will show Admins the ban option (red) for non-banned members and the lift ban option (green) for banned members.

Code:

<if condition="$bbuserinfo[usergroupid]== <Admins>">
        <if condition="$post[usergroupid] == <Banned Users>">
                <tr>
                        <td class="vbmenu_option">
                        <span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/banning.php?do=liftban&userid=$post[userid]','liftban','width=575,height=375,scrollbars=yes')" style="color:green;">Lift Ban on $post[username]</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=575,height=375,scrollbars=yes')" style="color:red;">Ban $post[username]</span>
                        </td>
                </tr>
        </if>
</if>


Dannyloski 08-10-2007 12:48 AM

Awesome, working on vB 3.6.8 ... Installed ...

Panzer Max 01-29-2008 01:33 AM

I installed this but the moderators still cannot get it to work. They see the Ban link in the profile, but when they click it, a window appears asking them to log into the mod CP. then after the log in, tells them You are not authorized to ban users

Ideas?

I tried this using one style and editing the Postbit Legacy template. Tried it as it comes in the zip and with this piece replacing

Code:

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

canyildiz 05-28-2009 08:12 PM

Also works on 3.8.2. Thanks...


All times are GMT. The time now is 11:49 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
  • Page Generation 0.01643 seconds
  • Memory Usage 1,725KB
  • 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_code_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