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.
Options

Solved: The shortest way to detect Guest in the code

edited June 2012 in Vanilla 2.0 - 2.8
   if (!Gdn::Session()->IsValid()) 
   {
      $res .= ' (GUEST)';
   }

Comments

  • Options

    Thanks man.

    Can you add it to the Vanilla Wiki too please?

    Maybe a special page to show all kinds of tricks like that :-)

    There was an error rendering this rich post.

  • Options

    Not very hard - started new thread in Coding like a Boss :)

Sign In or Register to comment.