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?

Go Back   Digital Grin Photography Forum > Support > SmugMug Customization
Dgrinner
Password
Register FAQ Shooters Calendar Reviews Tutorials Gallery Books Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools Display Modes
Old Jul-22-2007, 08:22 AM   #1
ivar
Here for the crosswords
 
ivar's Avatar
 
Join Date: Nov 2005
Location: the Netherlands
Posts: 7,965
>>> Change SmugMug default settings <<<

This is a collection of some simple JavaScript hacks which allow you to make some changes to the default settings of your SmugMug Power user or Pro account. The code goes in the box labeled "JavaScript" on your customize page.



PHOTOBAR
  • Change the delay of the PhotoBar
    The flyout menu that appears in the SmugMug viewstyle when you hover over the main image is called the PhotoBar. Change 0 to any number of seconds you like
    Code:
    photoBarDelay = 0;
  • want it showing at the bottom of your images, instead of on the right?
    Code:
    SM.PhotoBar.config.position = 'bottom';
  • You want to eliminate the PhotoBar totally?
    (caution, funcationality is missing when you do this!)
    Code:
    showPhotoBar = false;

SIZE OF STRETCHY THUMBS
  • don't want the larger thumbnails when screens are > 1600px resolution?
    Code:
    SM.SmugMug.config.autoThumbSize = false;


SMUGMUG SMALL - VIEWSTYLE
  • Force the viewstyle to be SmugMug or SmugMug Small.
    The 'SmugMug' viewstyle changes between 'SmugMug' (15 thumbs on left, one 'M' image on right) and 'SmugMug Small' (9 thumbs on the left and one 'S' image on the right) automatically depending on the size of your viewport. You can force it to either one if you prefer.
    For 'SmugMug Small':
    Code:
    SM.SmugMug.config.size = 'small';
    For 'SmugMug':
    Code:
    SM.SmugMug.config.size = 'large';


FILMSTRIP - VIEWSTYLE
  • Do you want to change the speed of the filmstrip, or even stop it from moving?
    You can change this speed of the filmstrip using the following code. Set to '0' (zero) and the filmstrip will not move unless you hover your cursor over the filmstrip arrows:
    Code:
    filmstripMove = 1;


SLIDESHOW - VIEWSTYLE
  • Change the duration of the slideshow style (not fullscreen, for now)
    Want to change the default duration of the images in the Slideshow viewstyle? No problem! Change the number to your preferred time the image shows.
    Code:
    slideDuration = 10;


IMAGE PREVIEWS
  • Don't like the next or previous image previews?
    When you hover over 'next' or 'previous' the a preview of the next/previous image shows. Don't like them? Remove them!
    Code:
    showImagePreview = false;


LIGHTBOX
  • Removing the lightbox.
    You really do not like it? Are you sure? You can remove the lightbox completely.
    Code:
    useLightbox = false;


RIGHT-CLICK WARNING MESSAGE
  • Making a custom right-click warning message.
    The 'protection' option for the Pro-accounts comes with a standard warning message. Do you want to change it? No problem!
    Code:
    rightClickWarning = "Your warning text goes here!"


FRAME-BREAK
  • Do you want us to not break frames?
    You are on your own though! We don't guarantee the working of the shopping cart, gallery passwords, site passwords, login passwords, or anything else requiring sessions and cookies to work!
    Code:
    framesWarning=false;


MORE CONTROL FOR HOW STRETCHY PAGES STRETCH
  • You can override defaults by either giving it more or less height by adding the following:
    Code:
    SM.SmugMug.config.alterScreenHeight = -100;
__________________
Ivar


moderator: People & Go Figure
usefulness: how to do most anything on Dgrin - great tutorials - gear reviews - book reviews
me: www.ivarborst.nl - blog - smugmug


Kinkajou: "go comment on something and spread the love!"
ivar is offline  
Old Sep-03-2007, 12:34 PM   #2
ivar
Here for the crosswords
 
ivar's Avatar
 
Join Date: Nov 2005
Location: the Netherlands
Posts: 7,965
These are some 'special' and cool links that you can use:

GET A RANDOM IMAGE
  • You can get a random image from a specific gallery if you use the following:
    HTML Code:
    http://www.smugmug.com/photos/random.mg?AlbumID=<albumID>&AlbumKey=<AlbumKey>&Size=<SMUGSIZE>
    where the galleryID is the number of the gallery, and the SMUGSIZE is either Ti, Th, S, M, L, XL, X2, X3, O or a custom size, such as 300x400.
__________________
Ivar


moderator: People & Go Figure
usefulness: how to do most anything on Dgrin - great tutorials - gear reviews - book reviews
me: www.ivarborst.nl - blog - smugmug


Kinkajou: "go comment on something and spread the love!"
ivar is offline  
Closed Thread

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


Times are GMT -8.   It's 09:17 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.