Измени в модуле - mod_community_photos.php
И будет все работать.
<?php
/**
* @version $Id: mod_community_photos.php 1.5.5 2009-10-20 10:53:15Z t3pt6k $
* @package Community Latest Photo Module
* @copyright Copyright (C) 2009 Experience Outdoors. All rights reserved.
* @license
http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*/
require_once( JPATH_BASE . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'core.php');
require_once (dirname(__FILE__).DS.'helper.php');
$photoCount = $params->get('photo_count', '12');
$poolCount = $params->get('pool_count', '12');
//
$shuffle = $params->get('shuffle', '0');
$wallCounts = $params->get('wall_count', '0');
$showAll = $params->get('show_all', '1');
$showCaption = $params->get('show_caption', '1');
//
$photosFrom = $params->get('photos_from', 'user');
$permission = $params->get('permission', '0');
$albumList = $params->get('album_list', '');
//
$imageHeight = $params->get('image_height', '45');
$imageWidth = $params->get('image_width', '45');
//
$directLink = $params->get('direct_link', '');
$directText = $params->get('direct_text', '');
$directInline = $params->get('direct_inline', '1');
//
$imageClass = $params->get('image_class', 'avatar hasTip');
$photoModel =& CFactory::getModel('photos');
$latestPhotos = array();
if ($albumList != "") {
$albumArray = explode(",", $albumList);
$albumCount = count($albumArray);
foreach ($albumArray as $albumID) {
$latestPhotosAlbum = getModPhotosAllPhotos( $albumID , null , (int) (($poolCount/$albumCount)+1), $permission);
$latestPhotos = array_merge($latestPhotos, $latestPhotosAlbum);
}
} else {
if ($photosFrom == 'all') {
$latestPhotosGroup = getModPhotosAllPhotos( null , PHOTOS_GROUP_TYPE, (int) ($poolCount/2), $permission);
$latestPhotosUser = getModPhotosAllPhotos( null , PHOTOS_USER_TYPE, ($poolCount-count($latestPhotosGroup)), $permission);
$latestPhotos = array_merge($latestPhotosUser, $latestPhotosGroup);
} else {
$latestPhotos = getModPhotosAllPhotos( null , $photosFrom, $poolCount);
}
}
if ($shuffle == 1 && count($latestPhotos) > 0) shuffle( $latestPhotos );
if (count($latestPhotos) < $photoCount ? $numPhotos = count($latestPhotos) : $numPhotos = $photoCount);
?>
<div style="margin: 0 0 20px;" align="center">
<ul style="margin: 0pt; padding: 0pt; list-style: none;">
<?php
for( $i = 0 ; $i < $numPhotos; $i++ )
{
$row =& $latestPhotos[$i];
$groupID = getModPhotosGroupID( $row->albumid );
if ( $groupID != 0 ) {
$groupString = '&groupid=' . $groupID;
} else {
$groupString = '';
}
if ($showCaption == 0) $row->caption = ""; // clear the caption
if ($wallCounts == 1) {
$wallCount = getModPhotosWallCount($row->id, 'photos');
$row->caption .= JText::_('MOD_COM_PHOTOS COMMENTS')." ".$wallCount;
}
?>
<li style="display: inline; padding: 0; background: none; margin: 0 3px 0 0 !important;">
<a href="<?php echo CRoute::_('index.php?option=com_community&view=photos&task=photo&albumid=' . $row->albumid . '&photoid=' . $row->id . '&userid=' . $row->creator . $groupString . '#photoid=' . $row->id) ?>">
<img class="<?php echo $imageClass; ?>" title="<?php echo $row->caption;?>" src="<?php echo JURI::base(). $row->thumbnail; ?>" alt="<?php echo $row->caption;?>" width="<? echo $imageWidth; ?>" height="<? echo $imageHeight; ?>" /></a>
</li>
<?php
}
?>
</ul>
</div>
<?php
if ($showAll == 1) {
?>
<div class="see-all" align="right">
<a title="<?php echo JText::_('MOD_COM_PHOTOS SHOW ALL'); ?>" href="<?php echo CRoute::_('index.php?option=com_community&view=photos' ); ?>">
<span><?php echo JText::_('MOD_COM_PHOTOS SHOW ALL'); ?></span>
</a>
<?php
if ($directInline == 0 || $directLink == '') echo '</div>';
}
if ($showAll == 1 && $directLink != '' && $directInline == 1) echo JText::_('MOD_COM_PHOTOS INLINE SEP');
?>
<?php
if ($directLink != '') {
if ($directInline == 0 || $showAll == 0) echo '<div class="see-all" align="right">';
?>
<a title="<?php echo $directText; ?>" href="<?php echo $directLink; ?>">
<span><?php echo $directText; ?></span>
</a>
</div>
<?php
}
?>