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

edited November 2010 in Vanilla 2.0 - 2.8
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?


  • Options
    LincLinc Detroit Admin
    <?php if(Gdn::Session()->CheckPermission('Garden.SignIn.Allow')) : ?> <!-- HTML that logged in users will see --> <?php else : ?> <!-- HTML that guests will see --> <?php endif; ?>
  • Options
    Thank you for your help Lincoln :-)
Sign In or Register to comment.