|
|
Thread Tools | Display Modes |
|
#1
|
|
|
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;
}
.allthumbs_stretch .albumNav_right, .journalNav_right {width: 400px;}
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets 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. |
|
|
|
|
#2
|
||
|
Silly Wabbit,Tricks r4kds
|
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:
|
|
|
|
||
|
#3
|
|
|
Unknown...and happy.
|
You should change the gallery settings (Look and Feel - Appearance) from "Smugmug" to "Custom".
|
|
|
|
|
#4
|
|
|
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] |
|
|
|
|
#5
|
||
|
Scripting dude-volunteer
|
Quote:
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 Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#6
|
|
|
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 |
|
|
|
|
#7
|
||
|
Scripting dude-volunteer
|
Quote:
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 Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#8
|
||
|
Beginner grinner
|
Thanks for the update, works like a charm JFriend!
Quote:
|
|
|
|
||
|
#9
|
|
|
Always grinning
|
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? |
|
|
|
|
#10
|
||
|
Scripting dude-volunteer
|
Quote:
.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 Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#11
|
|
|
Always grinning
|
Yay!
|
|
|
|
|
#12
|
||
|
Major grins
|
Quote:
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 |
|
|
|
||
|
#13
|
||
|
Scripting dude-volunteer
|
Quote:
.allthumbs_stretch .albumNav_right, .journalNav_right, .journal_new .albumNav_right {width: 400px;}
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#14
|
||
|
Major grins
|
Quote:
DeeRich www.oursite.smugmug.com |
|
|
|
||
|
#15
|
||
|
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:
__________________
[FONT=Comic Sans MS]Thanks much![/FONT] Rose Marzano [FONT=Lucida Sans Unicode]luhttp[/FONT]://www.organicvisionsphotography.com/ rose@organicvisionsphotography.com |
|
|
|
||
|
#16
|
||
|
Scripting dude-volunteer
|
Quote:
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#17
|
|
|
Big grins
|
Awesome man, much appreciated! Worked first try no problems, and I know NOTHING about CSS/HTML stuff haha thank youuu!
|
|
|
|
|
#18
|
|
|
Beginner grinner
|
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 |
|
|
|
|
#19
|
||
|
Scripting dude-volunteer
|
Quote:
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#20
|
|
|
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!! :) |
|
|
|
| Tell The World! | |
| Thread Tools | |
| Display Modes | |
|
|