UBB.Dev
Posted By: Twisty Finished-[6.3-6.4] Show Banned 1.0 - 08/22/2004 2:28 PM
Mod Name / Version: Show Banned 1.0

Description: This is an admin panel add-on which concisely displays information about:

1) All Banned Users (username, registration IP, all post IP's by banned user, reason for ban)

2) All Banned IP's (IP, hostname, all users who have posted under the banned IP or IP range, reason for ban).

It is available to both moderators and admins.

Working Under: UBB.Threads 6.3-6.4

Mod Status: Finished

Any pre-requisites:

Author(s): Twisty

Date: 08/22/04

Credits:

Files Altered: admin/menu.php

New Files: admin/showbanned.php

Database Altered: no

Info/Instructions: (see attachment)


Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attached File
118889-Show_Banned_1.0.zip  (37 downloads)
Posted By: ericgtr Re: Finished-[6.3] Show Banned 1.0 - 08/22/2004 2:58 PM
Excellent mod Twisty, very handy to be able to click a link and have a list of who/what/where and IP's that have been banned.
Posted By: Pilgrim Re: Finished-[6.3-6.4] Show Banned 1.0 - 08/26/2004 10:10 PM
Just some feedback on this hack. Using 6.4.1

Implementation was easy enough but it isn't working for me. No internal errors are displayed, but when "showbanned.php" tries to open, it stalls. If I wait long enough, I get a "Bad Response From Server" error.

Any ideas?
Posted By: Anno Re: Finished-[6.3-6.4] Show Banned 1.0 - 08/26/2004 10:19 PM
Do you have a big, big database with many banned?
Posted By: Twisty Re: Finished-[6.3-6.4] Show Banned 1.0 - 08/26/2004 10:59 PM
Did you check to see if the file is CHMOD'd to at least 644?

If it isn't that, then I'm really not sure. Nobody else has reported a problem using it.

Hmm, I don't think having a large database alone would cause any issues either. The queries would just take longer.
Posted By: Anno Re: Finished-[6.3-6.4] Show Banned 1.0 - 08/27/2004 12:45 AM
>The queries would just take longer.

Could take so long that the script reaches the maximum execution time?

It takes very long on our site.
Posted By: Twisty Re: Finished-[6.3-6.4] Show Banned 1.0 - 08/27/2004 1:14 AM
Alright, try adding this to the beginning of the showbanned.php script and report back your results...

Code
// Prevent timeouts for large databases <br />   set_time_limit(0); <br />   ini_set("max_execution_time",0);  


If it still doesn't work, then your host may be overriding these settings with httpd.conf, or it's another issue entirely :-/
Posted By: Twisty Re: Finished-[6.3-6.4] Show Banned 1.0 - 08/27/2004 5:44 AM
It's almost instant for me but my database isn't massive.

When you say it takes long, approx how many seconds? Surely not more than 10?
Posted By: Anno Re: Finished-[6.3-6.4] Show Banned 1.0 - 08/27/2004 9:36 AM
>When you say it takes long, approx how many seconds? Surely not more than 10?

1-2 Minutes.
Posted By: Twisty Re: Finished-[6.3-6.4] Show Banned 1.0 - 08/27/2004 10:34 AM
Umm, wow. How many posts in your database? How many users?

Like I mentioned, it's pretty much instantaneous for me.

2825 Members
3229 Posts
Posted By: Anno Re: Finished-[6.3-6.4] Show Banned 1.0 - 08/27/2004 11:00 AM
>Umm, wow. How many posts in your database? How many users?

1,182,185 posts.
23,513 users
1,045 banned usernames and IPs
Posted By: Twisty Re: Finished-[6.3-6.4] Show Banned 1.0 - 08/27/2004 11:19 AM
Well that certainly explains everything
© UBB.Developers