The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Link / URL Status Checker Details »» | |||||||||||||||||||||||||
What does this do?
For anyone who has seen or got my Image Status Checker hack, this is exactly the same, but works on links ([url=], [url]) instead. Basically it scans all your posts, extracts all the url tags, and scans each of the images to see if they're still valid. The rest of this is basically the description of that hack reworded Why? I had a look at all the links on my site and was alarmed at how many were now gone. Since the only way you can check the links on your board is to manually read every post and click them, 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 url 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, linkstatuscheck.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 The code to the Image Status Check hack is very similar, so I pretty much copy pasted and adapted it. It is a little bigger due to handling the [url=] "option", but you may find references to images. Let me know if you do. It will work on 3.6 and 3.5, though you'll need to remove the "executionorder=" from the .xml file to get it working on 3.5 Installation Upload linkstatuscheck.php to your vB directory. Install the product, set overwrite to yes. Customizing
Screenies Exactly the same as the Image Status Checker, only with URL links rather than image links. What? I'm feeling lazy. Show Your Support
|
Comments |
#22
|
||||
|
||||
Can it work with the link for host free like rapidshare or megaupload? How can I know the file is deleted or not yet?
|
#23
|
|||
|
|||
Probably not, since when you go to file hosting sites, you're given a html page where you click to download the file. I would imagine the script could be made to "read" the page and follow the link, but it's not something I'll be doing.
|
#24
|
||||
|
||||
Thank, I think the you should make the mod can check both url and img link. The Mod will have 2 option to check URL or IMG link. That will be usefull.
|
#25
|
|||
|
|||
Updated to 1.01
- Browser: Corrected bug that said "you haven't scanned" even if you have. This only affects people with table prefixes. To upgrade, reupload the /linksstatuscheck.php file. The product xml hasn't changed so there's no need for a re-import. |
#26
|
||||
|
||||
nice hack but as u said that it search for url tag ok but in my site i dont use code tag does this hack check for it??????????
|
#27
|
|||
|
|||
same questions,
can i search for [code] or something for another bbcode ? thx |
#28
|
|||
|
|||
No. [url] only
|
#29
|
|||
|
|||
i got this error:
MySQL Error : Unknown column 'executionorder' in 'field list' |
#30
|
|||
|
|||
3.5 instructions:
Quote:
|
#31
|
||||
|
||||
I like the idea, but what r u going to do about it? I mean; u can't delete thousands of posts do u?
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|