vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Image Status Checker / Dead Image Finder (https://vborg.vbsupport.ru/showthread.php?t=124113)

Mr Chad 08-16-2006 07:03 PM

wouldnt this use alot of bandwidth?

rmxs 08-16-2006 07:03 PM

Thanks installed :)

rmxs 08-16-2006 07:07 PM

OK i try it it works byt i get many worning links with Unknown status

Y this happents?

Can you tell me how can i add it also to navbar for moder admin smoder groups only??
i mean if there is no 5,6,7 dont show the link

EDIT:

Ok i made it its easy LOL

<if condition="$bbuserinfo[usergroupid] == 6">

<td class="vbmenu_control"><a href="imagestatuscheck.php">DIF</a></td>

</if>

bairy 08-16-2006 07:51 PM

Chad : Each image is requested one by one and only the first 12 characters of the return are read, as they are the ones with the status code in them. After that the connection is closed. Theoretically it will use output about 200 bytes and input 12 bytes per request. Practically I don't know how web servers work, but I suspect once php has sent a close to the other server the transfer will stop. So no, not much bandwidth

ForYou 08-16-2006 08:23 PM

Hello ,

there is error ,

Database error in vBulletin 3.6.0:

Invalid SQL:
INSERT INTO imagestatus VALUES (NULL, 172959, 3498, 'http://www.dohaeye.com/lyrics/3'air%20elnass.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 'air%20elnass.jpg', '')' at line 1
Error Number : 1064
Date : Wednesday, August 16th 2006 @ 09:21:55 PM
Script : http://www.dha.net/moda/admincp/misc...tus&cis=findem
Referrer : http://www.dha.net/moda/admincp/misc...k_image_status
IP Address : 213.6.1.100
Username : Admin
Classname : vb_database

bairy 08-16-2006 10:33 PM

The sql errors are because the image url isn't escaped. Silly oversight. I'll probably get an updated product out tomorrow along with a couple of other changes.

EasyTarget 08-16-2006 10:58 PM

on a related note, what about scanning all posts for img tags, rehosting all remote images at a local location and editting the posts with the new url so that you don't have to worry about the images going away?

bairy 08-17-2006 06:42 AM

Quote:

Originally Posted by rmxs
OK i try it it works byt i get many worning links with Unknown status

Y this happents?

Sorry. Missed this question.
Unknown generally means one of two things:
1. Server didn't reply within 15 seconds
2. Server didn't send a nice http header back


Quote:

Originally Posted by EasyTarget
on a related note, what about scanning all posts for img tags, rehosting all remote images at a local location and editting the posts with the new url so that you don't have to worry about the images going away?

Copyright issues. The idea is quite good though. I might include a way to allow you to manually do that.

rmxs 08-17-2006 02:11 PM

Thanks bairy

Mr Chad 08-17-2006 05:21 PM

Quote:

Originally Posted by bairy
Chad : Each image is requested one by one and only the first 12 characters of the return are read, as they are the ones with the status code in them. After that the connection is closed. Theoretically it will use output about 200 bytes and input 12 bytes per request. Practically I don't know how web servers work, but I suspect once php has sent a close to the other server the transfer will stop. So no, not much bandwidth

ahh thanks that clears it up, good job coding it.


All times are GMT. The time now is 03:21 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
  • Page Generation 0.01331 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete