Beispiel #1
0
                    } else {
                        $sublevel = $database->getUserSublevelById($senderid1);
                        $prurl = getUserProfileUrl($senderid1);
                        if ($sublevel == LENDER_GROUP_LEVEL) {
                            $name12 = $database->getNameById($senderid1);
                        } else {
                            $name12 = $database->getUserNameById($senderid1);
                        }
                    }
                    ?>
									<table class="zebra-striped">
										<tbody>
											<tr>
												<td style="width:100px">
													<img src="<?php 
                    echo getProfileImageUrl($senderid1, 100);
                    ?>
" style="width:100px">
													<p style="margin-top:10px;text-align:center;"><?php 
                    echo "<a href='{$prurl}'>{$name12}</a>";
                    ?>
</p>
												</td>
												<td style="width:100%;border-right:1px solid #DFDCDC">
													<strong><?php 
                    echo $name12;
                    ?>
</strong>&nbsp;<?php 
                    echo 'comments on';
                    ?>
&nbsp;<?php 
Beispiel #2
0
 function getProfileImage($userid, $width = null, $height = null)
 {
     $image = getProfileImagePath($userid);
     if (file_exists($image)) {
         return getProfileImageUrl($userid, $width, $height);
     } else {
         $brw = $this->getBorrowerDetails($userid);
         $fb_data = unserialize(base64_decode($brw['fb_data']));
         if (!empty($fb_data['user_profile']['id'])) {
             //                return "https://graph.facebook.com/".$fb_data['user_profile']['id']."/picture?width=$width&height=$height";
             return "https://graph.facebook.com/" . $fb_data['user_profile']['id'] . "/picture?width=9999&height=9999";
         }
     }
     return getDefaultImageUrl();
 }
Beispiel #3
0
if (!empty($isPhoto_select)) {
    $photolabel = $lang['register']['upload_photo'];
    $prevphoto = $isPhoto_select;
    ?>
                                    <img class="user-account-img" src="<?php 
    echo SITE_URL . 'images/tmp/' . $isPhoto_select;
    ?>
" style="width:130px" alt=""/>
                                <?php 
} else {
    if (file_exists(USER_IMAGE_DIR . $id . ".jpg")) {
        $photolabel = $lang['register']['upload_diffphoto'];
        $prevphoto = $id . ".jpg";
        ?>
                                    <img style="width:130px" class="user-account-img" src="<?php 
        echo getProfileImageUrl($id, 235);
        ?>
" alt="" />
    
                                <?php 
    } else {
        if (!empty($facebook_id)) {
            echo "<img style='max-width:130px;' src='https://graph.facebook.com/" . $facebook_id . "/picture?width=9999&height=9999' />";
            $photolabel = $lang['register']['upload_diffphoto'];
        }
    }
}
?>
                            </div>
                            <!--[if lt IE 9]>
                            <div>