• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization How to customize gallery slideshow or full screen slideshow

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Page 1  of  7
1 2 3 4 5 Last »
Old Jul-20-2009, 01:13 PM
#1
jfriend is offline jfriend OP
Scripting dude-volunteer
How to customize gallery slideshow or full screen slideshow
[[This customization is no longer supported. Last I checked, it does work in some browsers, but not all. If you use it, you are on your own - please do not expect support or help in making it work. Unfortunately, Smugmug makes it nearly impossible to customize gallery slideshows when it would have been very trivial for them to make it easy to customize.]]

As many have realized, Smugmug did not build in a way to customize the parameters on either the gallery slideshow or the full screen slideshow. Homepage slideshows, on the other hand, can control all sorts of things (captions, thumbs, buttons, transparency, etc...). So, using this customization, you can turn off captions, buttons, speed indicators and thumbs in either the gallery slideshow or the full screen slideshow.
Here's how you do it:

Step 1: Paste Code into your Bottom Javascript.

Paste this code into your bottom javascript in your site-wide-customization:

Code:
// ---------------------------------------------
// Slideshow parameter modification
// ---------------------------------------------
function MyEmbedSWF(swfURL, containerID, swfID, version, backgroundColor, expressInstall)
{
	// catch all exceptions here so, if there's an error, we just continue on as if we weren't here
	try {
		var overrides = null;
		if (this._type == "gallery")
		{
			overrides = this.gallerySlideshowOverrides;
		}
		else if (this._type == "fullScreen")
		{
			overrides = this.fullScreenSlideshowOverrides;
		}
		if (overrides)
		{
			// copy all overrides over into the objects flashVars
			for (var i in overrides)
			{
				this._flashVars[i] = overrides[i];
			}
		}
	} catch (e) {}
	oldEmbedSWF.apply(this, arguments);		// call the regular handler for this method
}


function SetSlideshowOverrides()
{
	var globalGallerySlideshowConfigOverride = {
		showButtons: "false",
		showSpeed: "false",
		showThumbs: "false",
		captions: "false",
		transparent: "true"		// no comma after the last entry in this table or IE7 will barf
	};

	var globalFullScreenSlideshowConfigOverride = {
		showButtons: "false",
		showSpeed: "false"		// no comma after the last entry in this table or IE7 will barf
	};
	
	SM.flash.Slideshow.prototype.gallerySlideshowOverrides = globalGallerySlideshowConfigOverride;
	SM.flash.Slideshow.prototype.fullScreenSlideshowOverrides = globalFullScreenSlideshowConfigOverride;
	
	// now check to see if anything was defined just for this gallery and use it instead
	if (typeof(localGallerySlideshowConfigOverride) == "object")
	{
		SM.flash.Slideshow.prototype.gallerySlideshowOverrides = localGallerySlideshowConfigOverride;
	}
	if (typeof(localFullScreenSlideshowConfigOverride) == "object")
	{
		SM.flash.Slideshow.prototype.fullScreenSlideshowOverrides = localFullScreenSlideshowConfigOverride;
	}
}

// SM.flash.Slideshow is only defined in a galleries page
if (typeof(SM.flash.Slideshow) == "function")
{
	var oldEmbedSWF = SM.flash.Slideshow.superclass._embedSWF;
	SM.flash.Slideshow.superclass._embedSWF = MyEmbedSWF;
	SetSlideshowOverrides();
}

// ---------------------------------------------
// end of slideshow customization
// ---------------------------------------------
Step 2: Modify Slideshow Parameters

In this code that you just put into your bottom javascript are two tables of values. One is called globalGallerySlideshowConfigOverride, the other is called globalFullScreenSlideshowConfigOverride. This is where you set the values that you want your gallery slideshows or your full screen slideshows to have. These tables affect all gallery slideshow or all full screen slideshows in your site. If you want to only change the slideshow in one specific gallery, then these tables can be left empty and you can read on to the following steps.

The valid values for these tables are as follows:

Code:
showButtons: "false",
showSpeed: "false",
showThumbs: "false",
captions: "false",
bgColor: "FF0000",
You MUST remember that the last parameter in this table should NOT have a comma after it or the code will fail in IE7 and will not work. For the bgColor parameter, you put any six digit hex color for the background of the slideshow.

Step 3 - Set Parameters for a Specific Gallery (optional)

If you want to set different parameters for a specific gallery, here's how you would do that. In the albumDescription for that gallery, paste this code:

Code:
<html>
<script type="text/javascript">
var localGallerySlideshowConfigOverride = {
    showButtons: "false",
    showSpeed: "false",
    showThumbs: "false",
    captions: "false"
};

