Index: trunk/kernel/include/portaluser.php =================================================================== diff -u -r1020 -r1067 --- trunk/kernel/include/portaluser.php (.../portaluser.php) (revision 1020) +++ trunk/kernel/include/portaluser.php (.../portaluser.php) (revision 1067) @@ -10,7 +10,8 @@ function clsPortalUser($UserId=NULL) { - $this->clsParsedItem(); + // $this->clsParsedItem(); + $this->clsItem(); $this->tablename=GetTablePrefix()."PortalUser"; $this->type=6; $this->BasePermission="USER"; @@ -313,6 +314,7 @@ global $objConfig, $objUsers, $objCatList,$objSession, $var_list_update, $var_list, $m_var_list_update; //echo "
"; print_r($element); echo "
"; //echo "Tag Prefix: ".$this->TagPrefix." Element: ".$element->name."
"; + $this->clsPortalUser(); if (strtolower($element->name) == 'touser') { $this->TagPrefix = "touser"; } @@ -550,19 +552,24 @@ @attrib:_name::Return the image with this name @attrib:_thumbnail:bool:If true, return the thumbnail version of the image @attrib:_imagetag:bool:If true, returns a complete image tag. exta html attributes are passed to the image tag - */ + */ + $avatar = $element->attributes["_avatar"]; $default = $element->attributes["_primary"]; $name = $element->attributes["_name"]; - if(strlen($name)) + if ($avatar) { + $img = $this->GetAvatarImage(); + } + elseif(strlen($name)) + { $img = $this->GetImageByName($name); // echo "
";print_r($img); echo "
"; } - else - { - if($default) - $img = $this->GetDefaultImage(); - } + elseif ($default) + { + $img = $this->GetDefaultImage(); + } + if($img) { if($element->attributes["_thumbnail"])