Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
PHP tags for logged in and logged out users
keesha
✭
I'd like to hide particular things in the panel for guests, but my PHP Knowledge is a bit limited, i've searched also in the Vanilla documentation but i had bad luck so far.
Is there somewhere a better documentation or a library of specific php tags for Vanilla?
Is there somewhere a better documentation or a library of specific php tags for Vanilla?
0
Comments
<?php if(Gdn::Session()->CheckPermission('Garden.SignIn.Allow')) : ?> <!-- HTML that logged in users will see --> <?php else : ?> <!-- HTML that guests will see --> <?php endif; ?>