![]() |
Link / URL Status Checker
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. |
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? |
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. |
Thanks, this sounds like a very helpful add-on! ;)
|
looks like all my links are of unknown any ideas?
|
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. Quote:
|
allow_url_fopen is on just checked
Quote:
|
out of 3000+ links 3 are dead about 5 or 6 are working and the rest unknown!!
|
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. |
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 |
If someone makes a post with a url in, and they make another post with the same url in, then there's no point pinging the site twice. So it'll ping it once, and any occurance after that will be labelled as already dealt with.
It also happens if you manually restart pages, or start scanning from an id other than -1 |
Thats strange... cause i dont get it on the 1st page but all the rest i do!
Quote:
|
Working fine here , thanks :)
Does the IMAGE checker work on 3.6 ? |
Ah well, must be my site not wanting to play ball with both checkers, thanks anyway, but have removed now, the idea was there,, thanks again :)
|
Quote:
|
Why dont you check this into beta if there are so many issues?
|
This looks good!
Is it possible to query to width of the image as well? Thanks! Barry |
Quote:
This is a "I use it, it works for me, others may as well use it if it works for them" hack. Quote:
I'm afraid I probably won't be including that. I'm not sure if vbulletin holds that info in any case. May I ask why you'd want it to, there might be another way to do it... |
Thanks ,
Install click |
This actually looks very handy. nice work.
|
Can it work with the link for host free like rapidshare or megaupload? How can I know the file is deleted or not yet?
|
Quote:
|
Thank, :D 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.
|
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. |
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??????????
|
same questions,
can i search for [code] or something for another bbcode ? thx |
No. [url] only
|
i got this error:
MySQL Error : Unknown column 'executionorder' in 'field list' |
3.5 instructions:
Quote:
|
I like the idea, but what r u going to do about it? I mean; u can't delete thousands of posts do u?
|
Whatever you like. The mod is designed to find the dead links for you as information. It's up to you what you do with it.
My suggestion would be to show the users the output screen and let them either update the link or delete the post. |
um..can you make it check everything that start with http:// ?
cuz in my forum , all links are under [code ] tags , so they dont have [url ] tags. thanks |
Quote:
|
hmm.... when i run maintenance -> Link status checker I've got something like that:
Quote:
|
Please release one for 3.7
|
is it possible to make this only for rapidshare?
|
Installed.. Ok . I ran the query from my admin panel..
Where exactly in my forum do i now check these links ?? My mods are supposed to be able to do this too.. but cant find and menu of any sort.. thanx |
Does this work for 3.7.2 ??
|
<i>thank you...</i>
|
As other users have posted, I am also getting the 'duplicate / dealt with" message for all images except those on the first page (when updating the counters in the admincp). This ought to be extremely easy to fix if the creator of this mod can upload a new version. In the meantime, this basically makes the script worthless without the fix. I am running vB 3.8.0 FYI.
|
All times are GMT. The time now is 05:49 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|