28.04.2012, 16:22 | Новини розширень Joomla! | Денис Носов
Розробник Су Ли (CY Lee) з команди Mosets презентував доволі корисний плагін Profile Picture, який допомагає завантажити зображення користувача у власний профіль.
Розширення працює лише з Joomla 2.5.
jimport('mosets.profilepicture.profilepicture'); $user = JFactory::getUser(); $profilepicture = new ProfilePicture($user->get('id')); if( $profilepicture->exists() ) { echo '<img src="'.$profilepicture->getURL().'" alt="'.$user->get('name').'" />'; }