vBulletin Modifications

Administrative and Maintenance Tools - Image Status Checker / Dead Image Finder

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > vBulletin Database System > vBulletin 3.5 / 3.6 Hack Releases

Reply
 
Thread Tools Search this Thread
Download Options
You Must Register First
To Download This Modification

Bugs
No bugs found in the system. If you have found a bug, please report a bug here
Submit A Bug | View All Bugs

Advertisement
  
Not Supported
[vB 3.5.5] Administrative and Maintenance Tools - Image Status Checker / Dead Image Finder (95)
Released: 08-13-2006, 03:07 PM
Modification Information:
bairy's Avatar Author: bairy
Last Online: 12-27-2006
Hack Version: 1.01 Installer Included: 1 Additional queries added to database: 1
New Templates: 3 Template Edits: 0 File Edits: 0
New Files: 1 New Phrases: lots Installation Time (In Minutes): < 3

vB 3.6.0 Compatible!
Plugin
What does this do?
It scans all your posts, extracts all the img tags, and scans each of the images to see if they're still valid.


Why?
I had a look at all the images on my site and was alarmed at how many were now gone - deleted from photobucket accounts etc. Since the only way you can check the images on your board is to manually read every post, I decided to come up with a better way... and this is it.


How does it work?
The first part: In the AdminCP, under Maintenance and Update Counters... right at the bottom is this hack. It works by looking up every img tag, then requesting the image, and reading the http status code. So code 200 means 'image ok', 404/410 means 'image gone' etc. That then gets stored in a database table. A server has 15 seconds to reply to the request or the status is labelled as "Unknown"
The second part: The browsing element, imagestatuscheck.php (original filename huh!). This allows you to browse all the images found in the last scan using some powerful filtering (statuses to display, search, order by).


Hack features
  • General
  • Fully phrased.
  • Templates are grouped. Who's online handled.
  • Part 1 - Admin
  • Reads the post table, scans all the [img] tags on demand and records the actual http status code returned.
  • If it gets stuck during the scan, you can restart the section it's currently doing.
  • If an image appears in more than one post, it's only checked once.
  • Start from, per page and timeout options for scanning.
  • Part 2 - Browser
  • Status codes are put into one of three descriptions for simplicity: Working, Dead, Unknown. Unknown is if the server didn't respond or similar - on the basis that a temporary timeout doesn't necessarily mean the image has gone.
  • In the browser, image urls are force wrapped. Unless people post using all caps, you have a low screen resolution, or the font size is big, the table should never stretch.
  • Filtering allows you to show just the working/dead/unknown images, and there's a search facility for a variety of fields.
  • Convenient link to edit the post (if a dead link is found). This works by can_moderate - edit links only appear for people who own the post, or can moderate the forum it's in.
  • Works by canview - if someone can't view a particular forum (e.g. staff forum) normally, they can't view the images within it.
  • Uses css for common stuff to reduce the size of the outputted pages.


Bad Things / To-do
It's far from a perfect hack, there are many things to do. Please be aware that these things may take a while / I may never do them. It depends on demand and whether I can allocate time.
  • Only supports http://, not https://
  • Can only handle replies like: HTTP 1.x 200 as the first line.
  • Only supports [img] tags. If you have HTML turned on in any forums it won't see <img src=> images.
  • Biggie: There's no way to update a single post or image without a full re-scan. That means if someone edits their post to update or remove a dead link, it will not change on the browser until a full re-scan is done. I did play with various update methods but most are flawed in one way or another. A planned feature will be to update the table dynamically whenever a post is made, edited or deleted, and on demand using a link.
  • No cron job at the moment.
  • No session variables. (People without cookies will be logged out a lot).
  • ... Lots ... (being a perfectionist sucks)


Footnotes
Originally I planned to throw something together quickly just for me to use but it turned into a "I may as well make a nice interface... oh and I may as well put some filtering controls in and I ..."
I don't want to spend time making an uber-hack if it's not going to be popular so I'm releasing it as is for now.

A [url] link checker may be on the horizon since it uses a similar concept.

