hello,
This summer, I'm working with a development team on a Website built with Drupal. My project is about the integration of Web Service such as Amazon, Yahoo...
The Website mainly aims at allowing users to create rich comments on books, musics, movies...
Our forms are built with CCK. At first, we have used the Image field Module. This module allows users to upload image from their computers. With that, we can display on every comment, a picture, and this picture is also being used in views and gallery.
But, this behavior is rather restrictive for the user. Because if an user wants to add an image, he has to download this image on his computer and then upload it. Furthermore, with Web Services, we can get image links.
We would like to enhance the possibility of our forms, by allowing users to add image either by uploading them or adding their links.
But we are facing a problem : we don't know how to make views, show gallery or display nodes with those images that can be either files or links.
I'd like to know if anybody has already work on that problem, or if someone has some idea to solve it.
Thanks in advance,
Best regards
Comments
You should download the
You should download the image locally, or alternatively cache the image locally. That way, your method isn't limited to web services only, but it can be used to download images from most websites as well (most websites don't allow the embedding of their images on other websites).
That also solves your problem of displaying the images.
(And who turned on those darn CAPTCHAs again? :/)
Hi thanks for your
Hi thanks for your answer.
Unfortunately, by downloading the image locally, there is a legal problem. With most Web Services, we don't have the right to download the image, we can simply use it thanks to the link.