Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Quick Ban & Unban in Postbit & Postbit_legacy! Details »»
Quick Ban & Unban in Postbit & Postbit_legacy!
Version: 2.0.2, by farooqaaa farooqaaa is offline
Developer Last Online: Feb 2008 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.1 Rating:
Released: 12-04-2006 Last Update: 12-06-2006 Installs: 172
Template Edits
Additional Files  
No support by the author.

Hello,

This is my second simple hack . This is easy to use & easy to install.

This will add a QuickBan image to postbit & postbit_legacy.

Features:-
* Show Quick Ban & Unban button for separate usergroups.
* Allow separate usergroups to see the Quick Ban & Unban button and that can ban users.
* Show in postbit & postbit_legacy (no template edits required)
* Enable / Disable whole hack.
* Add a Quick Ban & Unban button of your choice OR use the buttons i have attached. >>> QuickBan () and QuickUnBan ().
------- for more see the screen shots attached.

Screenshots:-

I have attached screenshots of (Postbit, Postbit_legacy and AdminCP).

TESTED on Vbulletin 3.6.4 and working fine . (thanks to snakes1100 for testing it on VB3.6.4)

Enjoy using this mod, and please don't forget to click install!

Thanks

Version history:
Quick Ban & Unban 1.0
Quick Ban & Unban 2.0 - No more template edits, and other features added.
Quick Ban & Unban 2.0.1 - Allow seperate usergroups to see the QB button and ban users.
Quick Ban & Unban 2.0.2 - Unban users that are banned.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
s.sami

Comments
  #62  
Old 05-19-2007, 03:00 PM
Panagioths Panagioths is offline
 
Join Date: Feb 2004
Location: Greece
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a problem when you add a custom group to the setting "Enable QB for seperate Usergroups". It doesn't apply to it. Is there a fix for it?
Reply With Quote
  #63  
Old 05-20-2007, 01:49 PM
rolfw1 rolfw1 is offline
 
Join Date: Nov 2005
Location: Berkshire, England
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just tried to install on 3.67, but get a fatal error message, i was aware that it may not work, but thought I'd let you know.
Code:
Importing Product, Please Wait...

[:]

Fatal error: Call to undefined function: fetch_phrasetypes_array() in /home/thames/public_html/admincp/plugin.php on line 2111
Reply With Quote
  #64  
Old 05-20-2007, 01:52 PM
Panagioths Panagioths is offline
 
Join Date: Feb 2004
Location: Greece
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've installed in 3.6.7 just fine. What does the line 2111 says?
Reply With Quote
  #65  
Old 06-20-2007, 08:21 AM
mfyvie mfyvie is offline
 
Join Date: Mar 2007
Location: Zurich, Switzerland
Posts: 336
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd just like to report a problem with this mod. Instead of checking to see whether the admin or mods are members of a group, it checks only their primary group membership.

This means that if you have moderators who have a group membership of the moderators group based on a secondary usergroup, this mod won't work the way you expect it to.
Reply With Quote
  #66  
Old 06-20-2007, 09:16 AM
mfyvie mfyvie is offline
 
Join Date: Mar 2007
Location: Zurich, Switzerland
Posts: 336
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The following fixes resolve the issue I raised in my last post:

Plugin - Quick ban - Auto-Template edits.
Code:
-- At top of file, insert --

if (is_member_of($vbulletin->userinfo, split(',', $vbulletin->options['ugroups_can'])) AND $vbulletin->options['qbhack'] == 1)
{

-- At end of file, insert --
}
Template quickban_button
Code:
-- FIND, THEN DELETE --

<!-- ALLOWED USERGROUPS -->
<if condition="$vboptions[qbhack]">

<if condition="$bbuserinfo[usergroupid]== $vboptions['ugroups_can']{0} OR $bbuserinfo[usergroupid]== $vboptions['ugroups_can']{2} OR $bbuserinfo[usergroupid]== $vboptions['ugroups_can']{4} OR $bbuserinfo[usergroupid]== $vboptions['ugroups_can']{6}">
<!-- END ALLOWED USERGROUPS -->

-- FIND --

</if></if></if></if>
<!-- END QUICK BAN BUTTON -->

-- REPLACE --

</if></if>
<!-- END QUICK BAN BUTTON -->
Reply With Quote
  #67  
Old 06-20-2007, 11:05 AM
linhhon2003 linhhon2003 is offline
 
Join Date: Jan 2005
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I set ADMIN(5),SMOD(6),MOD(7) groups that can ban Register user group (2)
But Only ADMIN and SMOD can login on ControlPanel.
MOD can't login.
I don't want set MOD group like SMOD.
How to set MOD can ban group(2)?
Reply With Quote
  #68  
Old 06-20-2007, 11:12 AM
mfyvie mfyvie is offline
 
Join Date: Mar 2007
Location: Zurich, Switzerland
Posts: 336
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I'm not sure I can understand exactly what you mean because you haven't phrased your question very clearly.

You may be referring to the permissions required for mods to ban people - but this has nothing to do with the mod, this is set on a per moderator, per forum basis. In the forum manager select a given moderator and edit their moderation rights to this forum. This is where you'll find the option "Can Ban Users"
Reply With Quote
  #69  
Old 06-20-2007, 12:13 PM
linhhon2003 linhhon2003 is offline
 
Join Date: Jan 2005
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank for help
I don't speak english very good.
Default Usergroups can to view ban and unban button but Custom Usergroups can't to view it ???

Sorry, If you don't understand because my English is not good.
Reply With Quote
  #70  
Old 06-20-2007, 12:15 PM
mfyvie mfyvie is offline
 
Join Date: Mar 2007
Location: Zurich, Switzerland
Posts: 336
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by linhhon2003 View Post
Thank for help
I don't speak english very good.
Default Usergroups can to view ban and unban button but Custom Usergroups can't to view it ???

Sorry, If you don't understand because my English is not good.
Ok, then if I understand you correctly, I already provided the fix to this issue in post #66
Reply With Quote
  #71  
Old 06-20-2007, 05:11 PM
linhhon2003 linhhon2003 is offline
 
Join Date: Jan 2005
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, I don't read exactly
Many thank.
It's work
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:37 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.04504 seconds
  • Memory Usage 2,314KB
  • 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
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete