PDA

View Full Version : Banned Users List + Auto-Post Editing


afterfl0w
06-27-2006, 10:00 PM
First hack released here, it's pretty useful too! I put a lot of work into it, I hope you guys will enjoy it :D

Afterfl0w's Banned Users List + Auto-Post Editing

Banned List?

I'm sure you all have a basic idea of what a ban list is and does. But for those who don't, this is a script that will be uploaded to your forum, and when you view it, it will display all current and past bans. This banlist LOGS all bans in a table, to set a permanent example for new users.

The banlsit is useful for showing new users exact reasons for getting punished, ect.

http://img261.imageshack.us/img261/3905/banlistmain5ro.jpg

Auto Post Editing?

This is a completely new feature that I haven't seen before. What this does, is if the user is banned straight from their post, via a link (shown below):

http://img303.imageshack.us/img303/9638/banuserlink8jw.jpg


If they are banned via this link, it will auto-edit their post with a message saying "User banned for this post: [reason]". The screenshot below differs a tad because it has been customized for that forum:

http://img287.imageshack.us/img287/7517/postscreen9dz.jpg


This is amazing. How Do I Install?

Easy. Download the attachted Zip, upload files and follow the file edit directions in the install.txt.

Afterwards, you must edit the banlist_banbit template to accomidate your needs for the bantype. Eg:

<if condition="$banned['bannedpost']"><a href="$banned[bannedpost]"><if condition="$banned[type] == '8'">TIMEOUT</if><if condition="$banned[type] == '20'">PERMABAN</if></a><else /><if condition="$banned[type] == '8'">TIMEOUT</if><if condition="$banned[type] == '20'">PERMABAN</if></if>

You can edit the texts PERMABAN and TIMEOUT, and also the usergroupIDs of your banned usergroups. Do not edit the other parts, otherwise there will be links to the post even if there isn't one.


Questions? Support?

You can contact me on MSN at: flamethrower_stickattack@hotmail.com
I don't mind helping you customize the hack, since it could be a challenge for people newer to PHP. Just add me to MSN or E-Mail me and tell me you're from vB.org

Posting here would be a better idea, but if you prefer MSN or E-mail, feel free.


I'm not going to post a link forcing you to install this hack, but installs are greatly appreciated :D


Have a nice day all! :banana:

-afterfl0w

afterfl0w
06-28-2006, 09:16 PM
+ reserved

blockbusted
06-28-2006, 09:20 PM
First post. Looks great! I'm installing!

afterfl0w
06-29-2006, 02:50 AM
Thanks :)

I'll have an update within a few days to add sorting functions (sort by: username, userid, banid, bandate, liftdate, bantype)

Zia
06-29-2006, 09:00 AM
:) idea is really nice...

can u add 'Miserable User" list too ?

PabloAM
06-29-2006, 02:40 PM
on is banning.php file?

bashy
06-29-2006, 03:22 PM
Hi

Didnt work for me :(
I get a blank page when i goto showbans.php

Any ideas please?

Zowners
06-29-2006, 03:22 PM
Does this also show banned users on the forum home? EG like the one here (http://forums.livingwithstyle.com/) - scroll and look for the Event Log.

afterfl0w
06-29-2006, 05:10 PM
Hi

Didnt work for me :(
I get a blank page when i goto showbans.php

Any ideas please?

Are you sure you installed the templates properly? Correct names and everything?

idea is really nice...

can u add 'Miserable User" list too ?

If you add edit the usergroup to make it a 'BANNED USERGROUP' then it'll show up on the list. You'll have to add it to the types, though.

Does this also show banned users on the forum home? EG like the one here - scroll and look for the Event Log.

Not really hard to do. Just make a forum saying "Event Log" and make it a link to showbans.php :)

on is banning.php file?

Please re-word your question :D

bashy
06-29-2006, 05:12 PM
Yes m8, as far as i know, I always copyu an paste so cant go wrong there :)

afterfl0w
06-29-2006, 05:19 PM
Yes m8, as far as i know, I always copyu an paste so cant go wrong there :)

Please check the names to be 100% sure. Also, have you banned anyone yet?

Old bans will NOT show up on the list, though I'm working on a utility to have it do so.

bashy
06-29-2006, 05:31 PM
OK its now working, dont ask i dont know but its working lol...
I already have members banned, is there away to import them to your new list?

Snake
06-29-2006, 06:00 PM
Thank you very much! That's the best ban lists hack ever! :)

afterfl0w
06-29-2006, 07:16 PM
I already have members banned, is there away to import them to your new list?

I'm working on a script to do so.

Zowners
06-29-2006, 07:25 PM
I'm working on a script to do so.

Cool. I think I'm going to wait for the updates before I install this hack on my site :P

ChrisTech
06-29-2006, 08:13 PM
Really interesting and cool mod/hack. Waiting for those updates before I install it. *subscribes to post, as a reminder.

Tyegurl
06-29-2006, 11:59 PM
okay i LOVE this idea!!

i run a forum for game servers hosted by my members...now when they ban someone from their server i would like them to have the capability to create their banned user's name and enter it in the banned user's list....

can you think of a way of doing this so i don't have to make them all admins lol....i don't mind the work myself but i am not always on...

no big deal just thought i would throw it out there and see if there was a way to do it somehow....like maybe in the mod panel or in the mod/admin thread menu....

Tyegurl
06-30-2006, 12:01 AM
i am installing and crossing my fingers it will work with 3.6.0 beta 3

PabloAM
06-30-2006, 01:14 AM
Please re-word your question :D

Sorry, Where is banning.php file?

Thx

afterfl0w
06-30-2006, 01:40 AM
Sorry, Where is banning.php file?

Thx

root/modcp/banning.php :)

shoupz
06-30-2006, 06:41 AM
this looks really good, im going to install this tonight. *Clicks Install*

Zowners
07-02-2006, 11:46 AM
Is there an ETA on when these updates are going to be finished?

I hope all is going well so far :)

Zowners
07-21-2006, 10:14 PM
Is it possible to get this hack to look like this sites ban log - http://forums.livingwithstyle.com - scroll down to "event Log." I think it's cool how you can see who the last member who was banned is shown on the forum home page. If this ban log could be tweaked to show that on the forum home page, I would be very greatful.

BTW how are the updates coming along?

SportsZone
08-04-2006, 06:41 AM
I have installed this hack and am eagerly awaiting the updates :D

SportsZone
08-05-2006, 02:40 PM
I was testing this ahck to see whether it will work on vB3.6 and I got this error :/


Database error in vBulletin 3.6.0:

Invalid SQL:

INSERT INTO testbed_phrase
(languageid, varname, text, phrasetypeid)
VALUES
(-1, 'banlist_reasonerror', 'You Must Enter A Reason!', 9000),
(-1, 'banlist_bannedby', 'Banned By', 1),
(-1, 'banlist_datebanned', 'Ban Date', 1),
(-1, 'banlist_bannedpost', 'Banned Post', 1),
(-1, 'banlist_reason', 'Reason', 1),
(-1, 'banlist_releasedate', 'Release Date', 1),
(-1, 'banlist_banlist', 'Most Recent Bannings', 1),
(-1, 'banlist_link', 'Link', 1),
(-1, 'banlist_nolink', 'No Link', 1),
(-1, 'banlist_description', 'Here is a list of the last 30 banned members and the reason why they were banned. Following the forum rules will insure that your name will not end up on this list.', 1);

MySQL Error : Unknown column 'phrasetypeid' in 'field list'
Error Number : 1054
Date : Saturday, August 5th 2006 @ 10:38:49 AM
Script : http://www.sportszonefanatics.com/testbed/admincp/install_showbans.php?do=stepthree
Referrer : http://www.sportszonefanatics.com/testbed/admincp/install_showbans.php?do=steptwo
IP Address :
Username : Matt
Classname : vB_Database


How can I fix this?

Jesus05uk
08-07-2006, 01:47 PM
I was testing this ahck to see whether it will work on vB3.6 and I got this error :/



How can I fix this?

Me Too. :hurt:

afterfl0w
08-12-2006, 05:57 AM
Very sorry for the massive massive delay, the update is coming either later tonight or early tomorrow :D

It's been re-written, optimized and MUCH easier to install! It's also vB 3.6 compatible!

Hope you all haven't given up on me! Check the forums later!

-afterfl0w

afterfl0w
08-12-2006, 09:46 PM
Version 2 Released!

https://vborg.vbsupport.ru/showthread.php?p=1050773