Clean for users but not clean for us?

StevenVStevenV Registered Users Posts: 1,174 Major grins
edited October 20, 2005 in SmugMug Support
Is there a way to have the "other sizes" etc. info (Easy Sharing "button") hidden for normal viewers but still have it available when the owner's logged in?

This would help protect our images from being downloaded while still giving us direct URLs to use in dGrin forums etc.

Comments

  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited October 17, 2005
    Use CSS customization and the "loggedin" classname
    StevenV wrote:
    Is there a way to have the "other sizes" etc. info (Easy Sharing "button") hidden for normal viewers but still have it available when the owner's logged in?

    This would help protect our images from being downloaded while still giving us direct URLs to use in dGrin forums etc.
    You could use the CSS customization to hide that info when the "loggedin" class is not present. Look at the body tag when you are logged in and not logged in and you will see a different classname present there. You can use CSS customization to show some of that info only when you are logged in. I don't have time to try it myself now, but it should be possible.

    --John
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • StevenVStevenV Registered Users Posts: 1,174 Major grins
    edited October 17, 2005
    jfriend wrote:
    You could use the CSS customization to hide that info when the "loggedin" class is not present.
    Thanks, John. I've not used conditional css before so that didn't occur to me. I'll give it a shot when I can find a few minutes free and report back here.
  • flyingdutchieflyingdutchie Registered Users Posts: 1,286 Major grins
    edited October 17, 2005
    jfriend wrote:
    You could use the CSS customization to hide that info when the "loggedin" class is not present. Look at the body tag when you are logged in and not logged in and you will see a different classname present there. You can use CSS customization to show some of that info only when you are logged in. I don't have time to try it myself now, but it should be possible.

    --John
    This is only a partial solution:
    -You can hide the .imageInfo block entirely when .loggedIn class is not present.
    -You can show the .imageInfo block entirely when .loggedIn class is present.
    -But you can not hide parts of the .imageInfo block. E.g. i'd like to show the viewers only the 'comments' parts and the 'other sizes', but i'd like to see all of the image-info fields when i'm logged in... short of using javascript, how is this possible?
    I can't grasp the notion of time.

    When I hear the earth will melt into the sun,
    in two billion years,
    all I can think is:
        "Will that be on a Monday?"
    ==========================
    http://www.streetsofboston.com
    http://blog.antonspaans.com
  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited October 17, 2005
    It looks like it would need JavaScript
    This is only a partial solution:
    -You can hide the .imageInfo block entirely when .loggedIn class is not present.
    -You can show the .imageInfo block entirely when .loggedIn class is present.
    -But you can not hide parts of the .imageInfo block. E.g. i'd like to show the viewers only the 'comments' parts and the 'other sizes', but i'd like to see all of the image-info fields when i'm logged in... short of using javascript, how is this possible?
    I think you are right. For some reason (which I'm not sure I understand) smugmug didn't put unique class names or ids on the different pieces of that info so as best I know, you can't customize it with just plain CSS other than all at once. The only solution I know of is to use some JavaScript to find those actual pieces of HTML in the page and modify it.

    Question for JT: any reason why the different pieces of the info block aren't uniquely identified so that they can be customized with CSS?

    --John
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • {JT}{JT} Registered Users Posts: 1,016 Major grins
    edited October 17, 2005
    Because that took more time than I was willing to spend on it at that point :) After I finish some of the new stuff I will return to it and add them.
    jfriend wrote:
    I think you are right. For some reason (which I'm not sure I understand) smugmug didn't put unique class names or ids on the different pieces of that info so as best I know, you can't customize it with just plain CSS other than all at once. The only solution I know of is to use some JavaScript to find those actual pieces of HTML in the page and modify it.

    Question for JT: any reason why the different pieces of the info block aren't uniquely identified so that they can be customized with CSS?

    --John
  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited October 17, 2005
    {JT} wrote:
    Because that took more time than I was willing to spend on it at that point :) After I finish some of the new stuff I will return to it and add them.
    Makes sense JT. Glad to know that you're not conceptually against it, we're just waiting for cycles to get the identifiers in. Thanks for responding.

    --John
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • {JT}{JT} Registered Users Posts: 1,016 Major grins
    edited October 17, 2005
    Definetly not against it :) I just like to do things right or not at all - and I was more interested in making sure I got the new templates right ATM. Once I have completed the final pages I will go back and add more IDs to each page.
    jfriend wrote:
    Makes sense JT. Glad to know that you're not conceptually against it, we're just waiting for cycles to get the identifiers in. Thanks for responding.

    --John
  • jfriendjfriend Registered Users Posts: 8,097 Major grins
    edited October 17, 2005
    Thanks.
    {JT} wrote:
    Definetly not against it :) I just like to do things right or not at all - and I was more interested in making sure I got the new templates right ATM. Once I have completed the final pages I will go back and add more IDs to each page.
    Cool, thanks for letting us know.

    --John
    --John
    HomepagePopular
    JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
    Always include a link to your site when posting a question
  • StevenVStevenV Registered Users Posts: 1,174 Major grins
    edited October 18, 2005
    It's probably worth putting in as a feature request so we could do without jumping through CSS hoops. The system recognizes us when we're logged in and shows private galleries, gives us standard pricing, shows the "control panel" link etc. It could also show all the photo details, links and whatnot even if they're turned off for 'normal' users.

    that'd make posting on dgrin.com easier :-)

    thanks for all you guys do.
  • {JT}{JT} Registered Users Posts: 1,016 Major grins
    edited October 18, 2005
    Doing something like this is always produces a double edge sword. Some pros become irrate when they try to make a change and the result is not immediately evident. We get this with pricing, adding to cart and the right click (the former right click). So while I understand that some of you want to see more info when only you are logged in, I heistate when I think of all the help emails it might generate.
    StevenV wrote:
    It's probably worth putting in as a feature request so we could do without jumping through CSS hoops. The system recognizes us when we're logged in and shows private galleries, gives us standard pricing, shows the "control panel" link etc. It could also show all the photo details, links and whatnot even if they're turned off for 'normal' users.

    that'd make posting on dgrin.com easier :-)

    thanks for all you guys do.
  • StevenVStevenV Registered Users Posts: 1,174 Major grins
    edited October 20, 2005
    {JT} wrote:
    ...So while I understand that some of you want to see more info when only you are logged in, I heistate when I think of all the help emails it might generate.
    JT, I understand completely.

    One way I can see that would take care of the whole issue would be to have an always-present button at the top of a pro-logged-in screen [See Customer View] that would open a new window with things hidden that would be, but otherwise always show everything for "us."

    Or by default only show what a customer normally would and have a [Show Everything] button.

    Hey, it's just a SMOP right? icon10.gif


    [simple matter of programmig]
Sign In or Register to comment.