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.

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)';


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

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

Sign In or Register to comment.