• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization Moving the slideshow button to the cart line

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  2
1 2
Old Sep-08-2009, 07:14 AM
#1
jfriend is online now jfriend OP
Scripting dude-volunteer
Moving the slideshow button to the cart line
If you are interested in moving the slideshow button down to the same line as the cart buttons, this customization will do that like this:



To use this customization, you must have enabled ordering of prints (so the cart buttons are present). If you have not enabled that on any particular gallery, then the slideshow button just won't move in that gallery.

This customization replaces other scripts for moving the slideshow button because those scripts can sometimes cause the slideshow button to no longer operate correctly (the slideshow button is an odd combination of HTML/CSS and Flash). This one works differently and is working reliably.

To install this customization, simply copy all of this code into your bottom javascript.

Code:
//-------------------------------------------------------------------------
// Code to move the slideshow button to the same row 
// as the buy button
// See http://www.dgrin.com/showthread.php?p=1206665 for support.
// Version 2.0
//-------------------------------------------------------------------------
function MyNewSlideshowInit(container, id, config)
{
    if (config && config.slideshowDiv && (config.slideshowDiv == "fsssButton"))
    {
        var cartDiv = YD.get("cartButtonsWrapper");
        if (cartDiv)
        {
            var ssDiv = YD.get("fsssButton");
            if (ssDiv)
            {
                ssDiv.parentNode.removeChild(ssDiv);
            }
            var newDiv = document.createElement("div");
            newDiv.id = "fsssButton";
            cartDiv.appendChild(newDiv);
            container = "cartButtonsWrapper";
        }
    }
    return (myOldSlideshowInit.apply(this, arguments));
}

var myOldSlideshowInit;
if (typeof(SM.buttons.slideshow) != "undefined")
{
    // hook the init function on the SM.buttons.slideshow object
    myOldSlideshowInit = SM.buttons.slideshow.prototype.init;
    SM.buttons.slideshow.prototype.init = MyNewSlideshowInit;
}
and then to make it display properly in the new journal and allthumbs view, add this CSS to the CSS section of your site-wide-customization:

.allthumbs_stretch .albumNav_right, .journalNav_right {width: 400px;}
__________________
--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:21 PM.
Old Feb-17-2010, 05:17 PM
#2
sillywabbit is offline sillywabbit
Silly Wabbit,Tricks r4kds
sillywabbit's Avatar
Re: Move the slideshow question
I added the code at the bottom Javascript as described. It moved the slideshow button as described in my galleries for all but one. Thought it was because of the description text, but another gallery
has a text description and the slideshow button was moved to the side.

www.kevinrabito.com -- "the private lives of pippa lee" is the gallery that the slideshow did
not move.

Thanks for your help.


Quote:
Originally Posted by jfriend
If you are interested in moving the slideshow button down to the same line as the cart buttons, this customization will do that like this:



To use this customization, you must have enabled ordering of prints (so the cart buttons are present). If you have not enabled that on any particular gallery, then the slideshow button just won't move in that gallery.

This customization replaces other scripts for moving the slideshow button because those scripts can sometimes cause the slideshow button to no longer operate correctly (the slideshow button is an odd combination of HTML/CSS and Flash). This one works differently and is working reliably.

To install this customization, simply copy all of this code into your bottom javascript.

Code:
//-------------------------------------------------------------------------
// Code to move the slideshow button to the same row 
// as the buy button
//-------------------------------------------------------------------------
function MyNewSlideshowInit(container, id, config)
{
    if (config && config.slideshowDiv && (config.slideshowDiv == "fsssButton"))
    {
        var cartDiv = YD.get("cartButtonsWrapper");
        if (cartDiv)
        {
            var ssDiv = YD.get("fsssButton");
            if (ssDiv)
            {
                ssDiv.parentNode.removeChild(ssDiv);
            }
            var newDiv = document.createElement("div");
            newDiv.id = "fsssButton";
            cartDiv.appendChild(newDiv);
            container = "cartButtonsWrapper";
        }
    }
    return (myOldSlideshowInit.apply(this, arguments));
}

var myOldSlideshowInit;
if (typeof(SM.buttons.slideshow) != "undefined")
{
    // hook the init function on the SM.buttons.slideshow object
    myOldSlideshowInit = SM.buttons.slideshow.prototype.init;
    SM.buttons.slideshow.prototype.init = MyNewSlideshowInit;
}
Old Feb-17-2010, 05:53 PM
#3
RogersDA is offline RogersDA
Unknown...and happy.
RogersDA's Avatar
You should change the gallery settings (Look and Feel - Appearance) from "Smugmug" to "Custom".
__________________
David
GreyLeaf PhotoGraphy
Old Feb-28-2010, 12:42 AM
#4
mblonde is offline mblonde
mblonde
undo?
is there a way to undo changes or revert back to the standard look etc... mblonde.smugmug.com I tried the "move slideshow button" script and I find that it stacks the buttons when viewed in journal mode. So i'd like to just revert back if possible?

Matt
__________________
[FONT=Century Gothic]MATT BLONDE[/FONT]
[FONT=Century Gothic]P H O T O G R A P H Y[/FONT]
[FONT=Century Gothic]mblonde.smugmug.com[/FONT]
[FONT=Century Gothic]MattBlondePhoto@cox.net[/FONT]
Old Feb-28-2010, 06:18 AM
#5
jfriend is online now jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by mblonde
is there a way to undo changes or revert back to the standard look etc... mblonde.smugmug.com I tried the "move slideshow button" script and I find that it stacks the buttons when viewed in journal mode. So i'd like to just revert back if possible?

Matt
You have two choices:

1) Add this CSS to the CSS section of your site-wide-customization to fix the issue:

.journalNav_right {width: 300px;}

2) Remove the script that you put in your bottom javascript and it will remove this customization.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old May-22-2010, 08:50 AM
#6
mamasboy is offline mamasboy
Beginner grinner
Delete or Hide the Slideshow buttons or any buttons for that matter
Hi,

First and foremost, thanks for the help in advance, love the site guys!

wondering if there are any possibilities of deleting any buttons (Slideshow, Buy or View Cart)

Regards,
Jose

mamasboy.smugmug.com
Old May-22-2010, 10:01 AM
#7
jfriend is online now jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by mamasboy View Post
Hi,

First and foremost, thanks for the help in advance, love the site guys!

wondering if there are any possibilities of deleting any buttons (Slideshow, Buy or View Cart)

Regards,
Jose

mamasboy.smugmug.com
Buy and Cart buttons will go away when you turn printing off for any gallery in gallery settings.

The slideshow button can be hidden with CSS:

.gallery_xxxxx #slideshowButton {display: none;}

where you replace the xxxx with a particular gallery number or if you want to hide it site-wide, you can do so with:

#slideshowButton {display: none;}
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old May-22-2010, 04:33 PM
#8
mamasboy is offline mamasboy
Beginner grinner
Thanks for the update, works like a charm JFriend!

Quote:
Originally Posted by jfriend View Post
Buy and Cart buttons will go away when you turn printing off for any gallery in gallery settings.

The slideshow button can be hidden with CSS:

.gallery_xxxxx #slideshowButton {display: none;}

where you replace the xxxx with a particular gallery number or if you want to hide it site-wide, you can do so with:

#slideshowButton {display: none;}
Old Oct-03-2010, 12:58 AM
#9
Tecnicole is offline Tecnicole
Always grinning
Tecnicole's Avatar
I can't seem to get this to work in thumbnail style galleries.

The .allthumbs_stretch_nav_right, .journalNav_right {width: 400px;}
code does not seem to do anything.

http://photos.humansafterall.com/Nig...16971108_tdV6a

Am I doing something wrong?
Old Oct-03-2010, 04:16 AM
#10
jfriend is online now jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by Tecnicole View Post
I can't seem to get this to work in thumbnail style galleries.

The .allthumbs_stretch_nav_right, .journalNav_right {width: 400px;}
code does not seem to do anything.

http://photos.humansafterall.com/Nig...16971108_tdV6a

Am I doing something wrong?
The correct CSS for all thumbs view is:

.allthumbs_stretch .albumNav_right, .journalNav_right {width: 400px;}

I'm not sure whether Smugmug changed something or what, but this is what works now.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Oct-03-2010, 04:43 AM
#11
Tecnicole is offline Tecnicole
Always grinning
Tecnicole's Avatar
Yay!
Old Nov-27-2010, 07:59 AM
#12
DeeRich is offline DeeRich
Major grins
DeeRich's Avatar
Quote:
Originally Posted by jfriend View Post
The correct CSS for all thumbs view is:

.allthumbs_stretch .albumNav_right, .journalNav_right {width: 400px;}

I'm not sure whether Smugmug changed something or what, but this is what works now.
John, I have tried all these codes, and the Slideshow option is still stacked with the "View Cart" and "Buy" buttons.

Could you please see what I might be doing wrong?

Direct link to gallery: http://oursite.smugmug.com/Reunion/R...5_7jFbX#P-1-10

DeeRich
www.oursite.smugmug.com
Old Nov-27-2010, 08:55 AM
#13
jfriend is online now jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by DeeRich View Post
John, I have tried all these codes, and the Slideshow option is still stacked with the "View Cart" and "Buy" buttons.

Could you please see what I might be doing wrong?

Direct link to gallery: http://oursite.smugmug.com/Reunion/R...5_7jFbX#P-1-10

DeeRich
www.oursite.smugmug.com
Change the CSS to this:

.allthumbs_stretch .albumNav_right, .journalNav_right, .journal_new .albumNav_right {width: 400px;}
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Nov-27-2010, 09:24 AM
#14
DeeRich is offline DeeRich
Major grins
DeeRich's Avatar
Quote:
Originally Posted by jfriend View Post
Change the CSS to this:

.allthumbs_stretch .albumNav_right, .journalNav_right, .journal_new .albumNav_right {width: 400px;}
It worked! You are good! Thank you, thank you!

