Allow users to add Profile Picture from Image URL

Hey guys,

If any of you replied to my previous topic, I have “upgraded” to a better coded site, and everything is working perfectly.

I would like to know how I could add a feature which would allow a user to add a profile picture, from a image URL. I don’t want them to upload the image.

I would have the option to change the profile picture on this page:

I would then like to know how I could display the image they add, on another page. That would be this one.

Im new to PHP, so I’m still learning stuff, and help from you guys helps me learn it too. I did a few searches on google and couldn’t find anything, so decided to come here for some help.

In my Database, I have a column called image, Im not sure if its set up correctly, so would be nice if you could possibly check.

Let me know if you need to know anything else.

Cheers,

Lewis.

Are you wanting to just use the image hosted elsewhere or do you want to physically grab the image and put it onto your server? If you want the image on your server, you need something like file_get_contents, see here: http://php.net/manual/en/function.file-get-contents.php

Hi, Thanks for the reply.

No, I don’t want it to put it onto my server, I just wan’t them to be able to put a URL from the image hosted elsewhere, and then it will show the image as requested above.

Thanks

Slight bump, I kind of need some help with this asap.

Thanks,

Lewis.

I’d just be a little cautious of doing this due to a couple of implications;

[ul][li]Copyright Infringement[/li]
[li]If the corresponding server no longer hosts the image (Negative SEO Impact)[/li][/ul]

Now I’m assuming you want a nice fancy feature similar to the way Facebook works, here’s a tutorial (not tested) http://www.sanwebe.com/2013/06/extract-url-content-like-facebook-with-php-and-jquery

Sponsor our Newsletter | Privacy Policy | Terms of Service