Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
afterfl0w's Advanced Banlist Details »»
afterfl0w's Advanced Banlist
Version: 2.51, by afterfl0w afterfl0w is offline
Developer Last Online: Apr 2009 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.0 Rating:
Released: 08-11-2006 Last Update: 08-13-2006 Installs: 87
DB Changes Uses Plugins Template Edits
Code Changes Additional Files  
No support by the author.

afterfl0w's Advanced Banlist! - Version 2.51
updated 13/08/06

Hey all, it's time for another release. This one has been completely re-written and made a lot easier to install! Also, it's vB3.6 and 3.5 compatible!

Onto the buzz:

Features
  • Simple, yet advanced display of banned users
  • Easy-to-set up! 15 minutes or less install time!
  • Import ALL your old bans into this permanent record of banned users!
  • Automatic post edit of offending post, to show warning that the user was banned!
  • Ban types, length, liftdate, bandate all shown on the list
  • Complete support from me, including custom modifications to the banlist
  • ADDED IN VERSION 2.51 - admin_banlist.php section for AdminCP! From there, you can clear the banlist, import bans, and selectively remove bans from the list!
  • ADDED IN VERSION 2.51 - Template edit for postbit that adds easy [Ban User] link!
  • FIXED IN VERSION 2.51 - Fixed Issues with Importing!
  • FIXED IN VERSION 2.51 - [Ban User] link no longer sends the linked page to main
  • FIXED IN VERSION 2.51 - Fixed compatibility errors with the product and showbans.php for older/newer versions of PHP

Quick install, added what everyone wanted, and made it easy to install! What more could you want!

Installation

Upload the product-aft_banlist.xml to your vB products, and then open the included README_FIRST!!.html file, and cycle through the instructions.

Afterwards, upload the showbans.php to your vB root and you're ready to go!

Importing Old Bans

This was HIGHLY requested in the last version, and I'm a fool for not including it.

Upload the import_bans.php file to your admincp folder, and then navigate to, for example, www.site.com/forums/admincp/import_bans.php.

Follow the instructions, which are as easy as pushing a button , and delete the file afterwards!

Upgrading

If you are upgrading, remove the old banlist table and replace all files!

Troubleshooting/Problems

Any problems or issues with this modification can be either posted in this thread, sent to me in a PM or e-mailed to me at flamethrower_stickattack@hotmail.com

You can also add me to MSN and I'll be able to offer support most of the time.

Install and MOTM Votes

I'm not going to force you to hit the install button, or push it on you, but it'd be greatly appreciated if you do! Also, if you REALLY like this hack, please vote it for MOTM(MOD OF THE MONTH)

Supporters / CoAuthors

Show Your Support

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

Comments
  #32  
Old 08-27-2006, 08:08 AM
SportsZone's Avatar
SportsZone SportsZone is offline
 
Join Date: Aug 2006
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have banned 2 members after in stalling the hack and they don't show in the banlist
http://www.sportszonefanatics.com/showbans.php

edit: I figured it out.

Is there any chance this hack could be coded so the last banned member shows up on the forum home page, please?

Also, when you edit the postbit template for the ban link, is it possible to somehow have the ban link appear in the profile drop downlink.

Great hack
Reply With Quote
  #33  
Old 08-27-2006, 05:59 PM
b6gm6n's Avatar
b6gm6n b6gm6n is offline
 
Join Date: Aug 2002
Location: UK
Posts: 691
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like this mod... but i believe showing a [ ban user ] link for everyone shouldnt be the case... i think a drop down from a users profile upon clicking thier username would be much better and would tidy the postbits up a bit

-b6
Reply With Quote
  #34  
Old 08-29-2006, 03:55 PM
EasyTarget EasyTarget is offline
 
Join Date: Nov 2004
Posts: 660
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great mod/idea. I added it to the dropdown by editting the postbit and postbit legacy templates after the
HTML Code:
	<if condition="$post['userid'] AND $show['member']">
	<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
	</if>
I added:
HTML Code:
<!-- afterflows banlist --> 
<if condition="$bbusergroup[usergroupid]==6 OR can_moderate($forum[forumid], '', $bbuserinfo[userid])">
<if condition="$post[usergroupid]!=8"> 
 
<tr><td class="vbmenu_option"><a href="javascript:void(0);" onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]&bannedpost=showthread.php?p=$post[postid]&postid=$post[postid]','ban','width=500,height=375,scrollbars=yes')">Ban User</a></td></tr> 

</if>  
<if condition="$post[usergroupid]==8"> 

<tr><td class="vbmenu_option"><a href="javascript:void(0);" onClick="window.open('modcp/banning.php?do=liftban&userid=$post[userid]','liftban','width=500,height=375,scrollbars=yes')">Unban User</a></td></tr> 
 
</if> 
</if>
         <!-- /end afterflows banlist -->
