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)

Dave 03-10-2017 01:56 PM

@y2ksw I think I know the cause, I've made the following changes for someone and now it's working again:

In the cURL part in the iei_get_contents function, I made it so that any SSL errors are ignored (for HTTPS sites). This can be done by setting CURLOPT_SSL_VERIFYHOST and CURLOPT_SSL_VERIFYPEER to 0. I also added a check there so that it returns false when the status code is bigger than 400.

Finally, the iei_normalize_path function adds a slash in front of the path which does not seem to work on all servers. I removed the first slash in the path that's created by that function and that fixed the whole thing.

BadgerDog 03-10-2017 02:00 PM

Quote:

Originally Posted by Dave (Post 2583601)
@y2ksw I think I know the cause, I've made the following changes for someone and now it's working again:

In the cURL part in the iei_get_contents function, I made it so that any SSL errors are ignored (for HTTPS sites). This can be done by setting CURLOPT_SSL_VERIFYHOST and CURLOPT_SSL_VERIFYPEER to 0. I also added a check there so that it returns false when the status code is bigger than 400.

Finally, the iei_normalize_path function adds a slash in front of the path which does not seem to work on all servers. I removed the first slash of the path that's created and that fixed the whole thing.


Interesting Dave .... thanks .. :)

We import pics from all kinds of SSL sites and have so for years with this mod, but I don't recall us ever having to modify CURL options to do so.. and y2ksw's mod hasn't crashed, or failed to import a pic in years.

Are we missing something, or are we just lucky?

Regards,
Doug

Dave 03-10-2017 02:01 PM

Quote:

Originally Posted by BadgerDog (Post 2583602)
Interesting Dave .... thanks .. :)

We import pics from all kinds of SSL sites and have so for years with this mod, but I don't recall us ever having to modify CURL options to do so.. and y2ksw's mod hasn't crashed, or failed to import a pic in years.

Are we missing something, or are we just lucky?

Regards,
Doug

I assume you're just lucky. :)

Rideharder 06-13-2017 03:30 AM

Hello guys will this work on Version 4.2.5 or would you guys recommend something else for that 4.2.5? Thanks!!!

y2ksw 06-13-2017 06:27 AM

Quote:

Originally Posted by Rideharder (Post 2587480)
Hello guys will this work on Version 4.2.5 or would you guys recommend something else for that 4.2.5? Thanks!!!

It should work, but I can't promise ... please try and let us know :)

Kane@airrifle 06-13-2017 07:01 AM

Works in 4.2.5 PHP 7.1 for me.

Paul M 06-13-2017 10:33 AM

Quote:

Originally Posted by Rideharder (Post 2587480)
Hello guys will this work on Version 4.2.5 or would you guys recommend something else for that 4.2.5? Thanks!!!

I dont see why not, I have it (or at least a modified version of it) working on 3.8.11 & PHP 7.1, which is basically the same as far as this code is concerned.

(** The modifications relate to the information stored, I like to save the postid and a timestamp).

Rideharder 06-14-2017 08:29 PM

Awesome, thank you so much. I remember I stop doing the Vbulletin because it was a pain in the ass to keep up with all the version updates on the modules. You guys are pretty awesome to have around for the community and thanks!

andy626 07-03-2017 04:03 AM

Hi folks,

Some members pointed me to this thread, great mod!

Now that Photobucket has stopped 3rd party hosting, years of threads on my forum now have the below redirected image.

Has anyone tried this mod since PB have done this?

Any luck?

I'm concerned it will try and pull all of the PB photos but will pull the redirected image code instead or just blanks, any ideas/help greatly appreciated!

https://vborg.vbsupport.ru/

Kane@airrifle 07-03-2017 07:26 AM

Quote:

Originally Posted by andy626 (Post 2588076)
Hi folks,

Some members pointed me to this thread, great mod!

Now that Photobucket has stopped 3rd party hosting, years of threads on my forum now have the below redirected image.

Has anyone tried this mod since PB have done this?

Any luck?

I'm concerned it will try and pull all of the PB photos but will pull the redirected image code instead or just blanks, any ideas/help greatly appreciated!

https://vborg.vbsupport.ru/

Bad news, in testing I have found that the image is replace with the PB shakedown thumbnail


All times are GMT. The time now is 09:32 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.02162 seconds
  • Memory Usage 1,744KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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