Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
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.
Attachments
118889-Show_Banned_1.0.zip (0 Bytes, 37 downloads)

Sponsored Links
Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Offline
Joined: May 2003
Posts: 1,068
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.

Joined: Jun 2000
Posts: 190
Enthusiast
Enthusiast
Joined: Jun 2000
Posts: 190
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?


Artificial Intelligence is no match for natural stupidity!
Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
Do you have a big, big database with many banned?

Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
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.

Sponsored Links
Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
>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.

Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
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 :-/

Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
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?

Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
>When you say it takes long, approx how many seconds? Surely not more than 10?

1-2 Minutes.

Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
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

Sponsored Links
Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
>Umm, wow. How many posts in your database? How many users?

1,182,185 posts.
23,513 users
1,045 banned usernames and IPs

Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
Well that certainly explains everything


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)