I'm guessing usergroup id 20 is a custom banned usergroup for afterflow?

I love how you can select which bans to have shown on the page but this bug occurred for me:
I was trying to remove a ban from the ban list in the admincp. I ticked the box for the most recent ban and then clicked delete bans. It then removed the oldest ban instead of the ban I was trying to remove.. each time I repeated it would do the same thing.

also, possible bug, but maybe its supposed to behave like this. I banned a user to test the banlist, it showed up find and the post was edited fine, however when I unbanned the user by clicking unban then the user still showed up on the banlist and the bantime was empty, just had ().

Suggestion:
make it so you can administer the bans from the showbans.php itself if you're in the appropriate usergroups.
make the admin pages match the admincp style.
add a section where you can edit the bans reason + link.
I like how you let us decide whether to edit the post or not, maybe as well you can let us choose the text/format which is added to the post.
Reply With Quote
  #35  
Old 08-29-2006, 04:09 PM
SportsZone's Avatar
SportsZone SportsZone is offline
 
Join Date: Aug 2006
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

EasyTarget: Awesome stuff! Thanks

Is there any chance this hack could be coded so the last banned member shows up on the forum home page, please?
Reply With Quote
  #36  
Old 08-29-2006, 06:30 PM
b6gm6n's Avatar
b6gm6n b6gm6n is offline
 
Join Date: Aug 2002
Location: UK
Posts: 691
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one ET!

-b6
Reply With Quote
  #37  
Old 08-30-2006, 09:10 PM
EasyTarget EasyTarget is offline
 
Join Date: Nov 2004
Posts: 660
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found there were a few bugs in that code still and I think this will fix it[html]
Code:
<!-- afterflows banlist --> 
<if condition="$bbusergroup[usergroupid]==6 OR can_moderate($forum[forumid], '', $bbuserinfo[userid])">
<if condition="$post[usergroupid]!=8"> 
 
<tr><td class="vbmenu_option"><a href="javascript:void(0);" onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]&bannedpost=showthread.php?p=$post[postid]&postid=$post[postid]','ban','width=500,height=375,scrollbars=yes')">Ban User</a></td></tr> 

</if>  
<if condition="$post[usergroupid]==8"> 

<tr><td class="vbmenu_option"><a href="javascript:void(0);" onClick="window.open('modcp/banning.php?do=liftban&userid=$post[userid]','liftban','width=500,height=375,scrollbars=yes')">Unban User</a></td></tr> 
 
</if> 
</if>
         <!-- /end afterflows banlist -->
Now when you ban a user and you click on their name in the postbit you'll see the unban option but not the ban one anymore.
Reply With Quote
  #38  
Old 08-30-2006, 09:26 PM
SportsZone's Avatar
SportsZone SportsZone is offline
 
Join Date: Aug 2006
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So I am presuming we just remove the previous code you wrote and add this new code instead?
Reply With Quote
  #39  
Old 08-30-2006, 10:48 PM
EasyTarget EasyTarget is offline
 
Join Date: Nov 2004
Posts: 660
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah, I edited my previous post as well.
Reply With Quote
  #40  
Old 08-30-2006, 11:10 PM
SportsZone's Avatar
SportsZone SportsZone is offline
 
Join Date: Aug 2006
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome, thanks
Reply With Quote
  #41  
Old 08-31-2006, 11:22 PM
EasyTarget EasyTarget is offline
 
Join Date: Nov 2004
Posts: 660
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

haha sorry guys, that code I posted still let everyone see the ban user option (of course they couldn't really ban a user, but they could still see the option). Got some help and this is verified to work.

This is the new code.. you only see ban/unban if you're an admin and you only see ban when a user isn't banned yet and only unban if they're already banned.

Code:
<!-- afterflows banlist --> 
<if condition="$bbusergroup[usergroupid]==6 OR can_moderate($forum[forumid], '', $bbuserinfo[userid])">
 
<if condition="$post[usergroupid]!=8"> 
 
<tr><td class="vbmenu_option"><a href="javascript:void(0);" onClick="window.open('modcp/banning.php?do=banuser&userid=$post[userid]&bannedpost=showthread.php?p=$post[postid]&postid=$post[postid]','ban','width=500,height=375,scrollbars=yes')">Ban User</a></td></tr> 

</if> 
 
<if condition="$post[usergroupid]==8"> 

<tr><td class="vbmenu_option"><a href="javascript:void(0);" onClick="window.open('modcp/banning.php?do=liftban&userid=$post[userid]','liftban','width=500,height=375,scrollbars=yes')">Unban User</a></td></tr> 
 
</if> 

</if>
         <!-- /end afterflows banlist -->
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 02:08 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.12135 seconds
  • Memory Usage 2,322KB
  • 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
  • (2)bbcode_code
  • (2)bbcode_html
  • (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
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete