Pinning Not Done When Logged In
leftquark
Registered Users, Retired Mod Posts: 3,784 Many Grins
While testing some CSS tweaks this evening I found what appears to be a bug in the way sections are pinned. I have a header that is supposed to be pinned. When I'm logged in, it does NOT pin to the top properly. When I'm not logged in, it pins properly. I found out why.
Looking at the code for the header we see a subtle difference:
When logged in:
When not logged in
So you can clearly see that when a user is not logged in, the correct pinned CSS gets added, but when we are logged in, the pinning does not get added.
Example here: http://leftquark.smugmug.com/2014/Filmstrip-Sample/n-bv6dq/
Looking at the code for the header we see a subtle difference:
When logged in:
<div class="sm-page-layout-region sm-page-layout-region-header" id=...
When not logged in
<div class="sm-page-layout-region sm-page-layout-region-header [COLOR="Red"]sm-page-layout-region-pinned[/COLOR]" style="width: 1905px;" id=...
So you can clearly see that when a user is not logged in, the correct pinned CSS gets added, but when we are logged in, the pinning does not get added.
Example here: http://leftquark.smugmug.com/2014/Filmstrip-Sample/n-bv6dq/
dGrin Afficionado
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations
0
Comments
SmugMug Support Hero
Yes, it appears that you guys appear to be "cute" with how you pin... When the user is logged in, it displays the users admin bar at the top (with things like "Upload, Organize, Customize" and account settings, etc.
This bar does NOT get pinned, but the header does, IF the user scrolls down. When the user scrolls down far enough, the PINNING code gets added, but only for the persons header, not for the admin bar. The admin bar disappears and the header stays pinned because of some javascript you added to now all of a sudden pin the header.
I'm not really sure why you didn't bother to pin the admin bar as well. It would have been a lot simpler and I wouldn't have had to do anything fancy.
None-the-less, I added some code to pin the admin bar and the header when the user is logged in, so I have it working how I want ... I hope.
Former SmugMug Product Team
aaron AT aaronmphotography DOT com
Website: http://www.aaronmphotography.com
My SmugMug CSS Customizations website: http://www.aaronmphotography.com/Customizations