vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - Import External Images (https://vborg.vbsupport.ru/showthread.php?t=253309)

RichieBoy67 01-16-2014 07:13 PM

Oh I understand now. You are really trying to stop hotlinking. I thought you were trying to encourage it or allow it which seemed very odd to me. lmao

You could always disable right clicking if you have a major problem with it. I cannot even tell you how much bandwidth gets wasted on my site from hotlinking but most of the images on my site were posted on other sites anyways so we allow it.

I would like to use watermarking though and I am not sure if that would work with this mod either.

Sorry I cannot answer your question. Glad I know what you mean now though. Great concept there!

y2ksw 01-17-2014 01:44 PM

Quote:

Originally Posted by Bob_R (Post 2474618)
What are you talking about?

Is that supposed to represent an answer to my question?

I realize what this mod does. I use it and have for quite some time now.

So, it's YES you cannot hotlink images if you use this mod.

As it turns out, the question was different. You want to know if you can block hotlinking on your server. The answer is yes and it has nothing to do with this mod.

In order to block hotlinking you will have to add 3 (or more) lines in your .htaccess file, like:

Code:

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com(/)?.*$    [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ - [F,NC]


Bob_R 01-17-2014 02:49 PM

Quote:

Originally Posted by y2ksw (Post 2474918)
As it turns out, the question was different. You want to know if you can block hotlinking on your server. The answer is yes and it has nothing to do with this mod.

In order to block hotlinking you will have to add 3 (or more) lines in your .htaccess file, like:

Code:

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com(/)?.*$    [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ - [F,NC]


OK, maybe I'll try it by adding the code to the .htaccess myself. My server people tried it thru cPanel and it did not work. Not saying that it's this mods fault just sharing.

I also heard from a trusted friend that "hotlink protection (via an htaccess file) doesn't protect images uploaded to vbulletin because they are being requested via php files, not via their native file name."

I'll keep you informed.

sticky 01-21-2014 01:41 AM

This product struggles with importing images that have anything after the .jpg

Would you be able to make it so files with strings like this: cmonmanjpg3Fw3D50626h3D189-1.jpg%3fw%3d506%26h%3d189

Still import?

massiveblack 01-24-2014 09:31 AM

I installed as directed, then adjusted the settings and pushed save. I checked the ftp and no folder was made. The pdf instruction file says to put the php file in the root of the forums but the zip has it in the includes. I first put it in includes then imported the xml. nothing happens....no imported folder is created...nothing happens. i also tried it inside the root, per the pdf instructions. nothing happens. please advise. thank you!!

y2ksw 01-24-2014 12:39 PM

Quote:

Originally Posted by sticky (Post 2475701)
This product struggles with importing images that have anything after the .jpg

Would you be able to make it so files with strings like this: cmonmanjpg3Fw3D50626h3D189-1.jpg%3fw%3d506%26h%3d189

Still import?

Please set in the options "Always Convert Images" and/or uncheck "Use Original File Names" and all your troubles will go at once.

y2ksw 01-24-2014 12:44 PM

Quote:

Originally Posted by massiveblack (Post 2476541)
I installed as directed, then adjusted the settings and pushed save. I checked the ftp and no folder was made. The pdf instruction file says to put the php file in the root of the forums but the zip has it in the includes. I first put it in includes then imported the xml. nothing happens....no imported folder is created...nothing happens. i also tried it inside the root, per the pdf instructions. nothing happens. please advise. thank you!!

Please make sure you understand how to install vbulletin products. There are several guides on this site and installing mine is not more difficult than installing any other product.

The imported folder is not created and as stated in the guide, you will have to choose or make one on your own and then verify it has the access rights to write new files and folders.

And, finally, it may take quite some time before it creates images, since it will parse all posts and unless it does not find any, it will not create anything.

massiveblack 01-24-2014 07:55 PM

Ok thank you. Yes I do understand, but the language of the instructions was not clear and suggested that it was an automated process somehow. The folder is made and the permissions are set. I will check in and see if it is working. Thanks for the prompt reply.

RichieBoy67 01-24-2014 08:17 PM

The imports are an automated process but you need to create a directory for the imported images and enter the path so the process knows where to place the imported images. :)

Manoel J?nior 02-07-2014 09:24 PM

You can import images directly to my database rather than to a folder on my FTP?

majjed2008 02-09-2014 12:34 PM

hello

can we made it import the VB image also from thumps like that we have all picture in just onne folder ?

Thank you

y2ksw 02-10-2014 12:16 PM

Quote:

Originally Posted by Manoel J?nior (Post 2479643)
You can import images directly to my database rather than to a folder on my FTP?

No. It is not intended to create attachments.

y2ksw 02-10-2014 12:19 PM

Quote:

Originally Posted by majjed2008 (Post 2479947)
hello

can we made it import the VB image also from thumps like that we have all picture in just onne folder ?

Thank you

It is not possible to determine if an image you see in the posts is a thumb or actually an image. Thus it will import only images which have a recognizable format with the IMG BBCode.

majjed2008 02-10-2014 03:10 PM

Quote:

Originally Posted by y2ksw (Post 2480167)
It is not possible to determine if an image you see in the posts is a thumb or actually an image. Thus it will import only images which have a recognizable format with the IMG BBCode.

thank you is there any way that we can import thump or change them to be in folder as image , anyone know please ?

elfenny 03-07-2014 11:40 PM

I created the folder with 777 permissions but not create subfolders.

The mod does not work, how can I fix?

Bob_R 03-15-2014 09:32 PM

Quote:

Originally Posted by y2ksw (Post 2474918)
As it turns out, the question was different. You want to know if you can block hotlinking on your server. The answer is yes and it has nothing to do with this mod.

In order to block hotlinking you will have to add 3 (or more) lines in your .htaccess file, like:

Code:

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com(/)?.*$    [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ - [F,NC]


Quote:

Originally Posted by Bob_R (Post 2474926)
OK, maybe I'll try it by adding the code to the .htaccess myself. My server people tried it thru cPanel and it did not work. Not saying that it's this mods fault just sharing.

I also heard from a trusted friend that "hotlink protection (via an htaccess file) doesn't protect images uploaded to vbulletin because they are being requested via php files, not via their native file name."

I'll keep you informed.

OK, did the code. It works if you post an image to another site with HTML img.

But, all I have to do is wrap the image in BB code ex. [img]www.thisisanimage[/img] and it still shows on the offending site.

Anyway around this?

Thanks!

Bob_R 03-16-2014 07:59 PM

OK, I believe it is working. Because of this mod though you cannot use a hotlnk error image because it copies the hotlink error image and replaces the original pic on your site.

y2ksw 03-21-2014 09:33 AM

Quote:

Originally Posted by Bob_R (Post 2487702)
OK, I believe it is working. Because of this mod though you cannot use a hotlnk error image because it copies the hotlink error image and replaces the original pic on your site.

There is no way around. Sites may enable hotlink protection at their discretion, but usually the plugin works. Some exceptions made. You may "whitelist" those domains in the options and thus they will keep the hotlink.

Bob_R 03-21-2014 02:50 PM

Quote:

Originally Posted by y2ksw (Post 2488701)
There is no way around. Sites may enable hotlink protection at their discretion, but usually the plugin works. Some exceptions made. You may "whitelist" those domains in the options and thus they will keep the hotlink.

It's working except for that for the the hotlink image also ends up showing on my site.

I've since taken out the image. It'll now just show a blank empty post on the offending site.

I'm I reading you right, whitelist will make the image show? How do I whitelist?

Thanks.

y2ksw 03-21-2014 03:40 PM

Quote:

Originally Posted by Bob_R (Post 2488744)
It's working except for that for the the hotlink image also ends up showing on my site.

I've since taken out the image. It'll now just show a blank empty post on the offending site.

I'm I reading you right, whitelist will make the image show? How do I whitelist?

Thanks.

Please go to the options. There is a big field with according description and most probably already a "path" of a previous release of this product. Just add as many items you need ;)

Bob_R 03-21-2014 08:21 PM

Quote:

Originally Posted by y2ksw (Post 2488749)
Please go to the options. There is a big field with according description and most probably already a "path" of a previous release of this product. Just add as many items you need ;)

Which options, sir? I went into my vbulletin options for this mod and did not see as you say "a big field with according description and most probably already a "path" of a previous release of this product. Just add as many items you need."

y2ksw 03-25-2014 06:39 AM

It is the "Ignore" field.

Bob_R 03-29-2014 05:54 PM

Quote:

Originally Posted by y2ksw (Post 2489413)
It is the "Ignore" field.

So, just put the URL of a site or sites in the Ignore field and my hotlink error message WILL show on the offending site and NOT show on my site (on my site the hotlink image was replacing the image which was hotlinked to begin with)?

y2ksw 04-07-2014 12:04 PM

Quote:

Originally Posted by Bob_R (Post 2490302)
So, just put the URL of a site or sites in the Ignore field and my hotlink error message WILL show on the offending site and NOT show on my site (on my site the hotlink image was replacing the image which was hotlinked to begin with)?

If you insert the host in the ignore field, the images will not be imported. What they will show, in the end, depends on the site from where you try to show images. Which essentially may be hotlink blockers or anything else :)

