PDA

View Full Version : In Regards to a HTML Page


Acorn
Jan-29-2010, 07:32 PM
Hello, I was able to use the following code

/* html only page for gallery XXXXXX */
.notLoggedIn .gallery_XXXXXX .nophotos {
display: none;
}
.gallery_XXXXXX .pageNav {
display: none;
}

To remove the "This gallery has no photos yet.. bla bla bla"

When I tried to add a few more pages like this I figured that I would just copy the code multiple times. This didn't work. Anybody have a solution?

jfriend
Jan-29-2010, 07:54 PM
Please post a link to a page where it didn't work so we can take a look.

Acorn
Jan-29-2010, 09:56 PM
Here's one of the pages.

http://acornstudios.smugmug.com/Other/Pricing/10937851_ZjS8v

Ross_Hannant
Jan-30-2010, 02:37 AM
I am having the same problem as well, I hope someone can supply a solution to this problem.

jfriend
Jan-30-2010, 04:55 AM
Here's one of the pages.

http://acornstudios.smugmug.com/Other/Pricing/10937851_ZjS8v The issue is that you have to use the gallery number, not the gallery name in the CSS.

Or, I recommend, you just do it site-wide like this (active only when not logged in):

/* hide things site-wide for html only page */
.notLoggedIn .nophotos {display: none;}

And, then for the pageNav and breadcrumb, you can do this:

.gallery_10937851 .pageNav, .gallery_10937851 #breadCrumbTrail {display:none;}

Repeat the last one with the gallery ID (and not the gallery key) for each gallery you want to apply it to.

Acorn
Jan-30-2010, 07:35 PM
I tried it with just one gallery for now. This is what I have in the CSS box.

/* hide things site-wide for html only page */
.notLoggedIn .nophotos {display: none;}


.gallery_10937851 .pageNav, .gallery_10937851 #breadCrumbTrail {display:none;}

And I get this at the bottom of the gallery, when I am logged out.

http://img44.imageshack.us/img44/3836/barthing.jpg

jfriend
Jan-30-2010, 08:25 PM
I tried it with just one gallery for now. This is what I have in the CSS box.

/* hide things site-wide for html only page */
.notLoggedIn .nophotos {display: none;}


.gallery_10937851 .pageNav, .gallery_10937851 #breadCrumbTrail {display:none;}
And I get this at the bottom of the gallery, when I am logged out.

You can add this:

.notLoggedIn .gallery_10937851 #photos {display:none;}

Acorn
Jan-30-2010, 08:31 PM
It worked! I love you.

Now I'm going to add multiple gallerys. If it blows up in my face, I'll be back.

Acorn
Jan-30-2010, 08:35 PM
Hurray! It works!