Previous Thread
Next Thread
Print Thread
Rate Thread
Finished-[6.3-6.4] Show Banned 1.0 #278379
08/22/2004 6:28 AM
08/22/2004 6:28 AM
Joined: Sep 2003
Posts: 524
Twisty Offline OP
Code Monkey
Twisty  Offline OP
Code Monkey

Joined: Sep 2003
Posts: 524
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 Files
Sponsored Links
Re: Finished-[6.3] Show Banned 1.0 [Re: smoknz28] #278380
08/22/2004 6:58 AM
08/22/2004 6:58 AM
Joined: May 2003
Posts: 1,109
E
ericgtr Offline
Junior Member
ericgtr  Offline
Junior Member
E

Joined: May 2003
Posts: 1,109
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.

Re: Finished-[6.3-6.4] Show Banned 1.0 [Re: smoknz28] #278381
08/26/2004 2:10 PM
08/26/2004 2:10 PM
Joined: Jun 2000
Posts: 345
NH, USA
Pilgrim Offline
Enthusiast
Pilgrim  Offline
Enthusiast

Joined: Jun 2000
Posts: 345
NH, USA
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!
Re: Finished-[6.3-6.4] Show Banned 1.0 [Re: Tachyon] #278382
08/26/2004 2:19 PM
08/26/2004 2:19 PM
Joined: May 2001
Posts: 562
Austria
A
Anno Offline
Code Monkey
Anno  Offline
Code Monkey
A

Joined: May 2001
Posts: 562
Austria
Do you have a big, big database with many banned?

Re: Finished-[6.3-6.4] Show Banned 1.0 [Re: Tachyon] #278383
08/26/2004 2:59 PM
08/26/2004 2:59 PM
Joined: Sep 2003
Posts: 524
Twisty Offline OP
Code Monkey
Twisty  Offline OP
Code Monkey

Joined: Sep 2003
Posts: 524
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
Re: Finished-[6.3-6.4] Show Banned 1.0 [Re: smoknz28] #278384
08/26/2004 4:45 PM
08/26/2004 4:45 PM
Joined: May 2001
Posts: 562
Austria
A
Anno Offline
Code Monkey
Anno  Offline
Code Monkey
A

Joined: May 2001
Posts: 562
Austria
>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.

Re: Finished-[6.3-6.4] Show Banned 1.0 [Re: Tachyon] #278385
08/26/2004 5:14 PM
08/26/2004 5:14 PM
Joined: Sep 2003
Posts: 524
Twisty Offline OP
Code Monkey
Twisty  Offline OP
Code Monkey

Joined: Sep 2003
Posts: 524
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 :-/

Re: Finished-[6.3-6.4] Show Banned 1.0 [Re: domain123] #278386
08/26/2004 9:44 PM
08/26/2004 9:44 PM
Joined: Sep 2003
Posts: 524
Twisty Offline OP
Code Monkey
Twisty  Offline OP
Code Monkey

Joined: Sep 2003
Posts: 524
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?

Re: Finished-[6.3-6.4] Show Banned 1.0 [Re: smoknz28] #278387
08/27/2004 1:36 AM
08/27/2004 1:36 AM
Joined: May 2001
Posts: 562
Austria
A
Anno Offline
Code Monkey
Anno  Offline
Code Monkey
A

Joined: May 2001
Posts: 562
Austria
>When you say it takes long, approx how many seconds? Surely not more than 10?

1-2 Minutes.

Re: Finished-[6.3-6.4] Show Banned 1.0 [Re: domain123] #278388
08/27/2004 2:34 AM
08/27/2004 2:34 AM
Joined: Sep 2003
Posts: 524
Twisty Offline OP
Code Monkey
Twisty  Offline OP
Code Monkey

Joined: Sep 2003
Posts: 524
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
Re: Finished-[6.3-6.4] Show Banned 1.0 [Re: smoknz28] #278389
08/27/2004 3:00 AM
08/27/2004 3:00 AM
Joined: May 2001
Posts: 562
Austria
A
Anno Offline
Code Monkey
Anno  Offline
Code Monkey
A

Joined: May 2001
Posts: 562
Austria
>Umm, wow. How many posts in your database? How many users?

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

Re: Finished-[6.3-6.4] Show Banned 1.0 [Re: domain123] #278390
08/27/2004 3:19 AM
08/27/2004 3:19 AM
Joined: Sep 2003
Posts: 524
Twisty Offline OP
Code Monkey
Twisty  Offline OP
Code Monkey

Joined: Sep 2003
Posts: 524
Well that certainly explains everything


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
· Blue Host
· Interserver.net
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,947
Joined: January 2000
Show All Member Profiles 
Forum Statistics
Forums64
Topics37,470
Posts293,533
Members13,801
Most Online1,498
Mar 17th, 2017
Top Posters(All Time)
AllenAyres 25,587
JoshPet 11,330
Rick 8,373
LK 7,396
Lord Dexter 6,503
Gizmo 5,947
Greg Hard 5,533
Top Posters(30 Days)
isaac 10
Zarzal 3
Today's Statistics
Currently Online 893
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 23
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2019 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.0
(Release build 20190122.dev)
PHP: 5.4.45 Page Time: 0.040s Queries: 16 (0.012s) Memory: 3.2562 MB (Peak: 3.4592 MB) Data Comp: Zlib Server Time: 2019-01-24 00:05:00 UTC