Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Add user icon after login

edited May 2009 in Vanilla 1.0 Help
Hi there. I'm trying to insert in the menu.php file of digg theme the function to show user icon when people are logged in. I don't know the php but trying few times i inserted this piece of code: echo $this->User->DisplayIcon; after this original part of code: if ($this->Context->Session->UserID > 0) { echo str_replace('//1', $this->Context->Session->User->Name, $this->Context->GetDefinition('SignedInAsX')).' (<a href="'.$this->Context->Configuration['SIGNOUT_URL'].'">'.$this->Context->GetDefinition('SignOut').'</a>)';} the page return me this error: Notice: Undefined property: User in W:\www\kiwii\themes\Digg\menu.php on line 10 Can someone help me please understand it? Thanxs

Comments

Sign In or Register to comment.