CSS Question: Hiding stuff from your "assistant" :)

NimaiNimai Registered Users Posts: 564 Major grins
Does anyone know why this isn't having the desired effect?
body.notOwner .unlistedGallery {display: none;}

I swore I had it working at one point! (Hope the girl I asked to do some work for me hasn't been snooping around! :rofl )

Comments

  • NimaiNimai Registered Users Posts: 564 Major grins
    edited November 9, 2011
    Ah - my memory is coming back. I added those CSS classes via JFriends script. I see the classes applied properly. Still investigating.
    //----------------------------------------------------------------------------------------------
    // Script to hide lots of UI things when logged in via assistant password
    //
    // Version 1.0.
    //----------------------------------------------------------------------------------------------
    YE.onContentReady("toolsButton", function()
    {
        var isOwner = false;
        try {
            isOwner = SM.buttons.toolsButton.config.owner;
        } catch (e) {}
        if (!isOwner)
        {
            YD.addClass(document.body, "notOwner");
        }
    
        var privates = Sizzle("p.private");
        for (var i=0; i<privates.length; ++i)
        {
          YD.addClass( privates[i].parentNode, "unlistedGallery" );
        }
    
    });
    
  • NimaiNimai Registered Users Posts: 564 Major grins
    edited November 9, 2011
    FALSE ALARM! I think it's a CSS fight between other crazy hacks I've got going on, like the 150x150 thumbnails for categories and sub-cats... I added a !important and that did it.wings.gif
Sign In or Register to comment.