0
Hello ..
compliments for the component .. I'm buying now
Is there a way to enter the URL of the image of an album
which is located on another server?
I need this function..
Thanks ..
Luca
compliments for the component .. I'm buying now

Is there a way to enter the URL of the image of an album
which is located on another server?
I need this function..
Thanks ..
Luca
Responses (16)
-
Accepted Answer
0hmm.. this will be easy to do making a little change on 2 or three files. But this is a manual modification.
HOWEVER: MC automaticly creates the album thumbnails when you upload them, so, if you load the images from an external server, you won't have the thumbs...
Tell me when you have MC correctly installed, and I'll tell you what to do to get the images from an external server
cheers -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0I see...
well, I see what I can do to try to solve this problem. I will think on adding an option in next version to generate thumbs automaticly, instead of creating them in the upload process.
anyway, do you still want me to help you on changing the (big) images source?
you could have the "big" images on an external server, but the thumbails on yours... but you'd have to create the thumbnails yourself (this is easy and automatic to do if you have Photoshop, for instance) -
Accepted Answer
0germi wrote:
I see...
well, I see what I can do to try to solve this problem. I will think on adding an option in next version to generate thumbs automaticly, instead of creating them in the upload process.
Thanks .. You are very kind. I am happy to have purchased your component.
anyway, do you still want me to help you on changing the (big) images source?
Yes, I need your help to change the (big) images source but have not yet installed on the local MC.
you could have the "big" images on an external server, but the thumbails on yours... but you'd have to create the thumbnails yourself (this is easy and automatic to do if you have Photoshop, for instance)
This is a very good solution .. how could I do? -
Accepted Answer
0ok, let's solve the big images issue. just do the following:
open the file components/com_muscol/views/album/default.php with a plain text or code editor
go to line 69. you'll see this:
$image = JHTML::image('images/albums/' . $this->album->image , $this->album->name , $image_attr );
all you need to do is change the 'images/albums/' relative path to an absolut path pointing to wherever you have the images on your server. For instance, if you have the images on the folder "images_of_albums", on the site "http://www.example.com", you have to put
'http://www.example.com/images_of_albums/'
so de code will look like this:
$image = JHTML::image('http://www.example.com/images_of_albums/' . $this->album->image , $this->album->name , $image_attr );
then, in the backend, when oyu introduce info for an album, instead of uploading an album image, just type the name of the image (including the extension, for instance "example_image.jpg") on the text field next to the upload field, on "Front sleeve image"
tell if that works for you, and I'll tell how to solve the second part -> creating the thumbnails
cheers! -
Accepted Answer
0If in the code:
$image = JHTML::image('images/albums/' . $this->album->image , $this->album->name , $image_attr );
I cut completely 'images/albums/' and in the backend when I introduce info for an album, instead of the only name of image, type the complete URL of image.. it works?
It would be nice if we could choose to enter a URL or do the upload of the image. -
Accepted Answer
0sure
you'll have to create the thumbnails on your local computer and then upload them to your site. So, first of all, you need to download all the album images to a folder in your computer!!
then, you'll need Photoshop (do you have photoshop?)
tell me when your ready and I'll tell you how to automaticly create all thumbails using photoshop -
Accepted Answer
-
Accepted Answer
0but... you have already create the thumbnails?
yes, you have to create thumbails sizing 40px width and also thumbail sizing 115px width.
then upload the thumbails created (DO NOT change image name!), you have to upload the 40px to the folder images/albums/thumbs_40/ and the 115px thumbails to images/albums/thumbs_115/
and that will be all! -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
Your Reply

Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »