vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Profile Enhancements - Ban user since their profile (Quick Ban) (https://vborg.vbsupport.ru/showthread.php?t=232682)

aouni_tahech 02-22-2010 05:54 PM

Thank you Allan mod. Allow me to mention this. Placing the code immediately above <span id="userinfo"> will make the ban button viewable by everybody. This means that they will be also able to figure out the folder names of Mod CP (In my case, I'm using a custom name different from modcp)

So, the correct place to add the code is BEFORE
Code:

</vb:if>
<span id="userinfo">

This will make the button only apparent to moderators.
Please correct me if I'm wrong. I'm not a professional coder btw.

P.S. I'm using 4.0.2
Thanks!

rooster99ss 02-22-2010 08:16 PM

installed. thank you for the mod

Quote:

Originally Posted by aouni_tahech (Post 1988956)
This will make the button only apparent to moderators.
Please correct me if I'm wrong. I'm not a professional coder btw.

P.S. I'm using 4.0.2
Thanks!

yes, that's the way it worked for me, I double checked it.

whitedd 02-22-2010 09:16 PM

...installed...great mod...

Whtetrashwarrio 03-01-2010 01:13 PM

Thanks installed !

TimberFloorAu 05-21-2010 06:59 AM

Better code would be:

Code:

<vb:if condition="is_member_of($bbuserinfo, 5,6,7)">
<a href="modcp/banning.php?do=banuser&amp;u={vb:raw userinfo.userid}" target="_blank" class="textcontrol imagecontrol">
                <img src="{vb:stylevar imgdir_misc}/cross.png" alt="Ban User" />
            </a></vb:if>

Very good tho, using it :)

merk_aus 06-27-2010 10:36 AM

Wow this is awesome thanks!

joomla 07-01-2010 09:41 PM

Good job

kabir 08-27-2010 01:26 PM

Not Work on 4.0.5

myarmy 09-11-2010 09:31 AM

installed. thx

aspen1018 09-16-2010 01:12 PM

thanks


All times are GMT. The time now is 05:11 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.01214 seconds
  • Memory Usage 1,729KB
  • 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)bbcode_quote_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