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)

djbaxter 04-24-2020 10:32 AM

Quote:

Originally Posted by Hostboard (Post 2602677)
Not sure, but it should be able to pull down the image or at least I was hoping it would...

Not if the server is misconfigured or the link isn't accessible to the public.

Hostboard 04-24-2020 10:34 AM

I can enter the entire URL and the image is displayed from multiple locations. But as you pointed out it is more than likely with the code after the named image.

djbaxter 04-24-2020 10:46 AM

Ah yes. So it does.

I know that some online news services use similar formats to discourage or prevent image scraping. You may need to just accept that such images won't be imported. Alternatively, you can download the image from your browser and upload it from your local disk as an embedded attachment.

Hostboard 04-24-2020 11:04 AM

Quote:

Originally Posted by djbaxter (Post 2602680)
Ah yes. So it does.

I know that some online news services use similar formats to discourage or prevent image scraping. You may need to just accept that such images won't be imported. Alternatively, you can download the image from your browser and upload it from your local disk as an embedded attachment.

Because of what my site is/does, it is not something that I can do. I am just trying to supply the tools. I'll probably just have to have a developer look at it and see if it can be coded to accept URLs of this nature. Thanx for the replies :)

y2ksw 04-26-2020 12:40 PM

Quote:

Originally Posted by Hostboard (Post 2602675)
Is there anyway to get this to support a URL such as:

Code:

https://scontent-lax3-1.xx.fbcdn.net/v/t1.0-9/fr/cp0/e15/q65/94475070_10213603321997797_6910232200327725056_o.jpg?_nc_cat=108&_nc_sid=ca434c&efg=eyJpIjoidCJ9&_nc_oc=AQlsUa106dvp0CMIRD8nGvIE-2Hc9WyOAf3nmJ0ANiOGTbUAnpGlycnsQFC5Sbpeq-4zdhQUmJqUb9BVRXAP4Uvg&_nc_ht=scontent-lax3-1.xx&_nc_tp=14&oh=ee495fa093d4139e821daa867b450a8e&oe=5EC82DE0
If I try it comes back as invalid as I suspect it is looking for an image extension such as .jpg, .png, etc.

These URL's normally don't work, because they are usually a sub-set of a larger service.

It would eventually work, if the part after, including ? is removed. However it looks like a temporary link anyway.

BadgerDog 12-18-2021 07:14 AM

Hello Giovanni..

Hope you have been well. It's been a long time and I'm not sure that you are still active here.

I've been using your Beta 1.0.6 for several years with vBulletin 4.1.3pl1 and it’s been work great!

I’ve had to update to bulletin 4.25 now and I’m not sure what’s gone wrong, but the attachment files read by 1.0.6 into directory /images/imported are now showing with only a “?” where the picture should be?

When I check the link for any pic, it’s showing as an example.

/attachment.php?attachmentid=121951&d=1639421597

…. when it should be linking to a pic captured by your mod and stored within /images/imported?

I have the directory in your "Vb Import External Images" options page set to /images/imported.

I’m not sure what else I need to do to get into work with vBulletin 4.2.5 as it always has with 4.13pl1?

Can you help at all?

Thank you…

Regards,
Doug

y2ksw 12-18-2021 04:45 PM

Quote:

Originally Posted by BadgerDog (Post 2607942)
Hello Giovanni..

Hope you have been well. It's been a long time and I'm not sure that you are still active here.

I've been using your Beta 1.0.6 for several years with vBulletin 4.1.3pl1 and it?s been work great!

I?ve had to update to bulletin 4.25 now and I?m not sure what?s gone wrong, but the attachment files read by 1.0.6 into directory /images/imported are now showing with only a ??? where the picture should be?

When I check the link for any pic, it?s showing as an example.

/attachment.php?attachmentid=121951&d=1639421597

?. when it should be linking to a pic captured by your mod and stored within /images/imported?

I have the directory in your "Vb Import External Images" options page set to /images/imported.

I?m not sure what else I need to do to get into work with vBulletin 4.2.5 as it always has with 4.13pl1?

Can you help at all?

Thank you?

Regards,
Doug

Hello Doug

In fact I have more or less moved away from web and forums, but I try to keep up - you never know.

I'm not sure what might have happened, but I guess, something at the server side has changed ... or the page encoding, style, PHP version, fopen permissions ... or the script was copied incomplete or was modified, or the database has a different encoding. Have you tried to change the setting and and change it again, in order to store it as a "new" setting?

Old-Git 01-04-2022 07:25 PM

Seeking a wee bit of advice of this mod. I'm in the process of rebuilding a vbforum from an old website that is now defunct. The old website ran this mod as an addon and it proved very useful. However, the restored database that I'm preping is currently running on a local machine on my home network so the URLs have all changed from FQDN to an IP address.

I've found a table in the database called IEI_IMG and it seems to me that all I need to do here is do a search and replace on the NewURL field and replace the sitename.com with IP address of the local machine on which it is running. Can anyone confirm that this is all I need to do to point the URL's for all the imported images to a new path on my local machine? Or will I have to single-step through every thread and replace every single URL?

y2ksw 01-20-2022 06:00 AM

Quote:

Originally Posted by Old-Git (Post 2608027)
Seeking a wee bit of advice of this mod. I'm in the process of rebuilding a vbforum from an old website that is now defunct. The old website ran this mod as an addon and it proved very useful. However, the restored database that I'm preping is currently running on a local machine on my home network so the URLs have all changed from FQDN to an IP address.

I've found a table in the database called IEI_IMG and it seems to me that all I need to do here is do a search and replace on the NewURL field and replace the sitename.com with IP address of the local machine on which it is running. Can anyone confirm that this is all I need to do to point the URL's for all the imported images to a new path on my local machine? Or will I have to single-step through every thread and replace every single URL?

I suggest to add your domain to the hosts file and access your local site as if it was remote.

Old-Git 02-07-2022 01:15 PM

Thanks for your reply Giovanni, I got it sorted in the end by doing a string replace in the database. The IEI_IMG table was just a simple record of what had been imported and from where, this was invaluable in helping me rebuild missing content so good call in including it in the package!

Is there any chance that this mod can be ported to VB5x, it's absolutely invaluable on my site!


All times are GMT. The time now is 06:08 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.01915 seconds
  • Memory Usage 1,752KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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