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
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
0
Comments
I'm looking for a solution to do exactly the same thing, but when i print_r($this->Context->Session->User), all variable are empty (like [Icon]=> [Picture]=>...).
How do i could manage to display user's icon? I'm using vanilla 1.18.
Thx!
http://code.google.com/p/lussumo-vanilla/source/browse/trunk/src/library/People/People.Class.UserManager.php#652