Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

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
  #22  
Old 09-21-2010, 07:12 PM
aspen1018 aspen1018 is offline
 
Join Date: May 2007
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

found the problem
Reply With Quote
  #23  
Old 11-07-2010, 01:42 PM
vblove vblove is offline
 
Join Date: Oct 2010
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very useful mod, thank you
Reply With Quote
  #24  
Old 11-30-2010, 12:38 PM
freeoffline freeoffline is offline
 
Join Date: Dec 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

10q
Reply With Quote
  #25  
Old 12-09-2010, 11:19 AM
COL NIL SATIS COL NIL SATIS is offline
 
Join Date: Aug 2009
Location: Liverpool UK
Posts: 802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tagged
Reply With Quote
  #26  
Old 12-13-2010, 05:36 PM
MatiasCandy MatiasCandy is offline
 
Join Date: May 2008
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like this but can we use a variable for modcp so we do not have to hard code it?

Code:
<a href="modcp/banning.php?.......
What would the vari be?

I know it gets it from the config file:
Code:
$config['Misc']['modcpdir'] = 'modcp';
Reply With Quote
  #27  
Old 03-20-2011, 10:40 PM
elwachiman's Avatar
elwachiman elwachiman is offline
 
Join Date: Nov 2009
Location: Venezuela
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Work In Vb 4.1.2 Perfect
Reply With Quote
  #28  
Old 03-25-2011, 10:11 PM
JasonP38's Avatar
JasonP38 JasonP38 is offline
 
Join Date: Oct 2010
Location: Newfoundland
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed.


thanks, it works and looks great.
Reply With Quote
  #29  
Old 11-18-2011, 08:16 AM
akibui akibui is offline
 
Join Date: Nov 2009
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tested with 4.1.8 and works great.
Reply With Quote
  #30  
Old 11-18-2011, 04:27 PM
hazem_aliraqi's Avatar
hazem_aliraqi hazem_aliraqi is offline
 
Join Date: Oct 2010
Location: iraq
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice , thank you installed
Reply With Quote
  #31  
Old 11-18-2011, 06:27 PM
hazem_aliraqi's Avatar
hazem_aliraqi hazem_aliraqi is offline
 
Join Date: Oct 2010
Location: iraq
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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> 
Reply With Quote
Reply

Thread Tools

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 03:25 PM.


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.05694 seconds
  • Memory Usage 2,323KB
  • 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_php
  • (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