The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Image Status Checker / Dead Image Finder Details »» | |||||||||||||||||||||||||
Note this hack works with vb3.6
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
Bad Things It's far from a perfect hack, there are many things to do. Please be aware that I won't be doing them, but if anyone else wants a crack, feel free!
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 ..." A [url] link checker can be found here Installation Upload imagestatuscheck.php to your vB directory. Install the product, set overwrite to yes. Customizing
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 1.02 - 27th December 06 Show Your Support
|
Comments |
#2
|
|||
|
|||
Looks like a very well made hack, and i dont mean to offend you but im a bit unsure of its use. Once you've found the posts mssing images, then what?
Is it possible to include a feature that scans threads for off-site linked images and then backs the images up into a folder on your server. That way you can restore them when the img uploader sites decide to delete them. |
#3
|
|||
|
|||
Quote:
Quote:
|
#4
|
|||
|
|||
is there anyway this can be done for all links? Thats what i am looking for
|
#5
|
|||
|
|||
I'll probably knock one out for [url] at some point, the code won't be too different.
|
#6
|
|||
|
|||
Quote:
|
#7
|
|||
|
|||
Looks cool, I'd install if it'd replace all dead images with an image stored on your server which looks like "3rd party image not hosted anymore." etc. Great work though
|
#8
|
||||
|
||||
Get an error on scan. Found the offending post, but you might want to account for the odd duck who tries to post weird urls.
Also got an error when someone said [img] in their post and then later put an existing [img]http://img.jp[*/img], it tried to insert the following into the database: Code:
in their post and then later put an existing [img]http://img.jp[*/img] Code:
Database error in vBulletin 3.6.0: Invalid SQL: INSERT INTO vb3_imagestatus VALUES (NULL, 87423, 1510, 'javascript:ShowLarge('/path/to/image.jpg');', ''); MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '');', '')' at line 1 Code:
Invalid SQL: INSERT INTO vb3_imagestatus VALUES (NULL, 99805, 63, 'http://fakemeit'sprobablyaredXyoudope.jpg', ''); MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'sprobablyaredXyoudope.jpg', '')' at line 1 |
#9
|
|||
|
|||
Jay... : yes
ntock : good suggestion.. though I'd rather leave the original url in so it can be corrected by the post owner if it's just been moved. Blackjack : Looks like I forgot to escape the string to account for those dodgy urls. A job for the next release. |
#10
|
||||
|
||||
There was also another issue, I edited my post.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|