Здравствуйте. Вот пытался изменить не выходит. Указываю в файле "boardIndexGalleryImages_" номер категории(15), но он почему-то с альбомов не вытаскивает фотографии а вот с категории выводится. пытался указать в ряд номера альбомов, выдает ошибку. Подскажите пожалуйста, как выводить изображения из определенной категории включая альбомы. или подкатегории? Вот содержание файла "boardIndexGalleryImages_" <?php
class boardIndexGalleryImages
{
public $registry;
public function __construct()
{
$this->registry = ipsRegistry::instance();
$this->settings =& $this->registry->fetchSettings();
$this->DB = ipsRegistry::DB();
}
public function getOutput()
{
/* Setup Gallery Environment */
require_once( IPSLib::getAppDir( 'gallery' ) . '/app_class_gallery.php' );
$gallery = new app_class_gallery( $this->registry );
$this->registry->class_localization->loadLanguageFile( array( 'public_gallery'), 'gallery' );
/* Image Listing */
require_once( GALLERY_LIBS .'lib_imagelisting.php' );
/* Return Output */
$img_list = new lib_imagelisting( $this->registry );
if( $this->settings['gallery_stats_where'] == 'both' OR $this->settings['gallery_stats_where'] == 'cat' )
{
$allow_cats = $this->registry->category->getAllowedCats( 1, $this->registry->category->cat_lookup );
}
if( !$this->settings['gallery_cache_albums'] AND ( $this->settings['gallery_stats_where'] == 'both' OR $this->settings['gallery_stats_where'] == 'album' ) )
{
$allow_albums = true;
}
else if( $this->settings['gallery_stats_where'] == 'both' OR $this->settings['gallery_stats_where'] == 'album' )
{
$allow_albums = $this->registry->glib->getAllowedAlbums();
}
$img_list->getListingData( array(
'st' => 0,
'show' => 6,
'approve' => 1,
'sort_key' => 'i.idate',
'album' => 0,
'category' => 0,
'allow_cats' => $allow_cats,
'allow_albums' => $allow_albums,
) );
/* Found images? */
if( ! $this->DB->getTotalRows( $img_list->res ) )
{
return '';
}
/* Build output array */
$rows = array();
while( $r = $this->DB->fetch( $img_list->res ) )
{
$r['_image'] = $this->registry->glib->makeImageLink( $r, $r['thumbnail'] );
$rows[] = $r;
}
return $this->registry->output->getTemplate( 'boards' )->hookRecentGalleryImages( $rows );
}
} Заранее очень благодарен!