Album image

Luca
Luca
Offline
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
Responses (16)
  • Accepted Answer

    Monday, April 06 2009, 02:47 PM - #Permalink
    0
    hmm.. 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
    The reply is currently minimized Show
  • Accepted Answer

    Luca
    Luca
    Offline
    Monday, April 06 2009, 02:56 PM - #Permalink
    0
    I had traffic (bandwidth) problems with the server where my site
    and I fear that too many images can give me problems again.

    Is there a way to allow the MC to create thumbnails
    from images that are on the other server?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, April 06 2009, 03:02 PM - #Permalink
    0
    there's no native option for that. You'd have to create your own PHP script to do that... are you a programmer?
    The reply is currently minimized Show
  • Accepted Answer

    Luca
    Luca
    Offline
    Monday, April 06 2009, 03:05 PM - #Permalink
    0
    No.. I'm not a programmer :-(
    The reply is currently minimized Show
  • Accepted Answer

    Monday, April 06 2009, 03:18 PM - #Permalink
    0
    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.

    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)
    The reply is currently minimized Show
  • Accepted Answer

    Luca
    Luca
    Offline
    Monday, April 06 2009, 04:41 PM - #Permalink
    0
    germi 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?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, April 06 2009, 08:26 PM - #Permalink
    0
    ok, 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!
    The reply is currently minimized Show
  • Accepted Answer

    Luca
    Luca
    Offline
    Monday, April 06 2009, 11:04 PM - #Permalink
    0
    If 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.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, April 07 2009, 09:39 AM - #Permalink
    0
    yes, that should work too
    The reply is currently minimized Show
  • Accepted Answer

    Luca
    Luca
    Offline
    Thursday, April 09 2009, 12:18 PM - #Permalink
    0
    Can you tell me how to do with thumbnails?
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, April 09 2009, 02:21 PM - #Permalink
    0
    sure

    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
    The reply is currently minimized Show
  • Accepted Answer

    Luca
    Luca
    Offline
    Thursday, April 09 2009, 02:26 PM - #Permalink
    0
    Yes, I have Photoshop. Create Art of each other have 40X40 and another 115x115 .. right? And then?
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, April 09 2009, 04:35 PM - #Permalink
    0
    but... 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!
    The reply is currently minimized Show
  • Accepted Answer

    Luca
    Luca
    Offline
    Thursday, April 09 2009, 11:19 PM - #Permalink
    0
    I thought it was more difficult to do, thanks again.
    I wanted to know how to do it if I had needed in the future
    for now use the feature to upload images in Music Collection.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, April 10 2009, 10:09 AM - #Permalink
    0
    mm.. I don't know if I understand your question... :lol:

    to use the upload feature in MC just upload the album images using the album backend form. MC creates the thumbs automaticly
    The reply is currently minimized Show
  • Accepted Answer

    Luca
    Luca
    Offline
    Friday, April 10 2009, 01:54 PM - #Permalink
    0
    No, it was not a question.
    For now I decided to use the upload feature in MC.
    If in future I will have problems with bandwidth of my server see to use this method :)
    The reply is currently minimized Show
Your Reply