Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Topic started by: DJ Biscuit on July 27, 2007, 04:53:30 PM

Title: Public Banlist
Post by: DJ Biscuit on July 27, 2007, 04:53:30 PM
A mod that makes it so that all members can see who is banned and why.

The ban list will have(In order):

Person Banned
Link to Post Banned for
Admin/mod who banned them
Reason
Ban lift date
Title: Re: Public Banlist
Post by: TheWrath! on July 27, 2007, 05:23:13 PM
that is a good idea
Title: Re: Public Banlist
Post by: DJ Biscuit on July 27, 2007, 05:51:32 PM
yea. here is what it should look like
http://blogpunch.org/showbans.php?
Title: Re: Public Banlist
Post by: TheWrath! on July 30, 2007, 05:24:44 PM
what code did u use for that
Title: Re: Public Banlist
Post by: karlbenson on July 30, 2007, 05:25:47 PM
Looks like a vbulletin mod/feature.
Title: Re: Public Banlist
Post by: TheWrath! on July 30, 2007, 05:29:05 PM
it is.  powered by vbulliten
Title: Re: Public Banlist
Post by: karlbenson on July 30, 2007, 05:31:35 PM
I should be shot for stating the 'bloody obvious' ;) ;) ;)
Title: Re: Public Banlist
Post by: TheWrath! on July 30, 2007, 09:50:36 PM
you must be able to code a new php page with that coding in it.
Title: Re: Public Banlist
Post by: DJ Biscuit on July 31, 2007, 02:22:53 AM
i didnt code that mod. I was just looking if someone could make a duplicate of it for smf, and possibly this mod too
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi133.photobucket.com%2Falbums%2Fq71%2Fc0untdown%2FFacepunch%2520Screens%2Fquickban.jpg&hash=75f353369cf7a23329e62e65e53a3734c56a111d)

   


This is what it looks like. You click the white face, and the box appears. The white face is at the top right of posts. You type the ban reason in the text box, then you click one of the options. 2m is 2 minutes, 30m minutes, 1h is 1 hour, etc. The feedback part is to show things like "Closed Thread" or "Banned user for XXXX reason." It shows that you're the one who did it and why.

then it will add this to the post

(User was banned for this post. (In post: <topic name> (Reason "<reason mod/admin chooses>" by <mod/admin)))
Title: Re: Public Banlist
Post by: TheWrath! on July 31, 2007, 07:15:36 AM
no i am saying you can probably code a page to look like that
Title: Re: Public Banlist
Post by: DJ Biscuit on July 31, 2007, 12:26:01 PM
Well I cant. Thats why I am requesting it here.
Title: Re: Public Banlist
Post by: TheWrath! on July 31, 2007, 04:08:24 PM
right. I am going to talk to my friend who is good with php and sql.  If he gets on here before I take a nap we will see what we can do.
Title: Re: Public Banlist
Post by: Eliana Tamerin on July 31, 2007, 04:21:20 PM
As for the quick admin stuff, that could probably be a mod for 2.0, when there are more moderation features as a default. Although, it's not hard to go to someone's profile and ban them from there, it's just a click away.
Title: Re: Public Banlist
Post by: TheWrath! on July 31, 2007, 05:09:31 PM
true.  The public ban list you can code a php page for. I am waiting for my friend Alex to get online and I will talk to him with it.
Title: Re: Public Banlist
Post by: DJ Biscuit on July 31, 2007, 06:18:30 PM
Quote from: Eliana Tamerin on July 31, 2007, 04:21:20 PM
As for the quick admin stuff, that could probably be a mod for 2.0, when there are more moderation features as a default. Although, it's not hard to go to someone's profile and ban them from there, it's just a click away.