DeeRich
www.oursite.smugmug.com
Old Feb-13-2011, 03:36 PM
#15
romarzano4u is offline romarzano4u
Big grins
DIDN'T WORK...no fastline homepage slideshow now
This didn't work for me. I wanted to change the slideshow and share buttons all on the same line as the buy/view cart. I attempted your code - adding the slideshow button. It took away my fastline homepage slideshow! I just deleted the code and it came right back. Any suggestions...my home page is http://www.organicvisionsphotography.com/




Quote:
Originally Posted by jfriend View Post
If you are interested in moving the slideshow button down to the same line as the cart buttons, this customization will do that like this:



To use this customization, you must have enabled ordering of prints (so the cart buttons are present). If you have not enabled that on any particular gallery, then the slideshow button just won't move in that gallery.

This customization replaces other scripts for moving the slideshow button because those scripts can sometimes cause the slideshow button to no longer operate correctly (the slideshow button is an odd combination of HTML/CSS and Flash). This one works differently and is working reliably.

To install this customization, simply copy all of this code into your bottom javascript.

Code:
 
//-------------------------------------------------------------------------
// Code to move the slideshow button to the same row 
// as the buy button
// See http://www.dgrin.com/showthread.php?p=1206665 for support.
// Version 2.0
//-------------------------------------------------------------------------
function MyNewSlideshowInit(container, id, config)
{
    if (config && config.slideshowDiv && (config.slideshowDiv == "fsssButton"))
    {
        var cartDiv = YD.get("cartButtonsWrapper");
        if (cartDiv)
        {
            var ssDiv = YD.get("fsssButton");
            if (ssDiv)
            {
                ssDiv.parentNode.removeChild(ssDiv);
            }
            var newDiv = document.createElement("div");
            newDiv.id = "fsssButton";
            cartDiv.appendChild(newDiv);
            container = "cartButtonsWrapper";
        }
    }
    return (myOldSlideshowInit.apply(this, arguments));
}
 
var myOldSlideshowInit;
if (typeof(SM.buttons.slideshow) != "undefined")
{
    // hook the init function on the SM.buttons.slideshow object
    myOldSlideshowInit = SM.buttons.slideshow.prototype.init;
    SM.buttons.slideshow.prototype.init = MyNewSlideshowInit;
}
and then to make it display properly in the new journal and allthumbs view, add this CSS to the CSS section of your site-wide-customization:

.allthumbs_stretch .albumNav_right, .journalNav_right {width: 400px;}
__________________
[FONT=Comic Sans MS]Thanks much![/FONT]
Rose Marzano

[FONT=Lucida Sans Unicode]luhttp[/FONT]://www.organicvisionsphotography.com/

rose@organicvisionsphotography.com
Old Feb-13-2011, 03:41 PM
#16
jfriend is online now jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by romarzano4u View Post
This didn't work for me. I wanted to change the slideshow and share buttons all on the same line as the buy/view cart. I attempted your code - adding the slideshow button. It took away my fastline homepage slideshow! I just deleted the code and it came right back. Any suggestions...my home page is http://www.organicvisionsphotography.com/
Chances are you introduced a script error when you copied the code in - probably a copy/paste error. The script does work. But, without the fault in place to look at what's wrong, I can't really help much more. If you still want to get it to work, put it back in, leave it in and post here if it doesn't work and I can take a look at why.
__________________
--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-04-2011, 07:54 AM
#17
StosPhotography is offline StosPhotography
Big grins
Awesome man, much appreciated! Worked first try no problems, and I know NOTHING about CSS/HTML stuff haha thank youuu!
Old Jul-24-2011, 08:54 PM
#18
ewebwoman is offline ewebwoman
Beginner grinner
ewebwoman's Avatar
I tried moving the slideshow using the bottom javascript and CSS as outlined. It worked for Engagements but not for Guestbooks within Engagements or any of the Weddings or Design galleries. I checked to make sure that they are all set to Custom appearance and Print enabled. Please help. Thanks.
http://www.wd3photography.com
http://www.wd3photography.com/Weddings
http://www.wd3photography.com/Engage...957343_RdXz22q
Old Jul-25-2011, 08:29 AM
#19
jfriend is online now jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by ewebwoman View Post
I tried moving the slideshow using the bottom javascript and CSS as outlined. It worked for Engagements but not for Guestbooks within Engagements or any of the Weddings or Design galleries. I checked to make sure that they are all set to Custom appearance and Print enabled. Please help. Thanks.
http://www.wd3photography.com
http://www.wd3photography.com/Weddings
http://www.wd3photography.com/Engage...957343_RdXz22q
This guestbook gallery http://www.smugmug.com/gallery/17870...869166_xpHXdFW is set to Hide Owner. Hide Owner must be set to No.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Jan-04-2012, 08:02 AM
#20
MiguelCz is offline MiguelCz
Beginner grinner
Partly offtopic! If we can move the 'share' and the 'slideshow' buttons to the cart line, why there's no chance of moving the 'style' button? To me it'd make so much sense, to have all the buttons in the same line... Now it looks so lonely up there...
In anyway, THANK YOU so much for all the tricks, my website (www.miguel.cz) looks so much better after using many of your tricks!! Many thanks!! :)
Page 1  of  2
1 2
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