====== My Photo Component ====== This component was designed to display your photo anywhere on the homepage 1. Create file called ComponentMyPhoto.php and paste in the following code. user = $_SESSION['SESSION_UID']; //if (!$this->user) // throw new Exception("Invalid User ID"); } public function Show($attributes) { global $INTRANET; $file = $this->user ? $this->user : 'no_photo'; if (!file_exists($INTRANET.'/people/photos/'.$file.'.jpg')) $file = 'no_photo'; // probably it's reasonable to use $cfg_user_profile_image_width and $cfg_user_profile_image_height here return ''; } } ?> 2. Copy this file into /intranet/common/classes/ 3. Paste the following component code anywhere on templater file