var localFullScreenSlideshowConfigOverride = {
    showButtons: "false",
    showSpeed: "false"
};
</script>
</html>
Then, edit the parameters in these tables to what you want for that specific gallery. The earlier code will look for the existence of these gallery specific tables and if they exist, it will use the values from here instead of the global values. Again, remember that you must not have a comma after the last parameter in each table.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question

Last edited by jfriend; Oct-15-2010 at 01:10 PM.
Old Jul-28-2009, 11:52 AM
#2
manieer is offline manieer
Beginner grinner
Hi there,
Thanks for this tutorial.

I have used this for my homepage slideshow but cannot change the background color.

http://brijeshpatel.smugmug.com/gallery/1869831

I want to change the black background color of the slideshow so it blends with the rest of the page.

Would be greatfull for your help.

Manieer
Old Jul-28-2009, 11:55 AM
#3
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by manieer
Hi there,
Thanks for this tutorial.

I have used this for my homepage slideshow but cannot change the background color.

http://brijeshpatel.smugmug.com/gallery/1869831

I want to change the black background color of the slideshow so it blends with the rest of the page.

Would be greatfull for your help.

Manieer
I haven't yet supported the background color customization. I will see if I can look into that.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Jul-28-2009, 03:13 PM
#4
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by manieer
Hi there,
Thanks for this tutorial.

I have used this for my homepage slideshow but cannot change the background color.

http://brijeshpatel.smugmug.com/gallery/1869831

I want to change the black background color of the slideshow so it blends with the rest of the page.

Would be greatfull for your help.

Manieer
As it turns out, you can just add the bgColor parameter to the same structure as above and it will allow you to control the background color of the gallery slideshow. I added that info to the original posting.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Jul-29-2009, 03:16 AM
#5
rainprel is offline rainprel
Big grins
Hi. I've tried the lengthy code and put it in my bottom javascript as mentioned above, but it still did not remove my captions in full screen slideshow which I wanted to do. The only thing it did was get rid of the speed buttons on the topmost left. I was wondering if I'm missing something. Please help. Thanks!
Old Jul-29-2009, 06:53 AM
#6
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by rainprel
Hi. I've tried the lengthy code and put it in my bottom javascript as mentioned above, but it still did not remove my captions in full screen slideshow which I wanted to do. The only thing it did was get rid of the speed buttons on the topmost left. I was wondering if I'm missing something. Please help. Thanks!
Can you please provide a link to the gallery that has captions where you're trying to remove them from the full screen slideshow so I can look at what you implemented?
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Jul-29-2009, 08:27 AM
#7
rainprel is offline rainprel
Big grins
Quote:
Originally Posted by jfriend
Can you please provide a link to the gallery that has captions where you're trying to remove them from the full screen slideshow so I can look at what you implemented?
Thanks for the quicky reply, John.

Here's the direct link to the gallery:
http://www.yenbaet.com/gallery/8348541_8SrPF
or, my smugmug URL:
http://rainprel.smugmug.com/gallery/8348541_8SrPF
Old Jul-29-2009, 08:57 AM
#8
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by rainprel
Thanks for the quicky reply, John.

Here's the direct link to the gallery:
http://www.yenbaet.com/gallery/8348541_8SrPF
or, my smugmug URL:
http://rainprel.smugmug.com/gallery/8348541_8SrPF
In this part of the code:

Code:
    var globalGallerySlideshowConfigOverride = {
        showButtons: "false",
        showSpeed: "false",
        showThumbs: "false",
        captions: "false"           // no comma after the last entry in this table or IE7 will barf
    };

    var globalFullScreenSlideshowConfigOverride = {
        showButtons: "false",
        showSpeed: "false"        // no comma after the last entry in this table or IE7 will barf
    };
you have to set the parameters you want. These are simply example parameters. You haven't specified to turn captions off for the full screen slideshow on buttons and speed indicators. If you add captions: "false" to the full screen list, captions will go off.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Jul-29-2009, 10:26 AM
#9
rainprel is offline rainprel
Big grins
Quote:
Originally Posted by jfriend
In this part of the code:

Code:
    var globalGallerySlideshowConfigOverride = {
        showButtons: "false",
        showSpeed: "false",
        showThumbs: "false",
        captions: "false"           // no comma after the last entry in this table or IE7 will barf
    };

    var globalFullScreenSlideshowConfigOverride = {
        showButtons: "false",
        showSpeed: "false"        // no comma after the last entry in this table or IE7 will barf
    };
you have to set the parameters you want. These are simply example parameters. You haven't specified to turn captions off for the full screen slideshow on buttons and speed indicators. If you add captions: "false" to the full screen list, captions will go off.

