Dashboard > SmugMug > Home > Customization > Flash Slideshow
Log In   View a printable version of the current page.
SmugMug
Flash Slideshow
Added by Ivar Borst , last edited by Andy Williams on Apr 29, 2008  (view change)
Labels: 
(None)

Got questions about this?  Dgrin's Customizing Forum to the rescue! 

Before you set it up, take a look at the settings from the source gallery (the gallery that holds the photos for your slideshow). It must NOT be passworded and the external links option needs to be set to yes.

To set this up in place of your SmugMug bio on your home page, place this in your bio:

<html>
<script>
var ssConfig = {
    AlbumID: '2504559',
    newWindow: 'false',
    transparent: 'true',
    splash: 'http://www.smugmug.com/img/ria/ShizamSlides/smugmug_black.png',
    showLogo: 'false',
    clickUrl: 'http://www.smugmug.com',
    showThumbs: 'true',
    showButtons: 'true',
    crossFadeSpeed: '350'
};

SM.flash.insertSlideshow(600, 600, ssConfig, 'transparent');
</script>
</html>

If you have a bio photo you want to remove, put this in your control panel->customize->css:

#bioBox .photo {
  display: none;}

If you go this route, after you save anything to your bio you will have to _reload_ the page after you save it to see the slideshow as the javascript has to get parsed.
Only do one or the other of the above options.

 OR

To embed an amazingly cool slideshow of your fabulous photos in a web page that accepts HTML (such as a forum post on dgrin.com or a blog), copy and paste this code:

<object align="middle" height="600" width="600">
<param name="movie" value="http://www.smugmug.com/ria/ShizamSlides-2007090601.swf?AlbumID=2504559&transparent=true&crossFadeSpeed=500&clickUrl=http://www#46;smugmug#46;com">
<param name="wmode" value="transparent">
<param name="bgcolor" value="000000">
<param name="allowNetworking" value="all">
<param name="allowScriptAccess" value="always">
<embed src="http://www.smugmug.com/ria/ShizamSlides-2007090601.swf?AlbumID=2504559&transparent=true&crossFadeSpeed=500&clickUrl=http://www#46;smugmug#46;com"     wmode="transparent" type="application/x-shockwave-flash" allowScriptAccess="always" allowNetworking="all" height="600" width="600"></object>

The only two things you need to change is where it says AlbumID=2504559, replace the number with the ID of the album you want to show in the slideshow.  To get the album ID, go to the album and look at its Internet Address (URL). For example, this album, http://dgrin.smugmug.com/gallery/3591446_xWjD , has an ID of 3591446 (ignore the _xWjD). You will have to replace the Album ID in the code you see above in two places.

There are many other options you can change, described at the bottom of this page.


The meaning of the parameters:

  • showLogo = 'false/true'
    • Show our smugmug logo in the corner of the slideshow
    • Default = true
  • clickUrl = '<blank>/false/<url>'
    • What url clicking on the slideshow send you to
    • Default = blank
    • URL must use #46; instead of any dots '.'
    • blank = clicking goes nowhere
    • url = clicking goes to that url
  • splash = '<url>'
    • Url to an image you want to set as your splash image
    • Default = blank
    • URL must use #46; instead of any dots '.'
  • splashDelay = '<int>'
    • The amount of time to have to splash show in milliseconds
    • Default = 1000
  • showThumbs = 'false/true'
    • Show thumbnails
    • Default = true
  • * AlbumID = '<int>' *
    • Album to show photos from
    • The album ID is located in the URL when viewing any of your albums, for instance in the url http://cmac.smugmug.com/gallery/2504559#131481399, the album id is the set of numbers after /gallery/ and before the #-symbol followed by the ImageID - in this example the AlbumID is 2504559
    • SEMI-REQUIRED You must either provide an AlbumID OR a feedURL as below or nothing works.
  • showStartButton = 'false/true';
    • Whether a play/pause button shows
    • Default = true
  • showButtons = 'false/true';
    • Whether to show any play/pause/next buttons
    • Default = true
  • transparent = 'true/false'
    • This should just always be true, its if the slideshow is transparent or not, can also bgColor otherwise
    • Default = true
  • bgColor = '<hex color like FF0000>'
    • Specify a background color for the slideshow as opposed to being transparent
    • Default = 000000
  • crossFadeSpeed = '<int>'
    • The speed (in ms) of the crossfade
    • Default = 350
  • * feedURL = '<url>' *
    • feed url to use; must be api.smugmug.com instead of nickname.smugmug.com
    • url needs special encoding for characters:
      • ':' must be '%3A'
      • '/' must be '%2F'
      • '?' must be '%3F'
      • '&' must be '%2526'
      • '=' must be'%3D'
      • this should be the start of your feed url: http%3A%2F%2Fapi.smugmug.com%2Fhack%2Ffeed.mg%3FType%3D
    • lose the format parameter at the end of our feed URLs, like this one: &format=atom03
    • SEMI-REQUIRED, you must either provide a feedURL OR an AlbumID as above or nothing works.
    • To see how to make feeds visit FeedsTricks
    • here's an example of a recent photos feed using the complete encoding from above (I broke the line for readability purposes):

