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 |
#2
|
|||
|
|||
Hi
Great idea thanks, but in the Search for text area, what do i actually input there? I cracked it now, Ya have to run the checker in the Maintenabce section in the update countser section Then you use the browser part, is that correct? |
#3
|
|||
|
|||
Thanks,
Its Very Useful for Me, Because My Site Have Lots n Lots of Images, Shared by Members. Question / Suggestion: (for future update) Is there any chance to check image / link status automatically and if a image link is dead then system auto send a PM to user who has the post with dead link? Thanks again. |
#4
|
||||
|
||||
Thanks, this sounds like a very helpful add-on!
|
#5
|
|||
|
|||
looks like all my links are of unknown any ideas?
|
#6
|
|||
|
|||
Quote:
Quote:
Besides, auto PMing would add a lot of strain to the server, and people can just look at the linkstatuscheck.php if they want to see which of their posts are in trouble. Well, assuming you know at least one of them actually works, I'd guess the server can't communicate with the remote sites. Perhaps fopen is disabled in php? |
#7
|
|||
|
|||
allow_url_fopen is on just checked
|
#8
|
|||
|
|||
out of 3000+ links 3 are dead about 5 or 6 are working and the rest unknown!!
|
#9
|
|||
|
|||
I'm afraid I don't know then, I don't really know php's local/remote file commands all that well.
I can tell you it uses fsockopen to ping the server, then fwrite, fread to communicate. |
#10
|
|||
|
|||
Well, i just installed ya image one as well and get the same, 99% of unknown status!
What does duplicate / dealt with mean? i get a lot of them Also in the update counters, the 1st page seems to work well, all the rest give the duplicate / dealt |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|