Thanks so much once again. Worked lke a charm. I think a lot of people are looking for this code; this definitely helps.
Old Jul-29-2009, 02:55 PM
#10
kenyahudson is offline kenyahudson
Big grins
Thanks for the code.
__________________
Photos: http://www.kenyahudson.com
Profiles: Lightstalkers | Sportsshooter
Gear:
Canon 40D | Canon 350D | Tokina 17/3.5 | Sigma 30mm/1.4 | EF 50mm/1.4 | EF 85mm/1.8 | EF 200mm/2.8L II | EF 300mm/4.0L | Canonet QL 17 GIII | Yashica 635 | Elinchrom Skyport Transmitter & Triggers | Canon 430EX | Nikon SB-24 (x2) | Bogen 3208 Tripod
Old Aug-01-2009, 07:26 AM
#11
sunxsweet is offline sunxsweet
Shooter
sunxsweet's Avatar
can we customize the size (width) of the slideshow with this code?
Old Aug-01-2009, 04:23 PM
#12
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by sunxsweet
can we customize the size (width) of the slideshow with this code?
Assuming you're talking about the slideshow view in a gallery, the width of the images is automatically calculated based on what Smugmug thinks will fit in the available screen area. I'd have to look to see whether it's possible to customize that. What exactly are you wanting to do? Make it bigger? Make it smaller? How much relative to the screen size?
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Aug-12-2009, 02:59 AM
#13
corbosman is offline corbosman
underwater kungfu
corbosman's Avatar
Is there a way to set the default speed to 'Fast'?
__________________
Cor Bosman - http://underwa.ter.net
http://uwimages.smugmug.com
Old Aug-12-2009, 04:58 AM
#14
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by corbosman
Is there a way to set the default speed to 'Fast'?
Not that I know of.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Aug-17-2009, 06:27 AM
#15
jfriend is offline jfriend OP
Scripting dude-volunteer
Fixed a problem with this code that was causing a script error in non-gallery pages that could cause some other code to stop working. If you have installed this code, you should update your code with the newest version that is now included in the first post in this thread.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Aug-25-2009, 03:22 PM
#16
AngusD is offline AngusD
Beginner grinner
Quote:
Originally Posted by jfriend
Fixed a problem with this code that was causing a script error in non-gallery pages that could cause some other code to stop working. If you have installed this code, you should update your code with the newest version that is now included in the first post in this thread.
Hey,

Thanks for getting back to me over here and sorry for my delayed response. I've copied and pasted in the new code but I'm still having the same issue.

What am I doing wrong?

As an addition, this is what I have in my Bio box:
<html>
********>
var ssConfig = {
AlbumID: '9192288',
newWindow: 'false',
transparent: 'true',
showLogo: 'false',
clickToImage: 'true',
showThumbs: 'false',
randomize: 'true',
borderThickness: '10',
borderColor:'ffffff',
showButtons: 'false',
imgAlign: 'center',
clickUrl: '/galleries',
crossFadeSpeed: '350'
};