Bob_R 04-07-2014 02:06 PM

I hope I'm using the proper terminology. Because you answered my question and now you're saying that this isn't the solution.

Here's the problem with this mod and hot linking (unless I'm doing something wrong but I tested it).

On MY site if I place a hot link image error to show up on the offending site which has grabbed an image from my site. The error image shows BUT the mod also replaces the image on my site with the error image.

Only want the error image to show on the offending site (obviously).

If I don't include an error image the offending site gets a blank screen and the image on my site stays intact. That's fine right? Shows it's working!

Thanks for your help!

y2ksw 04-07-2014 06:09 PM

Quote:

Originally Posted by Bob_R (Post 2491951)
I hope I'm using the proper terminology. Because you answered my question and now you're saying that this isn't the solution.

Here's the problem with this mod and hot linking (unless I'm doing something wrong but I tested it).

On MY site if I place a hot link image error to show up on the offending site which has grabbed an image from my site. The error image shows BUT the mod also replaces the image on my site with the error image.

Only want the error image to show on the offending site (obviously).

If I don't include an error image the offending site gets a blank screen and the image on my site stays intact. That's fine right? Shows it's working!

Thanks for your help!

This is simply impossible. If you show a hotlink image to other sites, your site must remain unaffected. This is a server issue and must be setup correctly in the .htaccess file, and never was an issue with the mod.

If the offending site gets a blank screen, then definitively your hotlink formula isn't working. Get Firebug for Firefox and check the response on the "missing" image, I'm almost 100% sure it's an error 5xx, which translates in a scripting error in .htaccess.

The mod does only download images from other sites, and if they have hotlinking images, it will download those, unless you have them excluded = ignored :)

Bob_R 04-09-2014 09:03 PM

Quote:

Originally Posted by y2ksw (Post 2491987)
This is simply impossible. If you show a hotlink image to other sites, your site must remain unaffected. This is a server issue and must be setup correctly in the .htaccess file, and never was an issue with the mod.

If the offending site gets a blank screen, then definitively your hotlink formula isn't working. Get Firebug for Firefox and check the response on the "missing" image, I'm almost 100% sure it's an error 5xx, which translates in a scripting error in .htaccess.

The mod does only download images from other sites, and if they have hotlinking images, it will download those, unless you have them excluded = ignored :)

Here's my .htaccess in regards to this situation

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?domain.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?domain.com/forums [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]

y2ksw 04-10-2014 10:46 AM

Quote:

Originally Posted by Bob_R (Post 2492327)
Here's my .htaccess in regards to this situation

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?domain.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?domain.com/forums [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]

Provided that domain.com is your domain, your hotlink protection must look this way. Please see the additional backslash, no second line needed and no fancy queries. It's your site and you know how it can be addressed, so make it short and simple. The missing additional backslash and unsupported fancy queries may cause a blank screen. The F directive does generate a failure, the rest should be shown correctly on the offending page:
Code:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://www\.domain\.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]

