|
|
Thread Tools | Display Modes |
|
#1
|
|
|
Scripting dude-volunteer
|
Move Share button to cart line
If you have hidden the breadcrumb, but still want the Share button visible, then you can move it to the same row as the cart buttons with this customization.
![]() To use this customization, simply paste the code below into your bottom javascript. Code:
//------------------------------------------------------------------------------------
// Move share button to the cart line
// See http://www.dgrin.com/showthread.php?p=1206681 for support and more info.
// Version 1.0
//-------------------------------------------------------------------------------------
YE.onContentReady("shareButton", MoveToCartDiv);
function MoveToCartDiv()
{
MoveObjToDiv(this, "cartButtonsWrapper");
}
function MoveObjToDiv(sourceObj, destDiv)
{
var destDivObj = document.getElementById(destDiv); // get the object for the dest div
if (sourceObj && destDivObj)
{
sourceObj.parentNode.removeChild(sourceObj); // remove object from it's current parent
destDivObj.appendChild(sourceObj); // add it to the new parent
}
}
__________________
--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:22 PM. |
|
|
|
|
#2
|
|
|
dejavu
|
Hi,
This afternoon, I was just looking to get this option on my site :) Thx for sharing this script !
__________________
http://gianni.smugmug.com |
|
|
|
|
#3
|
|
|
Big grins
|
No longer working on Keywords page?
I added this to my javascript months ago and all has worked great until relatively recently.
Now, however, I no longer have the Share button on the Keywords page. Any insights into something that has changed? |
|
|
|
|
#4
|
||
|
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 |
|
|
|
||
|
#5
|
||
|
Big grins
|
Quote:
Here is example: http://tri-to-win-events.smugmug.com.../y9-rsm-sm-pmb Here is site that users use to get to smugmug dynamically generated keyword page smugmug site. http://www.savagemantri.org/media_library.html |
|
|
|
||
|
#6
|
||
|
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 |
|
|
|
||
|
#7
|
||
|
Big grins
|
Quote:
|
|
|
|
||
|
#8
|
||
|
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 |
|
|
|
||
|
#9
|
|
|
Major grins
|
So, I tried copying and pasting a couple times to make sure I got it right, but now I'm guessing that this code doesn't work with the Thumbnails gallery style. Sample gallery:
http://photos.chrisskopec.com/Landsc...89757898_mQuDr Any chance this can be made to work in Thumbnails style? |
|
|
|
|
#10
|
||
|
Scripting dude-volunteer
|
Quote:
#allthumbs_stretch #cartButtonsWrapper {width: 275px; text-align: right;}
__________________
--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
|
||
|
Major grins
|
Quote:
|
|
|
|
||
|
#12
|
|
|
Big grins
|
I just don't see my share button at all... I have still ticked yes to the "Easy share" link. If I turn the appearance from Custom to SmugMug the button appears. Does this have something to do with my breadcrumb trail removed?
Thanks for the help! www.hvitabirnir.is Last edited by hrex; Aug-11-2010 at 12:54 PM. |
|
|
|
|
#13
|
||
|
Scripting dude-volunteer
|
Quote:
.notLoggedIn .share_button {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 |
|
|
|
||
|
#14
|
|
|
Big grins
|
...I have revealed my ignorance in programming.
Cheers jfriend. |
|
|
|
|
#15
|
||
|
Surf & Sport Photography
|
Doesn't work with breadcrumb visible?
Please take a look at how it appears on my site: http://artminds.co/uYMIEQ
Doesn't move the Share button to the same line as the Cart buttons. Any suggestions? Art Minds Quote:
|
|
|
|
||
|
#16
|
||
|
Scripting dude-volunteer
|
Quote:
Code:
//------------------------------------------------------------------------------------ // Move share button to the cart line // See http://www.dgrin.com/showthread.php?p=1206681 for support and more info. // Version 1.0 //-------------------------------------------------------------------------------------
__________________
--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
|
||
|
Surf & Sport Photography
|
Thank you! That fixed it!
Quote:
Art |
|
|
|
||
|
#18
|
|
|
J.Chin Photography
|
Thanks this code works (most of the time).
Why does it sometimes move the "Share" button to the left of the "Buy" button? Sometimes refreshing the page would move it back to the right side of "View Cart".
__________________
Johnny J. Chin ~ J. Chin Photography Facebook ♦ Flickr ♦ SmugMug SmugMug referral coupon code: ix3uDyfBU6xXs (use this for a discount off your SmugMug subscription) |
|
|
|
|
#19
|
|
|
Scripting dude-volunteer
|
A variation in timing of Smugmug javascript based on how the page is loaded. See my other answer to a related question you asked for more info.
__________________
--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
|
|
|
Major grins
|
Hi all :-)
I am using the filmstrip gallery. When I go through to the view the image, the social media share buttons are missing. I have set my gallery to easy share and external links, but no joy. I suspect this mod has affected that function. Here is an affected gallery: http://www.rtimberlake.com/Prints/Na...3222884_m5Nq6W Any thoughts?
__________________
http://www.business-photography.biz/ |
|
|
|
| Tell The World! | |
| Thread Tools | |
| Display Modes | |
|
|