Options

SmugSSP - SmugMug/SlideShowPro Integration (php)

2

Comments

  • Options
    schaef2493schaef2493 Registered Users Posts: 1 Beginner grinner
    edited May 19, 2007
    Help
    Hi Everyone. I'm trying to setup SmugSSP on my website and can't get the images to load into the interface. I've double checked everything and still can't find the problem. The SWF refers to smugssp.php, all the files have been uploaded, and I setup the config file to what I think is right. I PM'd the OP about it and he let me know he will look into it but I am looking for help here, too. The link to it is:

    http://www.kevinschaefer.net/slideshow.html
    http://www.kevinschaefer.net/slideshow.swf
    http://www.kevinschaefer.net/smugssp.php
    (the rest of the files are all placed in the same directory)
  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited May 19, 2007
    schaef2493 wrote:
    Hi Everyone. I'm trying to setup SmugSSP on my website and can't get the images to load into the interface. I've double checked everything and still can't find the problem. The SWF refers to smugssp.php, all the files have been uploaded, and I setup the config file to what I think is right. I PM'd the OP about it and he let me know he will look into it but I am looking for help here, too. The link to it is:

    http://www.kevinschaefer.net/slideshow.html
    http://www.kevinschaefer.net/slideshow.swf
    http://www.kevinschaefer.net/smugssp.php
    (the rest of the files are all placed in the same directory)

    Hi Kevin,

    If I don't get to it toda, I will look tomorrow...i am in the middle of doing some renovations.

    CHeers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • Options
    ciscoguy24ciscoguy24 Registered Users Posts: 68 Big grins
    edited May 25, 2007
    hey devbobo any way to use this with password protected galleries? I mean have ssp or something prompt the user for the password before seeing the pics?
  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited June 19, 2007
    New version released 1.0.1.

    - Fixes an issue related to an API change.
    - I changed the configuration parameters a little bit, but it should be backward compatible..see readme.txt for more info
    David Parry
    SmugMug API Developer
    My Photos
  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited June 20, 2007
    New version released 1.0.2

    - Fixed an issue that was plaguing a few users after upgrade, as a result the old configruation format is not supported.

    If you have a configuration like below...
    // Your SmugMug username
    $smugssp_config['username'] = '';
    
    // The api key used to access SmugMug
    // You can request one of these at: http://www.smugmug.com/hack/apikeys
    
    $smugssp_config['api_key'] = '';
    
    // Path and filename for the cached xml file
    $smugssp_config['xml'] = 'images.xml';
    
    // How often should the update the xml file in seconds 
    // (86400 seconds = 1 day)
    $smugssp_config['cache_period'] = 86400;
    
    $smugssp_config['thumb_size'] = '60x60';
    $smugssp_config['photo_size'] = '549x360';
    
    /* -----------------------------------------------
    Do not edit below this point
    ----------------------------------------------- */
    
    include('inc/smugssp.class.php');
    [B]$smugssp = new smugssp($smugssp_config, '1234, 54321');[/B]
    

    The new format should look like this...
    // Your SmugMug username
    $smugssp_config['username'] = '';
    
    // The api key used to access SmugMug
    // You can request one of these at: http://www.smugmug.com/hack/apikeys
    
    $smugssp_config['api_key'] = '';
    
    // Path and filename for the cached xml file
    $smugssp_config['xml'] = 'images.xml';
    
    // How often should the update the xml file in seconds 
    // (86400 seconds = 1 day)
    $smugssp_config['cache_period'] = 86400;
    
    $smugssp_config['thumb_size'] = '60x60';
    $smugssp_config['photo_size'] = '549x360';
    
    [B]$smugssp_config['albums'] = array(1234,54321);[/B]
    
    /* -----------------------------------------------
    Do not edit below this point
    ----------------------------------------------- */
    
    include('inc/smugssp.class.php');
    [B] $smugssp = new smugssp($smugssp_config);[/B]
    

    There is more infomation in the Readme.txt file.
    David Parry
    SmugMug API Developer
    My Photos
  • Options
    jerryrjerryr Registered Users Posts: 595 Major grins
    edited June 20, 2007
  • Options
    vegasphotogvegasphotog Registered Users Posts: 114 Major grins
    edited June 26, 2007
    Hey David,

    I still cannot seem to figure out the weirdness with my Sands theme....do you think going this route would help?

    -Robert

    www.vegasphotographics.com
  • Options
    jerryrjerryr Registered Users Posts: 595 Major grins
    edited July 21, 2007
    Hi - Here are a some examples of the slideshow pro in use on a smugmug web site:

    Home page - pulls pictures from specific galleries (left side) and pulls pictures from the popular gallery (right side)
    www.jrphotosandwebdesign.com


    Slideshow in header:
    www.jrphotosandwebdesign.com/courtneyandjohnny

    Pulls galleries from Category and lets the end-user navigate:
    http://www.jrphotosandwebdesign.com/gallery/3039760


    cool stuff and again, thank you to Devbobo for putting this together !!!

    - jr
  • Options
    brandofamilybrandofamily Registered Users Posts: 2,013 Major grins
    edited July 21, 2007
    devbobo wrote:

    Please note that this is primarily for someone who has an external website who wishes to retrieve SmugMug images for use with the SlideShowPro flash component.

    Cheers,

    David

    I assume I could use this on SM too...
    is there a benefit to using this method for a slideshow if I am currently using the SS hack?
  • Options
    hopperhawkhopperhawk Registered Users Posts: 1 Beginner grinner
    edited September 8, 2007
    Can not get the slideshow to work...
    Its seems that I am also just getting the blank page staring back at me. I created an API file, and entered my username, followed all directions, still no go. I think it may be due to the xml permissions. I cannot chmod 777 the file as it is a Frontpage server. Any ideas?
    Thanks much and KUTGW!
  • Options
    jerryrjerryr Registered Users Posts: 595 Major grins
    edited September 8, 2007
    Hi - you must change the chmod to 777. Perhaps download some type of 'free' or 'trail' ftp application and change it that way. You also might want to change the time (cache_period) so that the refresh happens more than once a day (depending on how often you change your gallery pictures).
    I just installed this on the youth football site I am the webmaster for -
    everyone loves it (www.shelbylions.com).
    It is also running on my site (www.jrphotosandwebdesign.com) and a
    few others (www.jakigoodphotography.com and www.kbrememberme.com)
    questions - please let me know - devbobo was very helpful to me in getting this to run!

    - jerryr
    hopperhawk wrote:
    Its seems that I am also just getting the blank page staring back at me. I created an API file, and entered my username, followed all directions, still no go. I think it may be due to the xml permissions. I cannot chmod 777 the file as it is a Frontpage server. Any ideas?
    Thanks much and KUTGW!
  • Options
    tsporetspore Registered Users Posts: 25 Big grins
    edited September 14, 2007
    Ok a quick question, I really like this hack, How do I get it to automatically update the xml each day? I tried to get it to automatically pull using cron, but that didn't seem to work? Anyone have any ideas?
  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited September 14, 2007
    tspore wrote:
    Ok a quick question, I really like this hack, How do I get it to automatically update the xml each day? I tried to get it to automatically pull using cron, but that didn't seem to work? Anyone have any ideas?

    if you want to do it that way...

    1. link to the images.xml with the slideshowpro flash component.
    2. in smugssp.php, set $smugssp_config = 0;
    3. from your cron job, call http://server/path/smugssp.php

    thumb.gif

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • Options
    tsporetspore Registered Users Posts: 25 Big grins
    edited September 14, 2007
    Great, Thanks!
  • Options
    sleepdeprivedsleepdeprived Registered Users Posts: 2 Beginner grinner
    edited September 24, 2007
    Is there a way to tweak smugssp.php or another file in the system so that each separate gallery can have an xml file generated?

    For example, album id 3438927 could have a file 3438927.xml

    Am I crazy?
  • Options
    TazzyTazzyTazzyTazzy Registered Users Posts: 32 Big grins
    edited September 25, 2007
    Your ntoe crazy
    I too would like the ability to load different XML files. I can think of a couple of neat ways to integrate this into my drupal module for smugmug. You can see what i have so far at www.warmy.com/gallery ...
  • Options
    jerryrjerryr Registered Users Posts: 595 Major grins
    edited September 26, 2007
    Hi - I have multiple versions the slideshow pro on my site. Each 'version' reads the images from a different gallery or category. What I did was:
    1. Created a different directory of all of the files for each 'version' on my server .
    2. I gave each directory an unique name.
    3. In the swf file, I gave provide the unique XML file path.
    example:
    http://www.myservername.com/smugsspjrv01/smugssp.php for flash slideshow smugsspjrv01

    http://www.myservername.com/smugsspjrv02/smugssp.php for flash slideshow smugsspjrv02


    4. Within the directory 'smugsspjrv01' , I modified the variables in 'smugssp.php' to extract the images from specific galleries. Likewise, within the directory 'smugsspjrv02', I modified the variables in 'smugssp'php' to extract the images from, again, the specific files.

    results:

    http://www.jrphotosandwebdesign.com/gallery/1104104
    (pulls images from my wedding portfolio gallery)

    http://www.jrphotosandwebdesign.com/gallery/3039760
    (pulls images from cars and landscaping categories)


    http://www.shelbylions.com
    (pulls images from my Shelby Lions portfolio -Flash file stored on my server and pulls the images from my smugmug gallery - cool stuff)

    Different versions of the slideshowpro as well as different galleries and categories

    I hope this information is helpful - questions, please feel free to ask :)

    Thanks again to devbobo for his wonderful help and coaching!

    - jerryr
  • Options
    sleepdeprivedsleepdeprived Registered Users Posts: 2 Beginner grinner
    edited September 29, 2007
    Thanks Jerry,

    That's close but I'm trying to do this in an automated fashion so that, ultimately, my client can simply post the ID of a gallery he wants featured into a field, and then behinds the scenes, the necessary files are generated to showcase just that gallery. For that reason, I think I want my solution to be contained in one directory, but I'm not sure if that's feasable.
  • Options
    DigitalTasmaniaDigitalTasmania Registered Users Posts: 31 Big grins
    edited November 27, 2007
    Thanks DevB. & some questions
    G'day DB,

    First, thanks for your efforts on this mate - I really appreciate it!

    I've given up on trying to integrate smugmug with Monoslideshow . . . and seeing as Slideshowpro is inexpensive and seems well built AND you've gone to all theses trubs to make this API hack available . . . I'm going to move to Slideshowpro (Hmmmm . . . cost of Flash could be an issue?)

    I've downloaded your package and set it uo . . . I've had some luck, however I'm confused about two issues.

    (1) When I try to reference multiple galleries I only get one gallery?

    (2) Is there a "workflow" where we are meant to edit the images.xml file - or is that automatically overwritten by the script (hence the need for 777)?

    Thanks again mate for all your efforts.

    Cheers from Tasmania,

    Thomas
  • Options
    DigitalTasmaniaDigitalTasmania Registered Users Posts: 31 Big grins
    edited November 30, 2007
    anyone have this working currently?
    Seems this thread has run cold?

    Does anyone have this Smugmug / SSP integration working currently with the up-to-date version of SSP 1.6.x??

    Thanks in advance.
  • Options
    devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited December 1, 2007
    Seems this thread has run cold?

    Does anyone have this Smugmug / SSP integration working currently with the up-to-date version of SSP 1.6.x??

    Thanks in advance.

    G'day Thomas,

    I believe it should be working, i'm heading to the US tomorrow, but I promise I will check it out sometime next week.

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • Options
    DigitalTasmaniaDigitalTasmania Registered Users Posts: 31 Big grins
    edited December 4, 2007
    Thanks David
    devbobo wrote:
    G'day Thomas,

    I believe it should be working, i'm heading to the US tomorrow, but I promise I will check it out sometime next week.

    Cheers,

    David

    Thanks David . . . enjoy the US.

    I'll give it another hack in the mean time. . .

    BTW, SSP for Lightroom is out and may interest those who would rather not work in a Flash ap?
  • Options
    jerryrjerryr Registered Users Posts: 595 Major grins
    edited March 2, 2008
    I just recently upgrade to 1.7.4 - works like a charm with smugmug and
    the rss feed (OPML).

    You can see an example of a site I recently customized :

    http://www.jakigoodphotography.com


    * The slideshow pulls the images from a specific gallery; all Jaki needs to do is add/change/delete the images in the gallery (easy!)

    * The page which shows the slideshow randomly creates the slideshow from a set of specific galleries; this way, the same visitors dont get use to see the same slideshow gallery everytime! Click on the 'Home' link on the nav bar and the slideshow may show you images from the Seniors Portfolio or Wedding Portfolio (more to come....)

    * The thumbnails in the banner are also slideshow pro slideshows - again - pulling the images from specific galleries

    questions on smugmug and slideshow - please feel free to ask :) jerryr
  • Options
    batobato Registered Users Posts: 5 Beginner grinner
    edited April 9, 2008
    SmugSSP, Thumbs and Album Keys
    I am having trouble with album thumbs. It apears to have to do with random.mg

    I guess the API update now require that the AlbumKey be sent with the random.mg call.

    random.mg?AlbumID=XXX&AlbumKey=XXX&Size=XXX">

    smugssp is not generating that (&AlbumKey=XXX) in the images.xml file

    I found the line in smugssp.class.php that is generating the link but I can't figure out how to get the AlbumKey.

    Any help would be great.
  • Options
    jerryrjerryr Registered Users Posts: 595 Major grins
    edited April 9, 2008
    Hi - What verison of slideshow pro are you using ?

    If you are using 1.7 or 1.8, you can use the OPML method and simply
    do a feed. There are instructions in the slideshow pro pdf about the
    OPML file - it is easy to create with smugmug...

    let me know if you have any questions - jerryr
  • Options
    batobato Registered Users Posts: 5 Beginner grinner
    edited April 11, 2008
    Well I can't seem to get opml or rss for that mater working.
    I tried at first to create the opml file:
    <?xml version="1.0"?>
    <opml version="1.1">
        <head>
            <title>Track Galleries</title>
        </head>
        <body>
            <outline type="rss" xmlUrl="http://bearcats.smugmug.com/hack/feed.mg?Type=gallery&Data=4677480_cfoyV&format=rss200" />
            <outline type="rss" xmlUrl="http://bearcats.smugmug.com/hack/feed.mg?Type=gallery&Data=4586157_y8mqM&format=rss200" />
        </body>
    </opml>
    
    Then I tried just pluggin the rss feed right into ssp and no luck.

    I think ultimately smugssp is the best solution for me. I need to have my slide shows update just based on smugmug activity. Not all our photographers will have access to the web site so when they add a new gallery it need to be reflected in on the web without any access to changing docs on the server.

    For future reference I would like to figure out this opml thing though.

    Chris
  • Options
    batobato Registered Users Posts: 5 Beginner grinner
    edited April 11, 2008
    Ok I found the problem in smugssp:

    At the very bottom of the class in the interateAlbums function

    change:
    $xml .= '<album title="'. htmlspecialchars($album) .'" description="'. htmlspecialchars($album) .'" lgPath="" tn="http://www.smugmug.com/photos/random.mg?AlbumID='.$album.'&Size='.$this->config.'">' ."\n";

    to:
    $xml .= '<album title="'. htmlspecialchars($album) .'" description="'. htmlspecialchars($album) .'" lgPath="" tn="http://www.smugmug.com/photos/random.mg?AlbumID='.$album.'&AlbumKey='.$album.'&Size='.$this->config.'">' ."\n";
  • Options
    jerryrjerryr Registered Users Posts: 595 Major grins
    edited April 11, 2008
    Hi !
    You can use the OPML as well:

    Try this:

    xmlUrl="http://api.smugmug.com/hack/feed.mg?Type=gallery&Data=######&format=rss200&Size=Small"

    Of course, replaacing the ###### with your Album ID and Key

    ps - new slideshow functionality coming soon !!!

    - jerryr
  • Options
    rla1022rla1022 Registered Users Posts: 43 Big grins
    edited April 16, 2008
    Tutorial Please
    jerryr wrote:
    Hi !
    You can use the OPML as well:

    Try this:

    xmlUrl="http://api.smugmug.com/hack/feed.mg?Type=gallery&Data=######&format=rss200&Size=Small"

    Of course, replaacing the ###### with your Album ID and Key

    ps - new slideshow functionality coming soon !!!

    - jerryr


    Jerry,
    Would you kindly post a quick tutorial on how to set this up using OPML. From start to finish. I used Smugssp for a awhile but stoped using it when i decided to not renew my host.
  • Options
    jerryrjerryr Registered Users Posts: 595 Major grins
    edited April 16, 2008
    Hi -
    Here is an example:

    http://www.webdesignsbyjr.com/smugsspjrtest/slideshowhthumb172.html

    The 'swf' file is within the smugsspjrtest directory on the server.
    The 'fla' file has the following parameters set:
    XML FILE PATH : http://www.webdesignsbyjr.com/smugsspjrtest/opml.xml
    XML FILE TYPE: OPML
    (The opml.xml is located within the smugsspjrtest directory on the server)

    The OPML.xml has the following code:

    <?xml version="1.0"?>
    <opml version="1.1">
    <head>
    <title>My list of SMUGMUG feeds</title>
    </head>
    <body>
    <outline type="rss" xmlUrl="http://api.smugmug.com/hack/feed.mg?Type=gallery&Data=1060889&format=rss200&Size=Small&quot; />
    </body>
    </opml>

    The gallery: 1060889 is 'public' and has the 'easy share' option on

    It uses this feed:

    http://api.smugmug.com/hack/feed.mg?Type=gallery&Data=1060889&format=rss200&Size=Small

    For course, the 'fla' file slideshowhthumb172.fla - you can set the parameters, etc, etc...

    So basically, I edit the fla file, create the swf file and upload the 'swf' and 'xml' file to the SAME directory.

    Works like a charm

    Questions - please ask :) jerryr
Sign In or Register to comment.