Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Ban user since their profile (Quick Ban) Details »»
Ban user since their profile (Quick Ban)
Version: 1.00, by Allan Allan is offline
Developer Last Online: Mar 2017 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 4.0.0 Rating:
Released: 01-09-2010 Last Update: Never Installs: 101
Template Edits
 
No support by the author.

This mod add a link in the user profile for the banish.
  • In the "MEMBERINFO" temlate, find:
Code:
<span id="userinfo">
  • Add above:
Code:
<a href="modcp/banning.php?do=banuser&amp;u={vb:raw userinfo.userid}" class="textcontrol imagecontrol">
                <img src="{vb:stylevar imgdir_misc}/cross.png" alt="Ban User" />
            </a>
PS: Usergroups permissions are respected

Screenshots

File Type: jpg bannir_us.jpg (13.2 KB, 0 views)
File Type: jpg admincp_us.jpg (36.7 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-22-2010, 05:54 PM
aouni_tahech aouni_tahech is offline
 
Join Date: Jan 2006
Location: Lebanon
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #13  
Old 02-22-2010, 08:16 PM
rooster99ss rooster99ss is offline
 
Join Date: Apr 2008
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed. thank you for the mod

Quote:
Originally Posted by aouni_tahech View Post
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.
Reply With Quote
  #14  
Old 02-22-2010, 09:16 PM
whitedd's Avatar
whitedd whitedd is offline
 
Join Date: Jan 2010
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

...installed...great mod...
Reply With Quote
  #15  
Old 03-01-2010, 01:13 PM
Whtetrashwarrio Whtetrashwarrio is offline
 
Join Date: Dec 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks installed !
Reply With Quote
  #16  
Old 05-21-2010, 06:59 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #17  
Old 06-27-2010, 10:36 AM
merk_aus merk_aus is offline
 
Join Date: Feb 2008
Location: Australia
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow this is awesome thanks!
Reply With Quote
  #18  
Old 07-01-2010, 09:41 PM
joomla's Avatar
joomla joomla is offline
 
Join Date: Feb 2009
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good job
Reply With Quote
  #19  
Old 08-27-2010, 01:26 PM
kabir's Avatar
kabir kabir is offline
 
Join Date: Aug 2009
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not Work on 4.0.5
Reply With Quote
  #20  
Old 09-11-2010, 09:31 AM
myarmy myarmy is offline
 
Join Date: Aug 2010
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed. thx
Reply With Quote
  #21  
Old 09-16-2010, 01:12 PM
aspen1018 aspen1018 is offline
 
Join Date: May 2007
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:55 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10447 seconds
  • Memory Usage 2,328KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete