Auto-embed external images & save on own server?

Get help with installation and running phpBB 3.1.x here. Please do not post bug reports, feature requests, or extension related questions here.
Anti-Spam Guide
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: phpBB 3.1.x is at its End of Life stage and support will NOT be provided after July 1st, 2018.
Locked
maggador
Registered User
Posts: 22
Joined: Thu Apr 23, 2015 5:51 pm

Auto-embed external images & save on own server?

Post by maggador »

Is there any way to automatically embed image links people post, and at the same time have them uploaded and stored on own server so they remains active even if the original site goes dead or removes the linked images?

I been trying out finding a way to do it myself with little luck, nor have I found any extensions or mods or other ways to do this

Anyone can help out with this and how one could go about doing it?

Thanks a lot and cheers!
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Auto-embed external images & save on own server?

Post by Oyabun1 »

Just add the images as an attachment rather than a link. The images are then stored locally and it would be irrelevant if some external site is live or altered.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
maggador
Registered User
Posts: 22
Joined: Thu Apr 23, 2015 5:51 pm

Re: Auto-embed external images & save on own server?

Post by maggador »

Yes, but that is inconvenient, as the users will have to know about that then, and in addition they wont be embedded into their proper places in a post.

I want people to be able to post an image link, and have it automatically embed into the post where they put the image link just as when using the Img BBCode button.

But when doing so, I want the images to be uploaded to my own server and hosted there, instead of being externally hosted.

This way they will be sure to remain, because i have experienced problems with images disappearing before when embedded and hosted externally, which can make a mess in a post with many images important for certain things, and it ruins the post and makes it unuseable without its proper context that the images provides.

Perhaps its possible to modify the code of the already existing Img BBCode so it does the saving on own server part, which would be very good, but the ultimate would be both automatic embedding when an image link is posted and auto-uploaded and linked to on my own server, without even having to use the bbcode function.

I have a cool extension for media that auto-embeds media from more than 100 sites such as youtube etc by only posting the direct link to the media, but it doesnt embed direct image links, nor does it store any of the posted media on my own server - not that I want videos and stuff saved on my own server, I only want this function as described for image links..

Thanks to anyone that can help out with this.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 23055
Joined: Fri Aug 29, 2008 9:49 am

Re: Auto-embed external images & save on own server?

Post by Mick »

You can't do that in standard phpBB, it would require an extension.
"The more connected we get the more alone we become" - Kyle Broflovski©
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 51888
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Auto-embed external images & save on own server?

Post by stevemaury »

maggador wrote: and in addition they wont be embedded into their proper places in a post.
What does that mean? Attachments can be placed anywhere in a post.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
maggador
Registered User
Posts: 22
Joined: Thu Apr 23, 2015 5:51 pm

Re: Auto-embed external images & save on own server?

Post by maggador »

OK you are right, they can be placed anywhere in the post when attached, bust still people need to go through the attachment procedure and many dont even know about that feature. Most people simply post direct image links.

Thats why I want what I am asking about here, auto embedded images from such external links, having the images themselves saved on my own server.

If there is no coding I can do myself to add into some of the php files or plugins I already got as explained above, is there any such plugin/extension out there somewhere, or someone cool and kind and experienced enough to make such one?

Cheers :)
User avatar
Lumpy Burgertushie
Registered User
Posts: 68553
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Auto-embed external images & save on own server?

Post by Lumpy Burgertushie »

although anything is possible, this would involve a lot of very special coding and you would just have to request such and extension in the extension request forum and then wait to see if anyone would want to give it a try.

not to mention that there could be any number of image upload sites that people could be using that would have to be accounted for in this extension.

personally I would not hold my breath waiting for it.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 5252
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: Auto-embed external images & save on own server?

Post by HiFiKabin »

You can of course always 'drag and drop' images into the reply box
maggador
Registered User
Posts: 22
Joined: Thu Apr 23, 2015 5:51 pm

Re: Auto-embed external images & save on own server?

Post by maggador »

Lumpy Burgertushie wrote:although anything is possible, this would involve a lot of very special coding and you would just have to request such and extension in the extension request forum and then wait to see if anyone would want to give it a try.

not to mention that there could be any number of image upload sites that people could be using that would have to be accounted for in this extension.

personally I would not hold my breath waiting for it.

robert
Have posted request. The image sites are no issues as all the extension needs to do is auto-embed any link ending in any image format (*.jpg, *png, *gif, etc)

No sites themselves needs to be implemented into the extension, it sould grab any image url, embed the image, store it on local server for forum.

They guy I mentioned above who got an extension that auto embeds media from over 100 sites could probably manage to implement this feature as well into his plugin easily, i sent him a message, lets see what he says.
User avatar
Lumpy Burgertushie
Registered User
Posts: 68553
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Auto-embed external images & save on own server?

Post by Lumpy Burgertushie »

I don't think you understand how this works.

it would have to go to wherever that image is hosted and download it/tranfer it to your server.

so, the extension will need to take the complete url, access that website, follow whatever methods are needed to copy an image from that website server and transfer it to your server into a directory there.
all of the links will have to be updated etc. etc. etc.

not saying it can't be done, just saying it would not be as simple as you think.

also, the video extension you are talking about has the individual embed codes for each of those video hosting sites listed in its code. depending on what the website url is , it has to basically create a special bbcode type link for each one and then create the html needed to embed the video in the post.
whenever a new video site comes along, he has to update the extension and users will have to uninstall it and reinstall the new version to be able to use the new site etc.
from what I have seen there is simply no way in that extension to use it for images. it is just not what it is designed for.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
maggador
Registered User
Posts: 22
Joined: Thu Apr 23, 2015 5:51 pm

Re: Auto-embed external images & save on own server?

Post by maggador »

You may be right, i am no expert coder, though I do have some experience with programming, used to be into c++ and delphi and pascal etc decade and half ago.

But, I dont see what can be so complicated about grabbing an image if you just code it properly to understand that images of various common formats are images when linked directly, such as www.domain.com/image.jpg, and then have that jpg auto grabbed, uploaded unto own server, and embedded into the post.

There are certainly more complex extensions out there than what I am asking for, and I do think it be possible fairly easily for those with experience in the php and phpbb coding.

All it needs to do is recognize an image file, and then auto-embed it after quickly uploading to own server.

If I wasnt too busy with my other work these days I would put my nerd googles on and try get it done myself but I have been out of that game for a decade now and involved with completely different thingns.. Anyway, hopefully someone can help out with this.

Cheers
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Auto-embed external images & save on own server?

Post by Oyabun1 »

The place for extension requests is the dedicated [3.1.x] Extension Requests forum.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
Locked

Return to “[3.1.x] Support Forum”