• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization Add a download button to your site

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 13  of  14
Old Oct-25-2012, 11:28 PM
#241
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by fpbooth View Post
I tried to use CSS, but not quite successfully... You can still see the original download button behind it: Example

I used this CSS:
/* Stylize Download button */
#downloadButtonId-button {
font-weight:bold;
color:#92B942;
background-color:#ffffff;
border:0px;
}
You can add this CSS:

Code:
/* Stylize Download button */
#downloadButtonId-button {
    font-weight:bold;
    color:#92B942;
    background-color:#ffffff;
    border:0;
    padding:0;
}

#downloadButtonId, #downloadButtonId .first-child {
    border: none;
    background: none;
    padding: 0;
}
Or, you can just modify the code to not add the standard Smugmug classes to the download button (add your own class) and then define your own style for that class.
__________________
--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-30-2013, 09:20 PM
#242
gol is offline gol
Beginner grinner
private downloads
Quote:
Originally Posted by jfriend View Post
By default, it will only show on galleries that you have originals enabled for public access (e.g. the public could already download your originals). The idea is that if you don't want people to be able to download your originals, then just don't offer access to them by setting the customize gallery setting to a smaller size like X2. That's how you control where the button shows.
Is there a way to make it work for private galleries. I often have to explain to parents how to download the pictures of their kids. I think this extra button would help a lot.

But my galleries are all private, for parents (from school and ballet classes) only.
Old Jan-30-2013, 09:50 PM
#243
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by gol View Post
Is there a way to make it work for private galleries. I often have to explain to parents how to download the pictures of their kids. I think this extra button would help a lot.

But my galleries are all private, for parents (from school and ballet classes) only.
As far as I know, this button will work in any gallery that is in the Smugmug gallery style, is set to allow originals and where right-click-protection off. I just tested it in an unlisted gallery and it works fine there.

Smugmug doesn't have a "private" setting. When you say "private gallery", what do you mean? Do you mean "password protected"? Or do you mean "unlisted"? Or something else?
__________________
--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-30-2013, 10:08 PM
#244
gol is offline gol
Beginner grinner
Quote:
Originally Posted by jfriend View Post
As far as I know, this button will work in any gallery that is in the Smugmug gallery style, is set to allow originals and where right-click-protection off. I just tested it in an unlisted gallery and it works fine there.

Smugmug doesn't have a "private" setting. When you say "private gallery", what do you mean? Do you mean "password protected"? Or do you mean "unlisted"? Or something else?
No, sorry, I just meant unlisted, i.e., not public. Usually password protected, but not always.

Anyway, I figured that's why it didn't work when I tried it yesterday.

I only looked at the preview, without submitting it -- could that be why I didn't see it?
Old Jan-30-2013, 11:10 PM
#245
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by gol View Post
No, sorry, I just meant unlisted, i.e., not public. Usually password protected, but not always.

Anyway, I figured that's why it didn't work when I tried it yesterday.

I only looked at the preview, without submitting it -- could that be why I didn't see it?
I don't know how Smugmug previews work. I promise you that the download button works in an unlisted gallery if the other settings I mentioned are set appropriately and you've installed the customization properly.
__________________
--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-31-2013, 01:21 AM
#246
gol is offline gol
Beginner grinner
Quote:
Originally Posted by jfriend View Post
I don't know how Smugmug previews work. I promise you that the download button works in an unlisted gallery if the other settings I mentioned are set appropriately and you've installed the customization properly.

Okay, I'll try it again. Thanks for the help.
Old Jan-31-2013, 10:53 AM
#247
gol is offline gol
Beginner grinner
All right, it works. Thanks.
Old Feb-14-2013, 01:21 PM
#248
Magnus is offline Magnus
Big grins
I'm using the download button now since a while and it's great for downloading original images. Many thanks for implementing this important missing feature. SmugMug should really have done that one themselves.

Now I have a more specific requirement though. In a perfect world I'd always have a button where I can click on and choose between all the allowed size and download the image in it. I guess though that would be asked to much of you.
(Btw. Zenfolio is offering this feature.)

So in my less perfect world I'd already be happy if I get this button as well offered when the download of original image is disabled and instead of downloading the original image it will download the highest allowed size. Would that be possible somehow? This would help me a ton!

Cheers
Magnus
Old Feb-14-2013, 01:34 PM
#249
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by Magnus View Post
I'm using the download button now since a while and it's great for downloading original images. Many thanks for implementing this important missing feature. SmugMug should really have done that one themselves.

Now I have a more specific requirement though. In a perfect world I'd always have a button where I can click on and choose between all the allowed size and download the image in it. I guess though that would be asked to much of you.
(Btw. Zenfolio is offering this feature.)

So in my less perfect world I'd already be happy if I get this button as well offered when the download of original image is disabled and instead of downloading the original image it will download the highest allowed size. Would that be possible somehow? This would help me a ton!

