• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization Password Page CSS

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-02-2009, 07:25 AM
#1
Gir is offline Gir OP
Enginerd
Gir's Avatar
Password Page CSS
I have two headers on my site. One is mine and the other is for a business for which I am the webmaster. I have been successful in keeping the headers on the correct galleries, but I just noticed that my password protected galleries have both header and footers on them and this is no good. My other customization looks something liks this:

.homepage #hanyok_banner{display: block;}
.homepage #redturtle_banner{display: none;}
.category #hanyok_banner{display: block;}
.category #redturtle_banner{display: none;}
.category_Gallery #redturtle_banner{display: none;}
.category_Personal #redturtle_banner{display: none;}
.category_Other #redturtle_banner{display: none;}

I imagine I would have to do something similar to make sure the password prompt pages only show the header/footer I want them to show, but I'm unsure of the needed wording(i.e. .homepage, .category). I would think it might be something like .promt or .category_prompt

Any suggestions?

Thanks,

Lauren

Hanyok Photography
www.hanyokphotography.smugmug.com

(to see what I'm talking about, please go to one of the password prompt pages for my protected galleries and you'll see my header and a space underneath it which, if you click it, it goes to the business-photo site. Also, you can see two footers at the bottom of the page)
Old Apr-02-2009, 07:47 AM
#2
jfriend is offline jfriend
Scripting dude-volunteer
Smugmug makes this very difficult because they do not give you any unique CSS in the body tag for a password screen. It is certainly an oversight that we've told them about and I was hoping they would have already fixed it, but nothing was changed in this area in the recent changes to the password screen.

As it is now, there is no way to tell which category you are in when the password prompt comes up. That means there's no way to determine which banner should be shown. I would suggest that you just change your CSS to that the default condition is that no banner shows instead of the current default condition that both show.

Structurally, you would do that by putting this CSS first:

#redturtle_footer, #hanyok_footer, #redturtle_banner, #hanyok_banner {display:none;}

And then, manually showing the right header/footer in each category you have with something like you are already doing. This will mean manual maintenace every time you add a new category.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
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