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
  #32  
Old 11-25-2011, 06:22 AM
Dante848 Dante848 is offline
 
Join Date: Nov 2011
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is one for quick infraction
Code:
<a class="redcard" href="infraction.php?{vb:raw userinfo.userid}do=report&amp;u={vb:raw userinfo.userid}" rel="nofollow" title="{vb:rawphrase received_infraction}">
                <img src="{vb:stylevar imgdir_button}/red-card_sm.png" alt="Give Infraction" />
            </a>
Reply With Quote
  #33  
Old 12-27-2011, 06:57 AM
Droptop Droptop is offline
 
Join Date: Oct 2007
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hazem_aliraqi View Post
With your code will be visible to all members and visitors

What do you think of this code ?? that the admin only can see it and not for all, as is the case with edit profile for user ?

this is the code




PHP Code:
<vb:if condition="$show['edit_profile']"><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></vb:if> 
Thanks, works great! :up:
Reply With Quote
  #34  
Old 07-02-2012, 04:22 PM
cjwinternet cjwinternet is offline
 
Join Date: Oct 2005
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
PS: Usergroups permissions are respected


Yeah if you mean that a member can't actually ban someone. They can see the X and it does take them to the control panel.


This mod should be deleted. There's clearly no permissions applied where there should be. Thank god the replies are better than the mod.
Reply With Quote
  #35  
Old 07-08-2012, 10:55 AM
aouni_tahech aouni_tahech is offline
 
Join Date: Jan 2006
Location: Lebanon
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I agree.



Quote:
Originally Posted by TimberFloorAu View Post
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
  #36  
Old 07-08-2012, 12:09 PM
Hakan39's Avatar
Hakan39 Hakan39 is offline
 
Join Date: Feb 2009
Location: T?rkiye
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you.
Reply With Quote
  #37  
Old 07-09-2012, 12:39 PM
Menno11's Avatar
Menno11 Menno11 is offline
 
Join Date: Feb 2011
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thx installed
Reply With Quote
  #38  
Old 08-16-2012, 07:00 PM
Arrogant-One's Avatar
Arrogant-One Arrogant-One is offline
 
Join Date: Jul 2007
Location: Brisbane
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Candostum View Post
Thanks installed.
This mod does not work for vB 4.1.12
Reply With Quote
  #39  
Old 11-01-2012, 09:28 AM
pasta186 pasta186 is offline
 
Join Date: Aug 2012
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This might sound crazy, But is there a search button? Cuz i can't find " <span id="userinfo">"
Reply With Quote
  #40  
Old 04-27-2014, 03:01 PM
Stan993 Stan993 is offline
 
Join Date: Aug 2013
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow... tanks
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 06:48 PM.


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.12552 seconds
  • Memory Usage 2,323KB
  • Queries Executed 25 (?)
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_php
  • (4)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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