vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   banning options for smods (https://vborg.vbsupport.ru/showthread.php?t=75007)

Carnage 01-25-2005 02:18 PM

Quote:

Originally Posted by dbembibre
If you want make a link in you mod control panel only need make this.

Open modcp/index.php

Search:
Code:

if (can_moderate(0, 'canbanusers'))
        {
                $canuser = true;
                construct_nav_option($vbphrase['ban_user'], 'banning.php?do=banuser', '<br />');

Add:
Code:

construct_nav_option('Ban IP/Mail', 'ipban.php', '<br />');
Or create a new vbphrase and replace with this

Code:

construct_nav_option($vbphrase['banIP'], 'ipban.php', '<br />');
Excuse my broken English


basically, yes that will add a link, but access to this is controled by a none existant permission (so its not possible to give it to mods) thus only smods+ can have access. You have added it to the cp using the banusers permission which mods can have. dosn't matter too much since they will just get a permission error on the ipban page.

now to explain this a little better:

Code:

construct_nav_option('Ban IP/Mail', 'ipban.php', '<br />');
^ that one will work fine if you add it under:

Code:

construct_nav_option($vbphrase['ban_user'], 'banning.php?do=banuser', '<br />');
however if you add a vb phrase 'banIP' you can add the line below INSTEAD of the first line to use the phrase instead, its all a matter of personal preferance.

Code:

construct_nav_option($vbphrase['banIP'], 'ipban.php', '<br />');

Zelos 09-12-2006 06:29 PM

Any chance this will be ported to 3.6? I could seriously use this!


All times are GMT. The time now is 09: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.01115 seconds
  • Memory Usage 1,716KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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