I'd say these were 2 "weird" problems but it's SP....... so nothing is weird.
On a SPO 2010 blog sub site (O365), I have the top ribbon hidden for anonymous visitors with a negative top margin and this to show it for editors:
<div id="ribbon" class="ribbonArea"><!-- Start Main Ribbon Area --><!-- Start Hide Ribbon for Anonymous Users - Only the editor if logged in would be able to see the ribbon --><Sharepoint:SPSecurityTrimmedControl runat="server" Permissions="AddAndCustomizePages"><style>#ribbon{margin-top:0px !important;}</style><!-- Start Ribbon Area -->......Ribbon controls here.......................................</Sharepoint:SPSecurityTrimmedControl >
</div>
Problem 1: space for the ribbon shows, but none of the tools show up.
Problem 2: when I visit the site pages while logged in as admin, the ribbon space disappears. If I click settings or other admin page, it reappears.
Is the permissions level "AddAndCustomizePages" the best thing to use? Am I misunderstanding how this is supposed to work? WordPress has it figured out - why can't MSFT?
Site is: http://365.webbrewers.com/blog