Цитата (Alexander @ 14.1.2010, 17:57)
Тут можно только хирургическим путем. Откройте файл modules/news/user/index.php
Найдите:
$result=$Mainclass->Db->Query('SELECT `id`,`url`,`main_cat`,`title`,`date`,`text`,`author`,`author_id`,`show_detail`,`votes`,`total`,`reads`,`comments`,`allow_comm` FROM `f_news` INNER JOIN `f_news_l` USING(`id`) WHERE `language`IN('',''.$Mainclass->lang_name.'') AND'.$date_sql.' `status`=1 AND (`groups`='''.$ug.') ORDER BY `pinned` DESC, `date` DESC LIMIT '.$offset.', '.($general ? $Mainclass->vars['m_news_per_page_general'] : $Mainclass->vars['m_news_per_page']),__file__,__line__);
Замените на:
$result=$Mainclass->Db->Query('SELECT `id`,`url`,`main_cat`,`title`,`date`,`text`,`author`,`author_id`,`show_detail`,`votes`,`total`,`reads`,`comments`,`allow_comm` FROM `f_news` INNER JOIN `f_news_l` USING(`id`) WHERE `language`IN('',''.$Mainclass->lang_name.'') AND'.$date_sql.' `status`=1 AND `cid`IN(CIDS) AND (`groups`='''.$ug.') ORDER BY `pinned` DESC, `date` DESC LIMIT '.$offset.', '.($general ? $Mainclass->vars['m_news_per_page_general'] : $Mainclass->vars['m_news_per_page']),__file__,__line__);
Где вместо 'CIDS' напишите ID-ы категорий. Например IN(1,2,3)
Цитата
Notice: Undefined variable: general Line: 299 in file /home/funsibru/public_html/elka/modules/files/user/index.php
URL: /files/мультфильмы/page_1/
Date: 2010-01-16 00:38:28
IP: 83.167.88.71