vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Ban Via Postbit (https://vborg.vbsupport.ru/showthread.php?t=193169)

aspen1018 10-09-2008 02:56 PM

Ban Via Postbit
 
I had a great mod installed for vBulletin v3.6 that allowed me to thread or site ban from the postbit.

I was wondering if their is a mod available for vBulletin 3.7 that would do the same thing.

Thanks

exel 10-09-2008 03:25 PM

have u tried the 3.6 one on 3.7?

maybe it will work..

if not. then see who made it and search for an update

aspen1018 10-09-2008 07:04 PM

Quote:

Originally Posted by exel (Post 1641159)
have u tried the 3.6 one on 3.7?

maybe it will work..

if not. then see who made it and search for an update



it stopped working when i upgraded to 3.7, the original post does not contain an update for 3.7

orryun 10-09-2008 07:16 PM

Just place wherever you want in the postbit template:
PHP Code:

<div><strong><a href="modcp/banning.php?$session[sessionurl]do=banuser&amp;u=$post[userid]">Ban this user!</a></strong></div

For example, you can do:
search [in postbit]:
PHP Code:

$template_hook[postbit_user_popup

add above:
PHP Code:

<if condition="$show['modcplink']">
<if 
condition="$post[usergroupid]=='8'"><!-- if user is banned -->
                    <
tr><td class="vbmenu_option">
                    <
a href="modcp/banning.php?do=liftban&u=$post[userid]"><strong>Lift ban</strong></a>
                <else /><!-- 
user is not banned -->
                    <
tr><td class="vbmenu_option">
                    <
a href="modcp/banning.php?$session[sessionurl]do=banuser&amp;u=$post[userid]"><strong>Ban User</strong></phrase></a></td></tr></if></if> 

This will add new option to ban/lift ban (seen only to moderators) username in the menu (the one that pops out when you click on someone username)

aspen1018 10-09-2008 07:23 PM

appreciate it I'll give it a try


All times are GMT. The time now is 07:52 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.01093 seconds
  • Memory Usage 1,732KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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