| Lurk all you'd like, but why not register and post some pics? Registering also makes it easier to find the good stuff. Need help? |
|
|||||||
| Register | FAQ | Shooters | Calendar | Reviews | Tutorials | Gallery | Books | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Scripting dude-volunteer
Join Date: Mar 2005
Location: San Francisco Bay Area, California
Posts: 16,468
|
Collection of javascript customizations
To make it easier for everyone to find these javascript customizations, here's a list of customizations that I've worked on. If you have questions about specific customizations, please ask them in the thread that discusses that customization. As I work on new customizations, I will attempt to add them here. Others are free to add your own list of customizations you've done to another post if you want to make this thread be the list of user-generated javascript customizations. Here are some that I've worked on over the years.
1) Top of breadcrumb go to galleries page. Make the top level of the breadcrumb point to the galleries page instead of the slideshow page. 2) Change top of breadcrumb to "Home" Change the top level of your breadcrumb to say "Home" instead of your user name. 3) Filmstrip Below
4a) Move slideshow button to same line as cart buttons Particularly useful if you have hidden the breadcrumb, but still want the slideshow button available. 4b) Move share button to same line as cart buttons Particularly useful if you have hidden the breadcrumb, but still want the share button available. 5) Add custom items to the Buy menu Add a link to the overall catalog, to your own custom pricing page or to any page that describes how your sales work (proof delay or anything related to buying). 6) Display subcategories and galleries together
7) Descriptions for Categories and Sub-categories Just like galleries have gallery descriptions that show next to the gallery thumb and at the top of the gallery page, you can now have a description for a category or subcategory. 8) Remove Galleries or Sub-Categories Text from Title Here's how Smugmug looks like by default: 9) Add a Download Image Button For Viewers to Get Originals In galleries where you intend to allow your viewers to download original images (friends/family), you can now add a Download Image button that makes it a lot more obvious to the viewer how to do this. This customization works automatically in the galleries where you have originals enabled for access. 10) Force popular photos view to be the Smugmug view: go here. 11) Vanity URLs - Make web shortcuts with easier to remember names for some of your galleries: go here. 12) Remove clickability of your images from one or more galleries (useful for journal style galleries used for things like pricing, about me, etc...): go here. 13) Ability to customize your header/footer/navbar when the password page is displayed: go here. 14) Ability to hide categories, subcategories or galleries or style individual thumbnails: go here. 15) Make your site automatically redirect a mobile user to the mobile version of Smugmug: go here. 16) To control whether the user leaves a gallery comment or an image comment and not give them a choice: go here. 18) Remove Photo Count from Categories and Sub-categories Change your category and sub-category thumbs from this: 19) Remove Viewing Styles from the Style or Share Menus Control which styles are offered in the styles menu and/or which menu items are offered in the share menu. Before and After: 20) Stretchy Slideshow on Homepage Make your homepage slideshow be stretchy so it automatically sizes itself to the size of the browser window. 21) Dynamic Navbar Make your navbar show the user which page is the current page. Can be used with either custom navbars or with easy customizer navbars. 22) Show Hidden Images Show you which of your images are hidden in the Smugmug view when logged in. 23) Rename menu items in the Style menu Change the name of menu items in the style menu to whatever names you like better.24) Auto open galleries that are all alone in a category or sub-category If you have galleries or sub-categories that are all alone in a category or sub-category and there isn't a better way to organize your site that avoids this, then this script will automatically open the gallery rather than take the viewer to the category or sub-category without only a single thumbnail in it - thus making them click again to open the gallery.25) Customize the "Package from this Pro" text in the Buy menu If you offer packages for sale, you may want to change the text in the Buy menu that currently says "Package from this Pro" to be something more personal to your site.26) Restore Full Length Gallery Descriptions in Category or Sub-category Page By default, Smugmug truncates gallery descriptions to a certain number of characters. This customization will restore the gallery descriptions to their full length in the category or sub-category pages.27) Change Default for Lightbox to Show Comments By default, the Lightbox comes up with comments closed and the user has to open them. This customization will change the default so that the lightbox comes up open, showing comments. The end-user can still toggle it on or off, this just affects the default position.28) Automatically redirect mobile users without Adobe flash to a page of your choice (like your galleries page) If you have a slideshow on your homepage (like many do these days) and a mobile user without Adobe Flash on their mobile device goes there, they will see a big empty hole in your homepage (no slideshow). This customization does an automatic redirect to another page in your site (like your galleries page) when someone views your homepage and doesn't have Adobe Flash installed.29) Use Different CSS Rules for Unlisted Galleries Smugmug does not provide a CSS tag to indicate that a gallery is unlisted. This customization will add either the class "unlistedGallery" or the class "publicGallery" to the body tag on gallery pages. This then lets you use different CSS rules for public galleries vs. unlisted galleries. One obvious use for this is to allow the Sharing button, but hide the Facebook and Twitter buttons in unlisted galleries because they make it too easy to accidentally disclose an unlisted gallery (one click).
__________________
--John Homepage, Popular Photos, Portfolio If you are asking for help, please include a clickable link to your Smugmug site (full URL including the http://). It's easiest for everyone if you add it to your dgrin signature so it's always there. For a list of popular javascript customizations, go here. If you wonder why your post might not be getting an answer, read this. Last edited by jfriend; Aug-23-2010 at 07:06 PM. |
|
|
|
|
|
#2 |
|
[Canon 7D FTW!]
Join Date: Nov 2008
Posts: 123
|
Thanks for the collection, John!
Check the links for
Remove clickability from multiple galleries (useful for journal style galleries used for things like pricing, about me, etc...): go here. because the first two are pointing to the "Remove the top level of the breadcrumb" page and the last has some unintentional verbage within the address.
__________________
- Aaron Website: Crown Point Photographer - Aaron Brown Photography Blog: Muse, News, and Reviews - Aaron Brown Photography Facebook: Facebook - Aaron Brown Photography Twitter: Twitter - Aaron Brown Photography |
|
|
|
|
|
#3 | |
|
Scripting dude-volunteer
Join Date: Mar 2005
Location: San Francisco Bay Area, California
Posts: 16,468
|
Quote:
__________________
--John Homepage, Popular Photos, Portfolio If you are asking for help, please include a clickable link to your Smugmug site (full URL including the http://). It's easiest for everyone if you add it to your dgrin signature so it's always there. For a list of popular javascript customizations, go here. If you wonder why your post might not be getting an answer, read this. |
|
|
|
|
|
|
#4 |
|
Major grins
Join Date: Nov 2006
Location: North Andover, MA
Posts: 8,373
|
Thanks for doing this John - what an awesome resource!
--- Denise
__________________
http://www.denisegoldberg.com ... http://denise.smugmug.com Musings & ramblings at http://denisegoldberg.blogspot.com |
|
|
|
|
|
#5 | |
|
Scripting dude-volunteer
Join Date: Mar 2005
Location: San Francisco Bay Area, California
Posts: 16,468
|
Quote:
__________________
--John Homepage, Popular Photos, Portfolio If you are asking for help, please include a clickable link to your Smugmug site (full URL including the http://). It's easiest for everyone if you add it to your dgrin signature so it's always there. For a list of popular javascript customizations, go here. If you wonder why your post might not be getting an answer, read this. |
|
|
|
|
|
|
#6 |
|
Beginner grinner
Join Date: Dec 2007
Posts: 1
|
Super helpful
A great many thanks for your time and 'troubles', you have saved me and no doubt many others a lot of head scratching / hair tearing.
|
|
|
|
|
|
#7 |
|
Scripting dude-volunteer
Join Date: Mar 2005
Location: San Francisco Bay Area, California
Posts: 16,468
|
I've added a few more customizations to the master list in the first post, including the ability to customize some parameters on the gallery slideshow or the full screen slideshow.
__________________
--John Homepage, Popular Photos, Portfolio If you are asking for help, please include a clickable link to your Smugmug site (full URL including the http://). It's easiest for everyone if you add it to your dgrin signature so it's always there. For a list of popular javascript customizations, go here. If you wonder why your post might not be getting an answer, read this. |
|
|
|
|
|
#8 |
|
Scripting dude-volunteer
Join Date: Mar 2005
Location: San Francisco Bay Area, California
Posts: 16,468
|
Added #18, a script for trimming the photo count off of category and sub-category thumbs. There is an older script floating around dgrin that does a similar thing, but it creates errors in some circumstances.
__________________
--John Homepage, Popular Photos, Portfolio If you are asking for help, please include a clickable link to your Smugmug site (full URL including the http://). It's easiest for everyone if you add it to your dgrin signature so it's always there. For a list of popular javascript customizations, go here. If you wonder why your post might not be getting an answer, read this. |
|
|
|
|
|
#9 |
|
Loves to Grin
Join Date: Sep 2007
Location: Denver
Posts: 490
|
This is great! I wish I had come across this sooner!
__________________
Sheba Wheeler -- Picture Your World Photography www.pictureyourworld.net http://pictureyourworldphotography.blogspot.com/ http://www.onedayonepicture.com Canon 5D -- Canon XTi -- Canon 70-200 2.8 -- Canon 16-35 2.8 -- Canon EF 75-300 IS 4-5.6 -- Sigma 24-70 2.8 -- Canon 50 1.8 - Canon Speedlite 580 EX II |
|
|
|
|
|
#10 |
|
Scripting dude-volunteer
Join Date: Mar 2005
Location: San Francisco Bay Area, California
Posts: 16,468
|
Added #19 for removing items from the style menu.
__________________
--John Homepage, Popular Photos, Portfolio If you are asking for help, please include a clickable link to your Smugmug site (full URL including the http://). It's easiest for everyone if you add it to your dgrin signature so it's always there. For a list of popular javascript customizations, go here. If you wonder why your post might not be getting an answer, read this. |
|
|
|
|
|
#11 |
|
Spring chicken
Join Date: Aug 2009
Location: currently traveling around the world
Posts: 12
|
thanks!
this is awesome! thank you!
__________________
Vana |
|
|
|
|
|
#12 |
|
Eyes are my Camera
Join Date: Nov 2008
Posts: 215
|
Hey, thanks for the topic
I added: #3 #5 #9 #11 (didn't work for me) ![]() #12 (didn't work for me) ![]() #15 You're really good at helping and javascripting
__________________
|
|
|
|
|
|
#13 | |
|
Scripting dude-volunteer
Join Date: Mar 2005
Location: San Francisco Bay Area, California
Posts: 16,468
|
Quote:
__________________
--John Homepage, Popular Photos, Portfolio If you are asking for help, please include a clickable link to your Smugmug site (full URL including the http://). It's easiest for everyone if you add it to your dgrin signature so it's always there. For a list of popular javascript customizations, go here. If you wonder why your post might not be getting an answer, read this. |
|
|
|
|
|
|
#14 |
|
Scripting dude-volunteer
Join Date: Mar 2005
Location: San Francisco Bay Area, California
Posts: 16,468
|
Updated customization #19 so that it now works with either the Share menu or the Style menu and it's a lot more flexible now (it uses CSS to hide menu items).
__________________
--John Homepage, Popular Photos, Portfolio If you are asking for help, please include a clickable link to your Smugmug site (full URL including the http://). It's easiest for everyone if you add it to your dgrin signature so it's always there. For a list of popular javascript customizations, go here. If you wonder why your post might not be getting an answer, read this. |
|
|
|
|
|
#15 | |
|
Eyes are my Camera
Join Date: Nov 2008
Posts: 215
|
Quote:
![]() and sorry for the hassle
__________________
|
|
|
|
|
|
|
#16 |
|
Big grins
Join Date: Apr 2007
Posts: 13
|
This collection is SO useful that I wonder if you can add to it instructions on how to make a floating window either to display a piece of text in the Description area, or, to display a hovered thumbnail's medium size image with caption & dimensions (when the thumb is in a search_results page). I have found two web sites offering the recipes, but, I am not sufficiently tekky to translate them into SM terms, though I'm sure that you can read them with total comprehension:http://info.template-help.com/after_.../article2.html http://www.dhtmlgoodies.com/index.ht...ndow_with_tabs Thanks for your consideration! Jeanne Tifft http://www.jldtifft.com |
|
|
|
|
|
#17 |
|
Scripting dude-volunteer
Join Date: Mar 2005
Location: San Francisco Bay Area, California
Posts: 16,468
|
Added #20 for stretchy homepage slideshow.
__________________
--John Homepage, Popular Photos, Portfolio If you are asking for help, please include a clickable link to your Smugmug site (full URL including the http://). It's easiest for everyone if you add it to your dgrin signature so it's always there. For a list of popular javascript customizations, go here. If you wonder why your post might not be getting an answer, read this. |
|
|
|
|
|
#18 |
|
SmugMug COO & House Pro
Join Date: Dec 2003
Location: New York City
Posts: 52,623
|
Question
John, is this something your wizardry handles?
http://smugmug.uservoice.com/pages/1...-?ref=comments |
|
|
|
|
|
#19 | |
|
Scripting dude-volunteer
Join Date: Mar 2005
Location: San Francisco Bay Area, California
Posts: 16,468
|
Quote:
Code:
var myCartButton;
YE.onDOMReady(function() {
myCartButton = new SM.buttons.viewCart("myNewCartDivContainer", "myCartButton", {});
}
__________________
--John Homepage, Popular Photos, Portfolio If you are asking for help, please include a clickable link to your Smugmug site (full URL including the http://). It's easiest for everyone if you add it to your dgrin signature so it's always there. For a list of popular javascript customizations, go here. If you wonder why your post might not be getting an answer, read this. |
|
|
|
|
|
|
#20 |
|
Big grins
Join Date: May 2009
Posts: 57
|
Facebook Fan Button?
I searched all over for info on my problem and posted a question to a thread that seemed appropriate, but no one has ever answered my question...been waiting awhile
, so I figured this might be a good place to get it answered for lots of people. Can you maybe post something here about adding a Facebook "Become a Fan of" button to a page? Preferrably as part of (below the) footer. I used the code supplied by facebook and put it in my custom footer box (want it below my footer on every page), it looked and worked great, BUT when I would click on a photo in a gallery to view it larger it would just say "loading..." but it never would. Something with the facebook code was making it impossible to view them. I removed it for now and all is fine, but would like to put it back on to get some additional exposure for my site! ![]() If you don't want to address that on this thread, can you please take a look at the original thread I posted my question to...I just need some help please! Here's the link: http://www.dgrin.com/showthread.php?t=131974 |
|
|
|
![]() |
| Tell The World! |
| Thread Tools | |
| Display Modes | |
|
|