If you used this tool: http://www.htaccesstools.com/hotlink-protection/ for generation, it does not work correctly and it is a shame, but fortunately not mine.

The above rules says: If the referer is not blank and if it starts with http://www.domain.com then fail on these file extensions: .jpg, .jpeg, .png and .gif. This means in cleartext, if the referrer is blank or the referer starts with http://www.domain.com, then the images are shown. Direct page access will thus show the images, but if you are navigating the offending site, they will not.

I hope this extra lecture was exhaustive enough and has really nothing to do with the mod. :)

shots 05-19-2014 05:37 PM

Will this mod pickup changes?

i.e. if someone links an image and then a few days later changes the image (but not the filename) will this mod recognize that?

Followup: if so, will it overwrite the locally stored image or create an additional one with a -1 or something.

y2ksw 05-20-2014 07:01 AM

Quote:

Originally Posted by shots (Post 2498469)
Will this mod pickup changes?

i.e. if someone links an image and then a few days later changes the image (but not the filename) will this mod recognize that?

Followup: if so, will it overwrite the locally stored image or create an additional one with a -1 or something.

The best way to know is to try it out. There are too many scenarios about this argument to efficiently give an answer. Generally, it imports images from external servers to local. What you do in local with these files, is your responsibility, but users have no influence. What people do on remote sites is beyond our possibilities :)

ar15dcm 06-22-2014 05:15 AM

Will it do the same in CMS articles? If not, what would it take to add that functionality?

tbworld 06-22-2014 05:48 AM

Quote:

Originally Posted by ar15dcm (Post 2502996)
Will it do the same in CMS articles? If not, what would it take to add that functionality?

I read in the thread that the CMS is not supported. The post was dated 2012, so don't take my word on it. :)

y2ksw 06-23-2014 08:23 AM

Quote:

Originally Posted by ar15dcm (Post 2502996)
Will it do the same in CMS articles? If not, what would it take to add that functionality?

It's not supported. It would take quite some efford to read the articles the same way as it does for the forum posts and apply the changes. Essentially it needs another cronjob with almost no shared code.

vvlo 07-07-2014 08:43 AM

It is very useful product and I've used it for years
I will soon be ready for vb 5
Do you plan to do this?

y2ksw 07-07-2014 11:13 AM

I haven't tried it yet, but it may work probably just out of the box or with very few changes in vbulletin 5.

vvlo 07-10-2014 06:25 PM

Quote:

Originally Posted by y2ksw (Post 2505682)
I haven't tried it yet, but it may work probably just out of the box or with very few changes in vbulletin 5.


I am very much looking forward to hearing good news
This is one of the most popular products that are offered by you

Sorry for my bad English

Space_psy.be 07-15-2014 09:32 AM

One thing I can confirm is that it works in v3.8.7-P4 without any changes.

For what I need it, I've done a small modification, mainly do a backup of the post before updating it.

What I'm most struggling with is the 27000+ posts that have images in them. It is slow. So I'm now rewriting parts of this addon so that it can run from cli.

If there is interest, I can contribute or publish the final cli version once it is finished. The code will not be nice though, I haven't coded much php in the last couple of years.

madness85 08-08-2014 07:20 PM

working great :) but if the thread is deleted does it clean up the un-used images?

madness85 08-09-2014 05:37 AM

No it doesn't clean un-used images :( can't use this sadly if it can't do it.

y2ksw 08-09-2014 02:46 PM

On large forums you can't tell if an image is reused. This is a plugin for typically very large forums, where the lack of images is much more critical than a few too many. Also, it may come handy to have a copy. Please think about it as a feature :)


All times are GMT. The time now is 06:18 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.02272 seconds
  • Memory Usage 1,857KB
  • 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
  • (4)bbcode_code_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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