Внимание всем, у кого не ресайзятся аватары в категориях, форумах и подфорумах!
Внимание всем, у кого не видно аватаров в ИЕ !
Не майтесь дурью и берите свой
functions_display.php
Теперь код
- Код: выделить все
$avatar_max_dimensions = $avatar_width = $avatar_height = '';
if ( !empty($row['forum_last_poster_avatar']) )
{
$avatar_max_dimensions = 40; // here you can change the max-width you would like to have the avatars displayed
if ( $row['forum_last_poster_avatar_width'] >= $row['forum_last_poster_avatar_height'] )
{
$avatar_width = ( $row['forum_last_poster_avatar_width'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['forum_last_poster_avatar_width'] ;
$avatar_height = ( $avatar_width == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['forum_last_poster_avatar_width'] * $row['forum_last_poster_avatar_height']) : $row['forum_last_poster_avatar_height'] ;
}
else
{
$avatar_height = ( $row['forum_last_poster_avatar_height'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['forum_last_poster_avatar_height'] ;
$avatar_width = ( $avatar_height == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['forum_last_poster_avatar_height'] * $row['forum_last_poster_avatar_width']) : $row['forum_last_poster_avatar_width'] ;
}
}
Вставляйте не перед первой найденной строчкой
- Код: выделить все
$template->assign_block_vars('forumrow', array(
А перед второй!!!
Обратите внимание что ниже строки
- Код: выделить все
$template->assign_block_vars('forumrow', array(
должна быть строка
- Код: выделить все
'S_IS_CAT' => false,
а не
- Код: выделить все
'S_IS_CAT' => true,
Вот и вся причина!!!
Окно поиска от Блокнота ++ не вмещает в себя строку
- Код: выделить все
'S_IS_CAT' => false,
Поэтому поиск по файлу
functions_display.php
предлагает не ТУ СТРОКУ...