The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
afterfl0w's Advanced Banlist Details »» | |||||||||||||||||||||||||
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
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
|
Comments |
#32
|
||||
|
||||
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 |
#33
|
||||
|
||||
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 |
#34
|
|||
|
|||
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&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr> </if> 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 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. |
#35
|
||||
|
||||
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? |
#36
|
||||
|
||||
Nice one ET!
-b6 |
#37
|
|||
|
|||
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 --> |
#38
|
||||
|
||||
So I am presuming we just remove the previous code you wrote and add this new code instead?
|
#39
|
|||
|
|||
yeah, I edited my previous post as well.
|
#40
|
||||
|
||||
Awesome, thanks
|
#41
|
|||
|
|||
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 --> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|