|
15.04.2005, 15:04
ifahr могу, но что получится не гарантирую
Открой modules/coppermine/include/load.inc.php
Найди:
PHP код:
foreach($breadcrumb as $crumb) { $pagetitle .= " > ".$crumb['title']; }
Замени на:
PHP код:
if(is_numeric($pos)&& $pos>=0){ $sort_array = array('na' => 'filename ASC', 'nd' => 'filename DESC', 'ta' => 'title ASC', 'td' => 'title DESC', 'da' => 'pid ASC', 'dd' => 'pid DESC', 'ra' => 'pic_rating ASC', 'rd' => 'pic_rating DESC'); $result = db_query("SELECT title, caption FROM {$CONFIG['TABLE_PICTURES']} WHERE aid='$album' ORDER BY ".$sort_array[$CONFIG['default_sort_order']]." LIMIT $pos,1"); if (mysql_num_rows($result) > 0) { $breadcrumb[] = mysql_fetch_array($result); mysql_free_result($result); } } foreach($breadcrumb as $crumb) { $pagetitle .= " > ".$crumb['title']; if(isset($crumb['caption'])){ $pagetitle .= " > ".$crumb['caption']; } }
|
|