It appears to work on 3.6 though I'm developing it on 3.5.5


Installation
Upload imagestatuscheck.php to your vB directory. Install the product, set overwrite to yes.


Customizing
  • By default it's set to only allow moderators, super-moderators and administrators to view the browser. This can be changed with the setting in AdminCP > vB Options.
  • The phrases all start with ics_ if you want to change them.
  • You can add a link to imagestatuschecker.php on the navbar (or anywhere) if you want your members to be able to view it.


Screenies
Shot 1 is AdminCP during scan
Shot 2 is a typical Browser section output
Shot 3 is no results output


Changelog
See attached file for specific changes.
1.00 - 16th August 06
1.01 - 17th August 06



Screenshots
Screenshots
File Type: png 1.png (27.7 KB, 387 views)
File Type: png 2.png (83.6 KB, 372 views)
File Type: png 3.png (16.7 KB, 276 views)


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Add a Comment!
Old 08-13-2006, 03:51 PM   #2
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

*thumbs up * Great addition and will save me loads of time on my gfx site.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-13-2006, 04:54 PM   #3
vB Lover
takiye's Avatar
Join Date: Aug 2006
takiye is on a distinguished road

Default

Thank you.
But.. can u tell me a reason for checking Image Status? What can we do if we know it was dead?
Another thing: To-do list is too long...




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-13-2006, 05:26 PM   #4
Coder
bairy's Avatar
Join Date: Jun 2006
Real Name: Chris
Location: Birmingham, UK
bairy is on a distinguished road

Default

Edit the post to update the image link or remove it.

And I know it is.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-17-2006, 04:34 PM   #5
Coder
bairy's Avatar
Join Date: Jun 2006
Real Name: Chris
Location: Birmingham, UK
bairy is on a distinguished road

Default

Updated to 1.01 to clear up the early bugs and improve a few things:

- Misc: Install code creates empty db table
- Misc: Corrected silly oversight to reduce db errors (escaping image urls)
- Scanner: Added options to maintenance section
- Scanner: Rewrote quite a bit of the code to work with the new options
- Browser: Added "you haven't scanned yet" warning if the table is missing (unlikely but best to be handled)
- Browser: isc_no_results template wasn't included in the 1.00 product for some reason. It is now and is used when there are no results
- Browser: Added a perpage, lower limit 5, upper limit 100. Outside these and it defaults to 30


Reupload imagestatuscheck.php. Reimport the product xml with overwrite set to yes.

Last edited by bairy; 08-17-2006 at 04:38 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-19-2006, 01:54 AM   #6
www.smokinchevy.com
Join Date: Aug 2006
Real Name: Teddy
osso12 is on a distinguished road

Question

I installed it.
Im the admin, left the image options to default.
Everytime I run a scan, and then check http://www.smokinchevy.com/imagestatuscheck.php
I get this everytime:
You haven't run the scanner yet. You will find it in the Admin Control Panel under Maintainance -> Update Counters, at the bottom.
Non-admins don't see this message.
Put a link on navbar, and ran it as a regular user and only says, nothing to show yet, or something similar.
I am running 3.6.2
I need this to work, or i need to uninstall it.
Looks like a cool hack though..




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-06-2006, 05:15 AM   #7
vB Newbie
Join Date: Nov 2006
veto is on a distinguished road

Default

thx & downloading




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-14-2007, 12:42 PM   #8
vB Newbie
Join Date: Aug 2005
Power is on a distinguished road

Default

Don't work for me

Quote:
The first part: In the AdminCP, under Maintenance and Update Counters... right at the bottom is this hack
after that nothing happens. I have white screen on right side and thats all. :/




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-29-2007, 04:02 PM   #9
vB Newbie
Join Date: Dec 2007
the wolf is on a distinguished road

Default

yeah not working for me either




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TV ftp status checker (auto/manual) real-one vBulletin Modification Requests 0 10-16-2004 09:39 PM
pub status checker riderzzz vBulletin Modification Requests 6 06-17-2004 05:34 PM


All times are GMT -3. The time now is 11:05 PM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)