![]() |
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 :) |
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 |
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']"> HTML Code:
<!-- 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. |
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? |
Nice one ET!
-b6 |
I found there were a few bugs in that code still and I think this will fix it[html]
Code:
<!-- afterflows banlist --> |
So I am presuming we just remove the previous code you wrote and add this new code instead?
|
yeah, I edited my previous post as well.
|
Awesome, thanks :)
|
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 --> |
All times are GMT. The time now is 11:11 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|