feedURL = 'http%3A%2F%2Fapi.smugmug.com%2Fhack%2Ffeed.mg%3FType%3DnicknameRecentPhotos%2526Data%3Dgodsblueprints'

  • randomStart = 'true/false';
    • If it'll start on a random image every time
    • Default = false
  • borderThickness = '<positive, even integer>';
    • Thickness of the border around each image
    • Must be a POSTIVE, EVEN integer
    • Default = blank
  • borderColor = '<hex color like FF0000>
    • Specify the color of the border
    • Both borderThickness AND borderColor must be specified for the border to show
  • forceSize = '<standard-url'>
    • Force the slideshow to use a standard sized photo regardless of slideshow size
    • Valid arguments are TinyURL, ThumbURL, SmallURL, MediumURL, LargeURL, OriginalURL

Notes and things that could use clarification:

  • To create Keyword based slideshows read about the feedURL option above.

GOTCHA:

Add Text To Your Bio So Your Search Results Look Better 

So, if you are using this cool flash slideshow in your bio, you will want to also add some text (that will be hidden) so that your searches on SmugMug do not look like this.   It will also keep a Google search from picking up only the slideshow code in the bio and will, instead, show your text first.

To get around this, add some text to your bio, above the slideshow, and hide it using CSS.

<html>
<div id="bioText">ADD A FEW LINES OF TEXT HERE. REMEMBER, WHATEVER YOU ADD HERE WILL PARTLY SHOW IN THE SEARCH RESULTS.</div>
<script>
Rest of slideshow code.
</script>
</html>

Then, in your CSS code in your customization, add this:

#bioText {display: none;}

Now, the search results will look like this:

Problem solved

ANOTHER GOTCHA:

AdBlock - Firefox Extension

Be sure to add an exception for SmugMug in your AdBlock preferences, or your slideshow may not function correctly.

Sharing a slideshow link - TIP 

You can construct keyword urls:

 http://www.moonriverphotography.com/photos/swfpopup.mg?url=http://www.moonriverphotography.com/keyword/buy+stock+photography#252240584_XoThr

I had a problem trying to use the below code on Blogger but found the solution at Dgrin... seems the embed tag wasn't closed (as it is in the below amended code).
<object align="middle" height="600" width="600">
<param name="movie" value="http://www.smugmug.com/ria/ShizamSlides-2007090601.swf?AlbumID=2504559&transparent=true&crossFadeSpeed=500&clickUrl=http://www#46;smugmug#46;com">
<param name="wmode" value="transparent">
<param name="bgcolor" value="000000">
<param name="allowNetworking" value="all">
<param name="allowScriptAccess" value="always">
<embed src="http://www.smugmug.com/ria/ShizamSlides-2007090601.swf?AlbumID=2504559&transparent=true&crossFadeSpeed=500&clickUrl=http://www#46;smugmug#46;com" wmode="transparent" type="application/x-shockwave-flash" allowScriptAccess="always" allowNetworking="all" height="600" width="600"></embed></object>

Posted by Anonymous at Feb 12, 2008 00:08 | Reply To This

Would like to see this correction made to the code above so people don't have to scroll through the comments after using the code in the wiki and getting an error message.

Posted by Anonymous at Apr 12, 2008 09:47 | Reply To This

GOTCHA:The slideshow won't work on a site that is passworded, we're sorry.

 I have the show running on non-passworded site in a passworded gallery album description
