• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization Change lightbox to default to comments visible

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
Old Apr-13-2010, 02:49 PM
#1
jfriend is online now jfriend OP
Scripting dude-volunteer
Change lightbox to default to comments visible
To change the default position of the lightbox so that the comment section starts out open instead of closed, copy this script into your bottom javascript:

Code:
//-------------------------------------------------------------------------------------
// Function to set initial lightBoxComment value to open
// 
// The way this works is it sets the default value to open, but if the user
// closes it, then it will remember their value for the next day.  After a day
// passes, it will default to open again.
//
// See http://www.dgrin.com/showthread.php?p=1368806 for support or questions.
//-------------------------------------------------------------------------------------
function InitLightBoxDefaultValueToOpen()
{
    if ((SM.util.getCookie('lightBoxDefaultSet') != 1) || !SM.util.getCookie('lightBoxComments'))
    {
        SM.util.setCookie('lightBoxDefaultSet', 1, 1);    // signify that we've set a default value so we won't keep setting it
        SM.util.setCookie('lightBoxComments', 1, 1);        // set it to show the light box comments
    }
}
InitLightBoxDefaultValueToOpen();
__________________
--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-13-2010, 04:38 PM
#2
Tecnicole is offline Tecnicole
Always grinning
Tecnicole's Avatar
Errrrrr.....almost perfect....

Now it opens where I want it to, but the thumbs up/down does not appear unless you hover over the photo.

Is it possible for it to open to "show details" AND have the thumbs appear?

May I please have my cake and eat it too?
Old Apr-13-2010, 04:55 PM
#3
jfriend is online now jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by Tecnicole
Errrrrr.....almost perfect....

Now it opens where I want it to, but the thumbs up/down does not appear unless you hover over the photo.

Is it possible for it to open to "show details" AND have the thumbs appear?

May I please have my cake and eat it too?
Don't know how to do that. The thumbs up/down only appears when hovering. That's so it goes away and doesn't block the photo when not hovering. That's just the way Smugmug built it.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question

Last edited by jfriend; Apr-13-2010 at 06:50 PM.
Old Apr-13-2010, 06:47 PM
#4
Tecnicole is offline Tecnicole
Always grinning
Tecnicole's Avatar
I thought it automatically shows in the default view, but now realize it is just because the mouse will automatically be over the photo in that view. With the comments showing, it places the photo to the left so the thumbs do not appear (no hover).

Thank you for your help.
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