View Full Version : Password Gallery Question.....
Mr Wangrycht
Dec-06-2008, 08:30 AM
If anyone could please inform me if this is possible. I have a "Family" gallery that is password protected. I have added some more sub-categories to this gallery, but what I would like to happen is the user would have to enter a password in order to see said sub-galleries. As of now you can "click" on "Family" and then it takes you to the "Family" galleries, after selecting which gallery you would like to see, then the password option appears. I would like to be able to have the password before the option to see the sub-categories.
Hope this make sense, please let me know if this is possible or if I need to explain myself better.
Allen
Dec-06-2008, 09:03 AM
If anyone could please inform me if this is possible. I have a "Family" gallery that is password protected. I have added some more sub-categories to this gallery, but what I would like to happen is the user would have to enter a password in order to see said sub-galleries. As of now you can "click" on "Family" and then it takes you to the "Family" galleries, after selecting which gallery you would like to see, then the password option appears. I would like to be able to have the password before the option to see the sub-categories.
Hope this make sense, please let me know if this is possible or if I need to explain myself better.
Linking directly to the Family category will show all the galleries with their
locked thumbs or feature photo and sub-cats. Only way I know around this
is hide the Family category from the galleries/category box with some
javascript. Then create a new unlisted passworded gallery for the family
entry page linked in your navbar. To load this page the family password would be
needed. In the gallery description add the link to the family category.
The reason for this is only galleries can have a password.
Ref this thread for hiding category.
http://www.dgrin.com/showthread.php?t=48082&page=2
Put in bottom javascript
<!-- Hide Categories -->
function delCategory() {
re = /\/(Family)$/;
var oList = YD.getElementsByClassName('miniBox', 'div', this);
for (i = 0; i < oList.length; i++) {
if (re.test(oList[i].getElementsByTagName('a')[0].href))
oList[i].parentNode.removeChild(oList[i]);
}
}
YE.onContentReady('categoriesBox', delCategory);
<!-- End Hide Categories -->
Mr Wangrycht
Dec-06-2008, 09:39 AM
Linking directly to the Family category will show all the galleries with their
locked thumbs or feature photo and sub-cats. Only way I know around this
is hide the Family category from the galleries/category box with some
javascript. Then create a new unlisted passworded gallery for the family
entry page linked in your navbar. To load this page the family password would be
needed. In the gallery description add the link to the family category.
The reason for this is only galleries can have a password.
Ref this thread for hiding category.
http://www.dgrin.com/showthread.php?t=48082&page=2
Put in bottom javascript
<!-- Hide Categories -->
function delCategory() {
re = /\/(Family)$/;
var oList = YD.getElementsByClassName('miniBox', 'div', this);
for (i = 0; i < oList.length; i++) {
if (re.test(oList[i].getElementsByTagName('a')[0].href))
oList[i].parentNode.removeChild(oList[i]);
}
}
YE.onContentReady('categoriesBox', delCategory);
<!-- End Hide Categories -->
i dont think this is going to work. check out what i've done if you can to see what im doing wrong.
Allen
Dec-06-2008, 09:42 AM
i dont think this is going to work. check out what i've done if you can to see what im doing wrong.
Your navbar link brings up the password page. The Family category is gone
from the galleries/category box. I can't get past the password page so can't
see how the entry gallery looks.
That all works, what's not working?
Mr Wangrycht
Dec-06-2008, 09:43 AM
Your navbar link brings up the password page. That works, what's not working?
its bypassing it on my end, maybe its remembering the password. I'll log out and try it again.
Allen
Dec-06-2008, 09:45 AM
its bypassing it on my end, maybe its remembering the password. I'll log out and try it again.
Yes, your browser will remember your password for a short time. Open in
another browser or delete the Smugmug cookies.
If every password is the same in all the family galleries the entry page will
be the only time you'll need it. until it expires.
jfriend
Dec-06-2008, 09:46 AM
its bypassing it on my end, maybe its remembering the password. I'll log out and try it again.
Once you've entered the password, Smugmug remembers that you've entered it in a cookie. Try another browser or clear cookies. I keep a couple other browsers around just for this kind of testing. I use Firefox as my main browser and keep IE and Safari around for testing the experience of someone who has never been to my site before.
Mr Wangrycht
Dec-06-2008, 10:21 AM
Yeah that was the problem.
Thanks for the help, I'm going to make it work, so far so good. Thanks again!!
Mr Wangrycht
Dec-07-2008, 09:50 AM
I would like to do the same thing I did with the "Family" page with my "Client" page. I got everything to work except for hiding the category. I added the Java script but it bypasses the "Family" page now and only hides the "Clients" page.
Can you let me know what I need to add to the Java script in order to hide multiple categories?
Thanks!
Allen
Dec-07-2008, 10:32 AM
I would like to do the same thing I did with the "Family" page with my "Client" page. I got everything to work except for hiding the category. I added the Java script but it bypasses the "Family" page now and only hides the "Clients" page.
Can you let me know what I need to add to the Java script in order to hide multiple categories?
Thanks!
Add more categories between the |.
re = /\/(Family|Clients)$/;
Grly
Dec-18-2008, 07:30 AM
So, I have implemented this on my website as well but there is a huge downfall if I am not mistaken. Once people figure out the link to the hidden gallery they are going to be able to bypass the password page and share the link to whomever they choose.
Do we know if there is going to be a "feature" soon to password protect entire categories?
Allen
Dec-18-2008, 07:47 AM
So, I have implemented this on my website as well but there is a huge downfall if I am not mistaken. Once people figure out the link to the hidden gallery they are going to be able to bypass the password page and share the link to whomever they choose.
Do we know if there is going to be a "feature" soon to password protect entire categories?
It's only the category or sub-cat page they can get to, if the galleries are
passworded they can't get into any of them.
jfriend
Dec-18-2008, 07:52 AM
So, I have implemented this on my website as well but there is a huge downfall if I am not mistaken. Once people figure out the link to the hidden gallery they are going to be able to bypass the password page and share the link to whomever they choose.
Do we know if there is going to be a "feature" soon to password protect entire categories?
The only way to really protect a gallery is to put a password on it. Anything else means that anyone who has a link can get in.
If you want to have a password page that requires the password before people can see the galleries and you want to protect direct links to the galleries, then just put the same password on the galleries that you use on the password page. The normal viewer will only be prompted for the password the first time (when they hit the password page). But, anyone who gets a direct link to the gallery will also have to enter the password.
Grly
Dec-18-2008, 08:12 AM
Yep, I have done that. I just wish that once a password was entered for an entire gallery let's say, then all the thumbnails for the sub-cats would show up and be "unlocked". Either way, it will work fine, just doesn't look very pretty! hehe
Thanks for the quick replies. :)
jfriend
Dec-18-2008, 08:25 AM
Yep, I have done that. I just wish that once a password was entered for an entire gallery let's say, then all the thumbnails for the sub-cats would show up and be "unlocked". Either way, it will work fine, just doesn't look very pretty! hehe
Thanks for the quick replies. :)
Did you know that if you don't want to see the "lock thumbnail", you can set a featured photo on the gallery and that thumbnail will show, even though you have a password on the gallery. Just go to the gallery, select the photo you want as the thumb and pick Tools/This Photo/More/Feature.
I use this all the time. In this sub-category (http://friend.smugmug.com/Sports/605604), all the galleries are password protected, but I've featured a photo for every one so you can see nice thumbs.
Grly
Dec-18-2008, 08:33 AM
Did you know that if you don't want to see the "lock thumbnail", you can set a featured photo on the gallery and that thumbnail will show, even though you have a password on the gallery. Just go to the gallery, select the photo you want as the thumb and pick Tools/This Photo/More/Feature.
I use this all the time. In this sub-category (http://friend.smugmug.com/Sports/605604), all the galleries are password protected, but I've featured a photo for every one so you can see nice thumbs.
You are my hero! That's perfect! I will admit to not having poked around with settings too much (lazy me). Thanks! :ivar
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.