SM.flash.insertSlideshow(1000, 700, ssConfig, 'transparent');
</********
</html>

Last edited by AngusD; Aug-25-2009 at 11:16 PM.
Old Aug-26-2009, 09:18 AM
#17
JWCarter is offline JWCarter
Big grins
How do you add the bottoms back to the gallery?
Www.jwcarterphotograpy.comhttp://www.jwcarterphotography.com

QUOTE=jfriend]As many have realized, Smugmug did not build in a way to customize the parameters on either the gallery slideshow or the full screen slideshow. Homepage slideshows, on the other hand, can control all sorts of things (captions, thumbs, buttons, transparency, etc...). So, using this customization, you can turn off captions, buttons, speed indicators and thumbs in either the gallery slideshow or the full screen slideshow.
Here's how you do it:

Step 1: Paste Code into your Bottom Javascript.

Paste this code into your bottom javascript in your site-wide-customization:

Code:
// ---------------------------------------------
// Slideshow parameter modification
// ---------------------------------------------
function MyEmbedSWF(swfURL, containerID, swfID, version, backgroundColor, expressInstall)
{
	// catch all exceptions here so, if there's an error, we just continue on as if we weren't here
	try {
		var overrides = null;
		if (this._type == "gallery")
		{
			overrides = this.gallerySlideshowOverrides;
		}
		else if (this._type == "fullScreen")
		{
			overrides = this.fullScreenSlideshowOverrides;
		}
		if (overrides)
		{
			// copy all overrides over into the objects flashVars
			for (var i in overrides)
			{
				this._flashVars[i] = overrides[i];
			}
		}
	} catch (e) {}
	oldEmbedSWF.apply(this, arguments);		// call the regular handler for this method
}


function SetSlideshowOverrides()
{
	var globalGallerySlideshowConfigOverride = {
		showButtons: "false",
		showSpeed: "false",
		showThumbs: "false",
		captions: "false",
		transparent: "true"		// no comma after the last entry in this table or IE7 will barf
	};

	var globalFullScreenSlideshowConfigOverride = {
		showButtons: "false",
		showSpeed: "false"		// no comma after the last entry in this table or IE7 will barf
	};
	
	SM.flash.Slideshow.prototype.gallerySlideshowOverrides = globalGallerySlideshowConfigOverride;
	SM.flash.Slideshow.prototype.fullScreenSlideshowOverrides = globalFullScreenSlideshowConfigOverride;
	
	// now check to see if anything was defined just for this gallery and use it instead
	if (typeof(localGallerySlideshowConfigOverride) == "object")
	{
		SM.flash.Slideshow.prototype.gallerySlideshowOverrides = localGallerySlideshowConfigOverride;
	}
	if (typeof(localFullScreenSlideshowConfigOverride) == "object")
	{
		SM.flash.Slideshow.prototype.fullScreenSlideshowOverrides = localFullScreenSlideshowConfigOverride;
	}
}

// SM.flash.Slideshow is only defined in a galleries page
if (typeof(SM.flash.Slideshow) == "function")
{
	var oldEmbedSWF = SM.flash.Slideshow.superclass._embedSWF;
	SM.flash.Slideshow.superclass._embedSWF = MyEmbedSWF;
	SetSlideshowOverrides();
}

// ---------------------------------------------
// end of slideshow customization
// ---------------------------------------------
Step 2: Modify Slideshow Parameters

In this code that you just put into your bottom javascript are two tables of values. One is called globalGallerySlideshowConfigOverride, the other is called globalFullScreenSlideshowConfigOverride. This is where you set the values that you want your gallery slideshows or your full screen slideshows to have. These tables affect all gallery slideshow or all full screen slideshows in your site. If you want to only change the slideshow in one specific gallery, then these tables can be left empty and you can read on to the following steps.

The valid values for these tables are as follows:

Code:
showButtons: "false",
showSpeed: "false",
showThumbs: "false",
captions: "false",
bgColor: "FF0000",
You MUST remember that the last parameter in this table should NOT have a comma after it or the code will fail in IE7 and will not work. For the bgColor parameter, you put any six digit hex color for the background of the slideshow.

Step 3 - Set Parameters for a Specific Gallery (optional)

If you want to set different parameters for a specific gallery, here's how you would do that. In the albumDescription for that gallery, paste this code:

Code:
<html>
<script type="text/javascript">
var localGallerySlideshowConfigOverride = {
    showButtons: "false",
    showSpeed: "false",
    showThumbs: "false",
    captions: "false",
};

var localFullScreenSlideshowConfigOverride = {
    showButtons: "false",
    showSpeed: "false"
};
<script>
</html>
Then, edit the parameters in these tables to what you want for that specific gallery. The earlier code will look for the existence of these gallery specific tables and if they exist, it will use the values from here instead of the global values. Again, remember that you must not have a comma after the last parameter in each table.[/QUOTE]
Old Aug-26-2009, 09:46 AM
#18
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by JWCarter
How do you add the bottoms back to the gallery?
You asked something about the bottoms of your gallery. I have no idea what question you are asking about or what gallery you are asking about. Please describe the issue in more detail and please include a link directly to a gallery that has the problem and I'd be happy to help.

P.S. The link to your site is really messed up in dgrin. I am guessing that the proper link is http://www.jwcarter-photo.com, but I'm not sure.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Aug-26-2009, 12:22 PM
#19
JWCarter is offline JWCarter
Big grins
Slideshow buttons
Quote:
Originally Posted by jfriend
You asked something about the bottoms of your gallery. I have no idea what question you are asking about or what gallery you are asking about. Please describe the issue in more detail and please include a link directly to a gallery that has the problem and I'd be happy to help.

P.S. The link to your site is really messed up in dgrin. I am guessing that the proper link is http://www.jwcarter-photo.com, but I'm not sure.

I am trying to put back the full screen slideshow buttons back on my
Wedding and Event pages. I think the slideshow updates is great and
I want to use it.
Sorry about the last post and the web adress in your reply is correct.
Thanks.
John
Old Aug-26-2009, 12:35 PM
#20
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by JWCarter
I am trying to put back the full screen slideshow buttons back on my
Wedding and Event pages. I think the slideshow updates is great and
I want to use it.
Sorry about the last post and the web adress in your reply is correct.
Thanks.
John
T restore the slideshow button, remove these lines from your CSS:

.gallery_5525052 #breadcrumb {display: none;}
.gallery_5525911 #breadcrumb {display: none;}

If you don't want the style button to show, then go to customize gallery for those galleries and lock the style to Smugmug. This will cause Smugmug to take away the style button.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Page 1  of  7
1 2 3 4 5 Last »
Tell The World!  

Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump