Beispiel #1
0
 function getUserImage($user_id, $format = "50", $alt, $style = "", $noimage = "")
 {
     $db = JFactory::getDbo();
     $sql = "SELECT profile_value FROM `text_user_profiles` where profile_key='profilepicture.file' and user_id =" . $user_id;
     $db->setQuery($sql);
     $result = $db->loadResult();
     if (!empty($result) && ideary::existAllImagesOfUser($user_id)) {
         $path = JURI::root() . 'templates/beez_20/images/user_profile/' . $user_id . '/' . $format . '/' . $result;
     } else {
         if ($noimage == "") {
             $path = JURI::root() . 'media/com_socialloginandsocialshare/images/noimage.png';
         } else {
             $path = $noimage;
         }
     }
     $html = "<img src='" . $path . "' " . $style . "/>";
     return $html;
 }
Beispiel #2
0
" class="required edit-profile-input-text invalid" size="30" aria-required="true" required="required" aria-invalid="true">
                </div>

                <div class="edit-profile-input-text-container" style="height: auto;">
                    <div class="edit-profile-input-text-label"><?php 
echo JTEXT::_('PROFILE_PHOTO');
?>
</div>

                    <div id="edit-profile-img-container">

                        <?php 
$imageName = ideary::getUserImageName($this->user->id);
?>
                        <?php 
if ($imageName && ideary::existAllImagesOfUser($this->user->id)) {
    ?>

                            <div id="edit-profile-img">
                                <div id="edit-profile-img-data">
                                    <div id="edit-profile-img-name">Cambiar Imagen</div>
                                    <div id="edit-profile-img-delete" data-has-img="true" title="<?php 
    echo JText::_('DELETE_IMAGE');
    ?>
"></div>
                                </div>
                                <img src="<?php 
    echo Ideary::getUserImagePath($this->user->id, 200);
    ?>
">
                            </div>