Для начала скачиваем файл
http://www.instantcms.ru/users/files/download370.html
распаковываем его в корень (или куда удобней не забываем про пути)
и начинамем править com_users_photos.tpl
В самом вверху пишем
Код PHP:{add_js file='fancybox/jquery.fancybox-1.2.1.pack.js'}
{add_css file='fancybox/jquery.fancybox.css'}
{literal}
<script type="text/javascript">
$(document).ready(function() {
$("a.iframe").fancybox(
{
"frameWidth" : 700, // ширина окна, px (425px - по умолчанию)
"frameHeight" : 700 // высота окна, px(355px - по умолчанию)
});
});
</script>
{/literal} меняем
Код PHP:<a class="usr_photo_link" href="{$photo.url}" title="{$photo.title}">
<img border="0" src="{$photo.file}" alt="{$photo.title}"/>
</a> на
Код PHP:<div class="usr_photo_thumb"><a class="iframe" href="/fancybox/photo.php?id={$user_id}&foto={$photo.id}" ><img border="0" src="{$photo.file}" alt="{$photo.title}"/></a>
готовый вариант можно посмотреть здесь!
http://www.psy-land.ru/users/0/65/photoalbum.html
Совсем забыл!!!!!!!!!!! Нужно закомментировать или удалить в components\users\frontend.php
находим //VIEW ALBUM//
Код PHP: //Получаем фотографии из галереи
$public_sql = "SELECT id, DATE_FORMAT(pubdate, '%d-%m-%Y') as fpubdate, file, hits
FROM cms_photo_files
WHERE user_id = {$id} AND published = 1";
$public_res = $inDB->query($public_sql);
if ($inDB->num_rows($public_res)) {
while($photo = $inDB->fetch_assoc($public_res)){
$photo['file'] = '/images/photos/small/'.$photo['file'];
$photo['url'] = '/photos/0/photo'.$photo['id'].'.html';
$photos[] = $photo;
}
}