true but it wont add the
(User was banned for this post. (In post: <topic name> (Reason "<reason mod/admin chooses>" by <mod/admin)))
to the bottom of the post the person got banned for
Title: Re: Public Banlist
Post by: Smith6612 on July 31, 2007, 06:21:34 PM
Oh, that's just like how Garry's Mod forums (Facepunch Studios's forums) works. It has a public ban list seen here...

http://forums.facepunchstudios.com/showbans.php?

My friend, well two friends of mine would love it so much if there was an SMF mod for this. Someone should really go after making this...
Title: Re: Public Banlist
Post by: DJ Biscuit on July 31, 2007, 06:31:13 PM
Quote from: Smith6612 on July 31, 2007, 06:21:34 PM
Oh, that's just like how Garry's Mod forums (Facepunch Studios's forums) works. It has a public ban list seen here...

http://forums.facepunchstudios.com/showbans.php?

My friend, well two friends of mine would love it so much if there was an SMF mod for this. Someone should really go after making this...

Hey a fellow facepuncher. and yes. I asked Garry if i could have that mod on gtalk but he didn't reply :S I was hoping to get the code and paste it here and hope someone could port it for SMF
Title: Re: Public Banlist
Post by: Eliana Tamerin on July 31, 2007, 08:18:59 PM
Quote from: DJ Biscuit on July 31, 2007, 06:18:30 PM
Quote from: Eliana Tamerin on July 31, 2007, 04:21:20 PM
As for the quick admin stuff, that could probably be a mod for 2.0, when there are more moderation features as a default. Although, it's not hard to go to someone's profile and ban them from there, it's just a click away.

true but it wont add the
(User was banned for this post. (In post: <topic name> (Reason "<reason mod/admin chooses>" by <mod/admin)))
to the bottom of the post the person got banned for

Put it in their signature.
Title: Re: Public Banlist
Post by: DJ Biscuit on July 31, 2007, 08:30:30 PM
well then that would add it to all their posts....
Title: Re: Public Banlist
Post by: Smith6612 on July 31, 2007, 09:14:07 PM
I don't go to Facepunch :P Two of my friends go there, but I do know what goes on in ther e :P

But Garry handcoded that mod himself, so I guess unless you offer to pay him for it or if he's feeling like he was when he unbanned everyone a few months ago (the banned people got rebanned by autoban or by the mods in a few hours after that :P), most likely he won't give you his mod.
Title: Re: Public Banlist
Post by: TheWrath! on August 01, 2007, 08:14:13 PM
Quote from: DJ Biscuit on July 31, 2007, 06:18:30 PM
Quote from: Eliana Tamerin on July 31, 2007, 04:21:20 PM
As for the quick admin stuff, that could probably be a mod for 2.0, when there are more moderation features as a default. Although, it's not hard to go to someone's profile and ban them from there, it's just a click away.

true but it wont add the
(User was banned for this post. (In post: <topic name> (Reason "<reason mod/admin chooses>" by <mod/admin)))
to the bottom of the post the person got banned for


it will say why they got banned that you specified when you went in the admin area to ban him.
Title: Re: Public Banlist
Post by: DJ Biscuit on August 02, 2007, 02:40:42 PM
Not publically....
Title: Re: Public Banlist
Post by: TheWrath! on August 02, 2007, 06:35:07 PM
dj once i got this file coded with my friend alex it can be public
Title: Re: Public Banlist
Post by: DJ Biscuit on August 02, 2007, 11:19:09 PM
Which mod, the quickadmin mod, public banlist or both?
Title: Re: Public Banlist
Post by: TheWrath! on August 03, 2007, 05:15:30 PM
the public banlist
Title: Re: Public Banlist
Post by: GC on August 04, 2007, 02:05:37 PM
This can't be hard. I'll make it if anybody else doesn't want to. ******, this is VERY easy lol
Title: Re: Public Banlist
Post by: TheWrath! on August 04, 2007, 02:15:35 PM
GC if you could try.  I have the stuff but I do not know php coding. my friend alex has had to take off for a couple of days due to a death in the family.
Title: Re: Public Banlist
Post by: GC on August 04, 2007, 02:26:47 PM
ouch.

What I'm going to do is copy everything from the Template_main function in managebans.template.php and make a new one called publicbans.template.php and paste it in, make a source file and add it to the index.php :P lol not hard. Of course I'm going to remove the delete and modify links there.
Title: Re: Public Banlist
Post by: TheWrath! on August 04, 2007, 02:45:15 PM
alright post me what exactly to do when u get it running.
Title: Re: Public Banlist
Post by: DJ Biscuit on August 04, 2007, 06:20:18 PM
GC, if possible can you also add the quickadmin too?
Title: Re: Public Banlist
Post by: GC on August 04, 2007, 07:28:11 PM
quick admin? lol i guess this is more of a mod then quick tip now.
Title: Re: Public Banlist
Post by: GC on August 04, 2007, 09:59:42 PM
Okay, I finished this. I'm not submitting my mod because it'll take forever to get out, so here you go.

Open /index.php
Find:
'ban' => array('ManageBans.php', 'Ban'),

Add After:
'publicbans' => array('PublicBans.php', 'PublicBans'),

-----------

Open /Themes/default/languages/index.english.php
Find:
$txt['ban_reason'] = 'Reason';

Add After:
$txt['ban_name'] = 'Ban name';
$txt['ban_expires'] = 'Expires';
$txt['ban_added'] = 'Added';


-----------

Download these files:
http://www.glitcherscorner.com/files/public%20bans.zip

Extract PublicBans.php to /Sources/
Extract PublicBans.template.php to /Themes/default/


Any questions?


Here's a button for it on the default theme:
Open index.template.php
Find:
'mlist', 'register',
Add After:
'publicbans',

Find:
// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Add After:
// the [Public Bans] list button
echo ($current_action == 'publicbans' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'publicbans' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=publicbans">Public Bans</a>
</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
Title: Re: Public Banlist
Post by: TheWrath! on August 04, 2007, 10:37:24 PM
thank gc for this.
Title: Re: Public Banlist
Post by: DJ Biscuit on August 05, 2007, 01:54:17 AM
Thank you SO much
Title: Re: Public Banlist
Post by: elfishtroll on August 07, 2007, 08:24:18 AM
PUBLIC BANLISTS are the HALLMARK of a LAMEASS SITE or a STUPID SITE WITH STUPID ADMINS (or both!)


LMAO@this thread :P
Title: Re: Public Banlist
Post by: GC on August 07, 2007, 02:09:42 PM
how so? It doesn't share IP, hostnames, or how they were banned, just a reason and when. If you think its a retarded mod, then maybe you should come up with a good reason to explain how members were banned on a 20, 000 member site without making hundreds of threads.

I bet you don't even ban hackers or spammer, or even experienced one on your site... keep your unwanted comments away from people who don't have time to waste time.
Title: Re: Public Banlist
Post by: elfishtroll on August 07, 2007, 04:00:29 PM
Quote from: GC on August 07, 2007, 02:09:42 PM
how so? It doesn't share IP, hostnames, or how they were banned, just a reason and when. If you think its a retarded mod, then maybe you should come up with a good reason to explain how members were banned on a 20, 000 member site without making hundreds of threads.

I bet you don't even ban hackers or spammer, or even experienced one on your site... keep your unwanted comments away from people who don't have time to waste time.

??

maybe I SHOULDNT :D who the hell cares?

when they the are banned, they f**king CEASE to exist, PERIOD.

I wrote code that AUTOMATICALLY IP bans idiots if they
1. Come to my site via a proxy. ( i leave some proxies open to the site for testing, but thats it)

2. Initiate a hacking attempt or attempt to upload anything with a payload

3. Attempt to FLOOD or drain the site ( drain=excessive downloads of large files to use bandwidth, flood=excessive requests to overload MySQL/apache)


I've helped tons of people recover and secure their sites, but setting up a "banned" list is for idiots.

I RARELY ban, but if I do, they are just gone forever, thats it, no tribute, NO "vietnam Memorial" with their names, nothing
Title: Re: Public Banlist
Post by: Smith6612 on August 07, 2007, 04:19:10 PM
I've never needed to ban, so this mod would be pointless to use for me. Also, my friend who used to be an admin at my forum abused his banning power too much on the forum by banning Google and a few other members. He left the forums too much anyways after not liking it, so he's not admin anymore anyways.
Title: Re: Public Banlist
Post by: DJ Biscuit on August 07, 2007, 04:22:57 PM
Quote from: GC on August 07, 2007, 02:09:42 PM
how so? It doesn't share IP, hostnames, or how they were banned, just a reason and when. If you think its a retarded mod, then maybe you should come up with a good reason to explain how members were banned on a 20, 000 member site without making hundreds of threads.

I bet you don't even ban hackers or spammer, or even experienced one on your site... keep your unwanted comments away from people who don't have time to waste time.

I totally agree with GC.
Not to sound mean or anything but I don't care if  you rarely ban or why you ban. I just wanted this mod because I am going to run my forum the way I see another forum run.

Quote from: Smith6612 on August 07, 2007, 04:19:10 PM
I've never needed to ban, so this mod would be pointless to use for me. Also, my friend who used to be an admin at my forum abused his banning power too much on the forum by banning Google and a few other members. He left the forums too much anyways after not liking it, so he's not admin anymore anyways.
Well I get alot of spammers and people flaming, and I use temporary bans to put a stop to this.
Title: Re: Public Banlist
Post by: Smith6612 on August 07, 2007, 04:27:37 PM
I don't get any spam at all... well, I've only gotten one spam post with no other posts from the member who has yet to return or else they will go boom :P.
Title: Re: Public Banlist
Post by: metallica48423 on August 07, 2007, 04:32:29 PM
Quote from: elfishtroll on August 07, 2007, 08:24:18 AM
PUBLIC BANLISTS are the HALLMARK of a LAMEASS SITE or a STUPID SITE WITH STUPID ADMINS (or both!)


LMAO@this thread :P

To each his own... its not your board, its not your worry.

But do NOT come here and start flaming sites just because you don't agree with the stance they take on banning.

Thanks.
Title: Re: Public Banlist
Post by: DJ Biscuit on August 07, 2007, 04:36:29 PM
If you have ever been to facepunch. thats how bad it can get sometimes. If you look at the banlist, I remember once mine came close to that. I plan on running the forums the same way as Garry does on facepunch.

Quote from: metallica48423 on August 07, 2007, 04:32:29 PM
Quote from: elfishtroll on August 07, 2007, 08:24:18 AM
PUBLIC BANLISTS are the HALLMARK of a LAMEASS SITE or a STUPID SITE WITH STUPID ADMINS (or both!)


LMAO@this thread :P

To each his own... its not your board, its not your worry.

But do NOT come here and start flaming sites just because you don't agree with the stance they take on banning.

Thanks.

Thank you.
Title: Re: Public Banlist
Post by: GC on August 07, 2007, 06:32:23 PM
I ban members because of their stupidity and how they think there all that. Also, banning people on forum means major disrespect. I run the best, more active, and best content site for glitching in a certain game, now when someone decided to take my content and put it on their own site, with their copyright, then frame us for stealing it (even though our post date is a month or so ahead) I ban them so they don't do it again.
Title: Re: Public Banlist
Post by: elfishtroll on August 07, 2007, 07:05:14 PM
wah wah wah

took a look at "facepunch"..

scanned through the "banlist"

most of the members were around 14, most of the IQ the same. lol

(to be totally accurate, it also listed suspensions, 24 hrs, 3 days etc)

@GC, to slap those content stealing bastards, you can make matters a little more difficult for them:!!a
replace blank spaces in the output buffer with highorder characters: they will still look like spaces on the screen, but if you cut and paste off the screen, you get all this stuff that looks like garbage in the buffer.

Reformat the posts with a 3 3 2 1 2 2 repeating pad, meaning, spaces in a post (between words) are replaced with 3 spaces, next time with 3, then 2, 1,2 and so on. This effectively creates a watermark within the text, and allows you to catch the plagiarists in the act (with proof)~a

..
it totally validated my original assertion that the 'banlist' is the hallmark of punkass sites :D

one feature it had that I will clone is the member profile list
http://forums.facepunchstudios.com/member.php?u=103801#

I didnt sign up to the site ('cause I'm not a punkass) but I guess it works where a member can click on a pull down and select one of the attributes to 'tag' a member with (Kinda like karma on steroids!)

I'll put THAT on a to-do list, should take about a day (if I use Javascript or flash) maybe a week to make it functional crossbrowser and cellphone/wap  w/o Js
Title: Re: Public Banlist
Post by: DJ Biscuit on August 07, 2007, 08:55:25 PM
Quote from: elfishtroll on August 07, 2007, 07:05:14 PM

(to be totally accurate, it also listed suspensions, 24 hrs, 3 days etc)


GC's Banlist has that....
Title: Re: Public Banlist
Post by: TheWrath! on August 15, 2007, 07:05:35 PM
really stupid quesetion i have this but i would like to change the action name how do i do that?
Title: Re: Public Banlist
Post by: metallica48423 on August 15, 2007, 07:17:05 PM
pull up the main index.php of SMF, find it in the ActionArray, and change it. 
Title: Re: Public Banlist
Post by: TheWrath! on August 15, 2007, 08:10:22 PM
thank you!