using a passworded gallery for a source. Using the stand alone version.

Allen

Posted by Anonymous at Feb 28, 2008 15:59 | Reply To This

I have it working on my Wordpress blog in FF but not IE. http://www.ross-macleod.com/ourlife

Posted by Anonymous at Mar 30, 2008 22:46 | Reply To This

I cannot captions to the slide show. I hope this can be added in later releases  

Posted by Anonymous at Apr 08, 2008 17:36 | Reply To This

hello!

i have had this great slideshow running for months on my site http://jimmyandvalerie.smugmug.com

I love love love Big Web Guys' main page design. Knowing next to nothing about CSS and HTML, is there a way

to find out the code he used for this?

Thanks so much,

val

Posted by Anonymous at Apr 20, 2008 19:21 | Reply To This

Hi, just found this slideshow approach.  Works great.

One question: On Ivar's page, it is clear that he draws pictures for the slideshow from multiple galleries.  How does he do this?  I have my pictures set up in Categories / Subcategories / Galleries.  I would love to have the slideshow draw from a subcategory or category.  I see that there are 263 pages in DGRIN on this topic, I suspect the answer is there.  Can someone explain or point me to the answer in DGRIN?

Thanks. 

John 

Posted by Anonymous at Apr 27, 2008 00:29 | Reply To This

John... I found a few posts on the thread by doing a thread search for 'Category' ... but everything I found appeared to center on putting a slideshow in a category, not on the homepage.

I want to be able to have ONE slideshow, on the home page, that pulls from multiple galleries (whether in categories or not).  I'm willing to do it via keywords, or by specifying specific galleries from which to pull images, but I can't find it in the thread as to exactly how.  This is the closest thing I could find, but could not get it to work:

Posted by denisegoldberg:

No, it's a little more subtle than that - sorry, I should have been more specific! You will need to use the feedURL instead of the AlbumID.

I have a slideshow setup by keyword in this gallery - http://www.denisegoldberg.com/gallery/3137264_._

Here's the parameter I used:

oParams.feedURL = 'http://www.smugmug.com/hack/feed.mg%3FType=userkeyword%2526NickName=denise%252 6Data=deniseHome';

My smugmug nickname is denise, and the keyword I am using is deniseHome.

--- Denise

I cannot find an explanation as to WHERE or how to use the above code

 

-Stacy

trianglezclub 

Posted by Anonymous at Apr 30, 2008 09:29 | Reply To This

I copied the slideshow HTML then I wanted to put a border around it. THis is my HTML. What should I change because now that I added the border in, its not even working! Thanks so much!

<html>
<script>
var ssConfig =

Unknown macro: { AlbumID}
;

SM.flash.insertSlideshow(600, 600, ssConfig, 'transparent');

</script>
</html>

Posted by Anonymous at May 03, 2008 21:08 | Reply To This

Drop a note to the Help Desk with a link to your site or post in the slide show thread.

Help: http://www.smugmug.com/help/emailreal

Slide show thread: http://www.dgrin.com/showthread.php?t=73247

I have added the slide show in my bio, but how do i center it ?

http://neha.smugmug.com \\

Posted by Anonymous at May 05, 2008 14:47 | Reply To This

Add to your css section:

#userBio {text-align: center;}

Excellent it works !

Posted by Anonymous at May 07, 2008 03:11 | Reply To This

I tried using the code above to center my slideshow, but it didn't work- all of the photos are still justified left in the slideshow frame. any ideas? I'm barefootloose.smugmug.com.

Thanks, Alex

Posted by Anonymous at May 07, 2008 10:11 | Reply To This

Try this:

#userBio {text-align: center !important;}

Great resource. I've created my flash slideshow for my homepage. Now I'd like for the header, navbar, and slideshow to be all that appear on the homepage, and I'd like my visible galleries to be a separate page linked to the "portfolio" tab in the navbar. Possible?
My site is: barefootloose.smugmug.com.
Thanks!

Posted by Anonymous at May 06, 2008 14:48 | Reply To This

I think I missed something and I'm either too dumb to figure it out, or too impatient! Would one of the many geniuses be so kind as to take a look at my website and give me a hint as to where I skrewed up my slideshow??  Thanks

www.cassiaphotography.com

Posted by Anonymous at May 07, 2008 14:22 | Reply To This
Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators