• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug APIs, Hacks & Tricks Passworded gallery thumbs

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 #127 (If I Could Catch a Rainbow), cambyses.

Voting is now open for DSS #128 (Sunrise or Sunset). Voting is open through May 16th at 8:00 PM PDT

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 Jul-08-2012, 09:03 AM
#1
brandofamily is offline brandofamily OP
Just a Guy with a Camera
brandofamily's Avatar
Passworded gallery thumbs
Is there a way to add a class to the featured thumb for a passworded gallery? I'd like to make it so when the thumb of a passworded gallery is hovered the image changes. However, I do not believe there is a unique class for the thumb of a passworded gallery if there is a featured image like there is if it's the standard SM generated "locked gallery" thumb.

I seem to remember that I was given some JS once to add a class to the passworded gallery "passwordPage" when one did not exist.
__________________
Anthony Brandolino; Freelance Photographer • www.brandolinoimaging.com
I also attend to these fine sites:
www.onbroadwaydancers.comwww.r2rcoalcity.orgwww.tinleyparkfrankfortrotary.comwww.smalltowntheatrics.com
Use this code:8jDMwxj6yp4f2 to save on a subscription to Smugmug
Old Jul-08-2012, 05:09 PM
#2
brandofamily is offline brandofamily OP
Just a Guy with a Camera
brandofamily's Avatar
I guess I'm looking for something like this
Code:
YE.onAvailable("content", function () {     if (YD.hasClass(this, "galleryPassword") || YD.hasClass(this, "passwordPage"))     {         YD.addClass(document.body, "passwordBody");     } });
But to add a class to the gallery thumb for a passworded gallery if it's a featured image...
__________________
Anthony Brandolino; Freelance Photographer • www.brandolinoimaging.com
I also attend to these fine sites:
www.onbroadwaydancers.comwww.r2rcoalcity.orgwww.tinleyparkfrankfortrotary.comwww.smalltowntheatrics.com
Use this code:8jDMwxj6yp4f2 to save on a subscription to Smugmug
Old Jul-31-2012, 03:33 AM
#3
brandofamily is offline brandofamily OP
Just a Guy with a Camera
brandofamily's Avatar
No thoughts at all?
I know I come up with crazy ideas sometimes but I thought someone here would know how to do this with all the brain power on this site.
__________________
Anthony Brandolino; Freelance Photographer • www.brandolinoimaging.com
I also attend to these fine sites:
www.onbroadwaydancers.comwww.r2rcoalcity.orgwww.tinleyparkfrankfortrotary.comwww.smalltowntheatrics.com
Use this code:8jDMwxj6yp4f2 to save on a subscription to Smugmug
Old Aug-01-2012, 08:08 AM
#4
J Allen is offline J Allen
Major grins
J Allen's Avatar
Quote:
Originally Posted by brandofamily View Post
No thoughts at all?
I know I come up with crazy ideas sometimes but I thought someone here would know how to do this with all the brain power on this site.

toni, have you tried something like this yet?


Code:
.category_The_Broadway_Dance_Center_2012 
.photoLarge:hover:before 
{content:"Password Protected!!";
font-size:24px;position:absolute;top:5px;right:5px;
color:#fff;background-color:red}



you could use an image with type of rule also...something like this, but you'd have to tweak the position and add your dimensions into it:

Code:
.category_The_Broadway_Dance_Center_2012 
.photoLarge:hover:before 
{content:url(/photos/647730640_gJCNb-O.png);
position:absolute}


obviously this can be applied to a whole category via css...I'm sure you could write a script that would look for "locked" galleries and apply this css to all locked galleries.....let me know your thoughts on it.
__________________
-Joe Allen
My Smugmug Site
Old Aug-01-2012, 08:15 AM
#5
brandofamily is offline brandofamily OP
Just a Guy with a Camera
brandofamily's Avatar
Quote:
Originally Posted by J Allen View Post
toni, have you tried something like this yet?


Code:
.category_The_Broadway_Dance_Center_2012 
.photoLarge:hover:before 
{content:"Password Protected!!";
font-size:24px;position:absolute;top:5px;right:5px;
color:#fff;background-color:red}

you could use an image with type of rule also...something like this, but you'd have to tweak the position and add your dimensions into it:

Code:
.category_The_Broadway_Dance_Center_2012 
.photoLarge:hover:before 
{content:url(/photos/647730640_gJCNb-O.png);
position:absolute}
obviously this can be applied to a whole category via css...I'm sure you could write a script that would look for "locked" galleries and apply this css to all locked galleries.....let me know your thoughts on it.
Thanks for input. I have no idea how to write script. I'm a cut and paste guy. How exactly will this script work? Do I apply it in the cutom header section?

I'm actually trying to get this to work for all locked galleries and have a set hover image to show it's locked and requires a password.
__________________
Anthony Brandolino; Freelance Photographer • www.brandolinoimaging.com
I also attend to these fine sites:
www.onbroadwaydancers.comwww.r2rcoalcity.orgwww.tinleyparkfrankfortrotary.comwww.smalltowntheatrics.com
Use this code:8jDMwxj6yp4f2 to save on a subscription to Smugmug
Old Aug-01-2012, 08:47 AM
#6
J Allen is offline J Allen
Major grins
J Allen's Avatar
Quote:
Originally Posted by brandofamily View Post
Thanks for input. I have no idea how to write script. I'm a cut and paste guy. How exactly will this script work? Do I apply it in the cutom header section?

I'm actually trying to get this to work for all locked galleries and have a set hover image to show it's locked and requires a password.

For now, just give it a try in your CSS and see what you think...you'll only see the change on this page:

The_Broadway_Dance_Center_2012


I'll look into a script for you so it applies on locked galleries...
__________________
-Joe Allen
My Smugmug Site
Old Aug-01-2012, 09:35 AM
#7
brandofamily is offline brandofamily OP
Just a Guy with a Camera
brandofamily's Avatar
Quote:
Originally Posted by J Allen View Post
For now, just give it a try in your CSS and see what you think...you'll only see the change on this page:

The_Broadway_Dance_Center_2012


I'll look into a script for you so it applies on locked galleries...
I tried it. It's pretty close to what I would like. I'd rather have a stock png file but we can work on that. If you can get ti to work for all locked galleries that would be great.
__________________
Anthony Brandolino; Freelance Photographer • www.brandolinoimaging.com
I also attend to these fine sites:
www.onbroadwaydancers.comwww.r2rcoalcity.orgwww.tinleyparkfrankfortrotary.comwww.smalltowntheatrics.com
Use this code:8jDMwxj6yp4f2 to save on a subscription to Smugmug
Old Oct-08-2012, 02:39 PM
#8
brandofamily is offline brandofamily OP
Just a Guy with a Camera
brandofamily's Avatar
Quote:
Originally Posted by J Allen View Post
For now, just give it a try in your CSS and see what you think...you'll only see the change on this page:

The_Broadway_Dance_Center_2012


I'll look into a script for you so it applies on locked galleries...
Any chance you have time to look at this?
__________________
Anthony Brandolino; Freelance Photographer • www.brandolinoimaging.com
I also attend to these fine sites:
www.onbroadwaydancers.comwww.r2rcoalcity.orgwww.tinleyparkfrankfortrotary.comwww.smalltowntheatrics.com
Use this code:8jDMwxj6yp4f2 to save on a subscription to Smugmug
Tell The World!  
Similar Threads Thread Starter Forum Replies Last Post
6 across gallery thumbs? text underneath? austinjames SmugMug Customization 10 Jan-20-2012 09:00 AM
Slideshow Gallery Customization- move thumbs BELOW main image gallery sgolonks SmugMug Customization 1 Jan-06-2012 02:48 AM
Gallery description, gallery nav. style QUESTIONS voicelit SmugMug Customization 7 Feb-16-2010 04:18 PM
PopularPhotos thumbs don't readjust size when gallery thumbs are adjusted JerryBarton Bug Reporting 1 May-01-2009 04:22 AM
Is it possible to have galleries AND categories on the home page? jfriend SmugMug Customization 3 Jun-27-2008 05:43 AM


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