Cheers
Magnus
A browser download has to be triggered by the server (It has to set the right content settings to trigger the download) and Smugmug only supports downloading of the full-size original in that way. I'm not aware of any way to do what you ask via client=side javascript without Smugmug server-side support.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Feb-20-2013, 03:56 PM
#250
vickia is offline vickia
Big grins
download image + charging
Hi I just inserted the code into my website and it worked- thank you!
I have a question about if and how this would work-
for certain albums i want to charge for downloads and others I do not. Is there a way to use this download button and yet have the ability to choose when to charge for the download and when not too?
thanks!
Vicki
Old Feb-20-2013, 04:52 PM
#251
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by vickia View Post
Hi I just inserted the code into my website and it worked- thank you!
I have a question about if and how this would work-
for certain albums i want to charge for downloads and others I do not. Is there a way to use this download button and yet have the ability to choose when to charge for the download and when not too?
thanks!
Vicki
This button only works for free downloads (when you have originals enabled for the gallery). If you want to sell digital downloads, then just make sure you don't have originals enabled and you can use Smugmug's normal cart system for selling digital downloads. The trick is to turn on originals in galleries where you want to offer free downloads (the download button will appear) and turn off access to originals in galleries where you want to sell digital downloads (the download button will not appear) and then you can price the digital downloads in Smugmug's pricing interface.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Apr-03-2013, 01:52 AM
#252
DesptachesGallery is offline DesptachesGallery
Grr Despatches Gallery!
DesptachesGallery's Avatar
John - this still working - for the life of me it killed our site - I ensured the code was all correctly done, hence why I have not yet posted back screen shots or the site.

Can you check it still works?

Thanks/Pete
__________________
Pete
http://www.despatchesgallery.com
Old Apr-03-2013, 07:50 AM
#253
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by DesptachesGallery View Post
John - this still working - for the life of me it killed our site - I ensured the code was all correctly done, hence why I have not yet posted back screen shots or the site.

Can you check it still works?

Thanks/Pete
It works fine for me in my own galleries. Can you please post a link to a specific gallery on your site that you think it should be working for? Remember, the gallery must be enabled for access to originals and must not have right-click protection on and the gallery must be in the Smugmug viewing style.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Apr-03-2013, 12:14 PM
#254
KenaK is offline KenaK
Beginner grinner
Not Working on SIte
Hi, I put the code in, and made sure that right click protection is off and the original images are selected, but I do not see the button.

I also changed the wrap to the alt view because I do not have a shopping cart button. (It did not work before I changed that either)

Site is http://hpgpc2013.smugmug.com/

Thanks,
Kena
Old Apr-03-2013, 04:07 PM
#255
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by KenaK View Post
Hi, I put the code in, and made sure that right click protection is off and the original images are selected, but I do not see the button.

I also changed the wrap to the alt view because I do not have a shopping cart button. (It did not work before I changed that either)

Site is http://hpgpc2013.smugmug.com/

Thanks,
Kena
Your site is password protected so I can't get in.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Apr-04-2013, 03:17 AM
#256
DesptachesGallery is offline DesptachesGallery
Grr Despatches Gallery!
DesptachesGallery's Avatar
Quote:
Originally Posted by jfriend View Post
It works fine for me in my own galleries. Can you please post a link to a specific gallery on your site that you think it should be working for? Remember, the gallery must be enabled for access to originals and must not have right-click protection on and the gallery must be in the Smugmug viewing style.

John - hey again champ - I retried and it works...

Now this will download the original size copy right?

Can I limit it ONLY to certain galleries?

Just wondering - if the gallery is hidden, does this affect your code? I want to enable this behind Client-only accessible pages.

Also, if it MUST be in SMugMug viewing style, is there a way to change that?

Thanks - you are truly awesome. Pete

OK re-reading this post - sorry John - I know your time is hard for us idiots.

To ENABLE pn a gallery - ORIGINALS set to ON, and RIGHT CLICK OFF, but I also noticed it doesn't need to be JUST SmugMug - I have Custom and it works OK...

Look here: http://www.despatchesgallery.com/All...2213&k=2xzZQBB

Any ideas around that?
__________________
Pete
http://www.despatchesgallery.com

Last edited by DesptachesGallery; Apr-04-2013 at 03:27 AM. Reason: Because I'm a muppet...
Old Apr-04-2013, 07:10 AM
#257
picturebike is offline picturebike
Big grins
Hi Guys

having a download button would be very helpful for me as i often sell complete galleys to people that pay via paypal and this would mean it would be easy for them to just download each picture in original with just one click of a button..

problem is i have know clue about java script or even where i would need to put it, im worried ill mess my site up. is there a step by step guide or would one of you smuggies like to do it for me ?

my site http://picturebike.smugmug.com

thanks in advance
Old Apr-04-2013, 09:50 AM
#258
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by picturebike View Post
Hi Guys

having a download button would be very helpful for me as i often sell complete galleys to people that pay via paypal and this would mean it would be easy for them to just download each picture in original with just one click of a button..

problem is i have know clue about java script or even where i would need to put it, im worried ill mess my site up. is there a step by step guide or would one of you smuggies like to do it for me ?

my site http://picturebike.smugmug.com

thanks in advance
The first post in this thread is a step by step guide.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Apr-04-2013, 09:51 AM
#259
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by DesptachesGallery View Post
John - hey again champ - I retried and it works...

Now this will download the original size copy right?

Can I limit it ONLY to certain galleries?

Just wondering - if the gallery is hidden, does this affect your code? I want to enable this behind Client-only accessible pages.

Also, if it MUST be in SMugMug viewing style, is there a way to change that?

Thanks - you are truly awesome. Pete

OK re-reading this post - sorry John - I know your time is hard for us idiots.

To ENABLE pn a gallery - ORIGINALS set to ON, and RIGHT CLICK OFF, but I also noticed it doesn't need to be JUST SmugMug - I have Custom and it works OK...

Look here: http://www.despatchesgallery.com/All...2213&k=2xzZQBB

Any ideas around that?
Are you asking a question here? If so, please repeat exactly what you'd like help with.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Apr-04-2013, 05:48 PM
#260
DesptachesGallery is offline DesptachesGallery
Grr Despatches Gallery!
DesptachesGallery's Avatar
I corrected myself in an edit. Thanks for your help!
__________________
Pete
http://www.despatchesgallery.com
Page 13  of  14
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