Avatar of poster on Index and Viewforum phpbb3
Добавлено: 11 ноя 2012, 17:34
Я в процессе обучения) Ну, пока это сильно не парит, если только какие нибудь ещё глюки не вылезут.
Неформальная поддержка форумов phpBB
http://hello-vitebsk.ru/
Когда его деинсталлирую ошибка пропадает.SQL ERROR [ mysqli ]
Field 'forum_last_poster_avatar' doesn't have a default value [1364]
SQL
INSERT INTO phpbb_zooforums (parent_id, forum_type, forum_status, forum_parents, forum_name, forum_link, forum_desc, forum_desc_uid, forum_desc_options, forum_desc_bitfield, forum_seo_key, forum_seo_desc, forum_seo_bottom, forum_rules, forum_rules_uid, forum_rules_options, forum_rules_bitfield, forum_rules_link, forum_image, forum_logo, forum_style, display_subforum_list, display_on_index, forum_topics_per_page, forum_recent_topics, enable_indexing, enable_icons, enable_events, enable_prune, prune_days, prune_viewed, prune_freq, forum_bg, forum_options, forum_evaluation, forum_flags, left_id, right_id) VALUES (0, 0, 0, '', 'test', '', '', '', 7, '', '', '', '', '', '', 7, '', '', '', '', 0, 1, 0, 0, 0, 1, 0, 0, 0, 7, 7, 1, '', 0, 6, 48, 77, 78)
BACKTRACE
Код: Выделить всё
<dd class="lastpost">
Код: Выделить всё
dd class="lastpost">
В том, что надо внимательно проверить все правки мода, иmaco8024 писал(а):не подскажите в чем проблема ?
Код: Выделить всё
<dd class="lastpost">
Все проверил - все правильно , вышеуказанный мод стоит.maco8024 писал(а):стоит мод Благодарности за сообщение
Код: Выделить всё
<dd class="lastpostthanks"><span>{L_LAST_POST}</span></dd>
Код: Выделить всё
<dd class="lastpost<!-- IF forumrow.S_THANKS_FORUM_REPUT_VIEW_COLUMN and not S_IS_BOT --> lastpostthanks<!-- ENDIF -->"><span>
Код: Выделить всё
<dd class="lastpostthanks"><span>{L_LAST_POST}</span></dd>
Код: Выделить всё
<dd class="lastpost<!-- BEGIN reput --><!-- IF topicrow.reput.S_THANKS_TOPIC_REPUT_VIEW_COLUMN and not S_IS_BOT --> lastpostthanks<!-- ENDIF --><!-- END reput -->"><span><dfn>{L_LAST_POST} </dfn>{L_POST_BY_AUTHOR} {topicrow.LAST_POST_AUTHOR_FULL}
Код: Выделить всё
<dd class="lastpost<!-- IF forumrow.S_THANKS_FORUM_REPUT_VIEW_COLUMN and not S_IS_BOT --> lastpostthanks<!-- ENDIF -->"><span>
Код: Выделить всё
<dd class="lastpost<!-- BEGIN reput --><!-- IF topicrow.reput.S_THANKS_TOPIC_REPUT_VIEW_COLUMN and not S_IS_BOT --> lastpostthanks<!-- ENDIF --><!-- END reput -->"><span>
Код: Выделить всё
public $language = 'portal_news_module';
Код: Выделить всё
$avatar_img = $avatar_max_dimensions = $topic_last_poster_avatar_height = $topic_last_poster_avatar_width = $topic_first_poster_avatar_width = $topic_first_poster_avatar_height = '';
if ( !empty($row['topic_first_poster_avatar']) || !empty($row['topic_last_poster_avatar']))
{
$avatar_max_dimensions = 50;
if ( $row['topic_first_poster_avatar_width'] >= $row['topic_first_poster_avatar_height'] )
{
$topic_first_poster_avatar_width = ( $row['topic_first_poster_avatar_width'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_first_poster_avatar_width'] ;
$topic_first_poster_avatar_height = ( $topic_first_poster_avatar_width == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_first_poster_avatar_width'] * $row['topic_first_poster_avatar_height']) : $row['topic_first_poster_avatar_height'] ;
}
else
{
$topic_first_poster_avatar_height = ( $row['topic_first_poster_avatar_height'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_first_poster_avatar_height'] ;
$topic_first_poster_avatar_width = ( $topic_first_poster_avatar_height == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_first_poster_avatar_height'] * $row['topic_first_poster_avatar_width']) : $row['topic_first_poster_avatar_width'] ;
}
if ( $row['topic_last_poster_avatar_width'] >= $row['topic_last_poster_avatar_height'] )
{
$topic_last_poster_avatar_width = ( $row['topic_last_poster_avatar_width'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_last_poster_avatar_width'] ;
$topic_last_poster_avatar_height = ( $topic_last_poster_avatar_width == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_last_poster_avatar_width'] * $row['topic_last_poster_avatar_height']) : $row['topic_last_poster_avatar_height'] ;
}
else
{
$topic_last_poster_avatar_height = ( $row['topic_last_poster_avatar_height'] > $avatar_max_dimensions ) ? $avatar_max_dimensions : $row['topic_last_poster_avatar_height'] ;
$topic_last_poster_avatar_width = ( $topic_last_poster_avatar_height == $avatar_max_dimensions ) ? round($avatar_max_dimensions / $row['topic_last_poster_avatar_height'] * $row['topic_last_poster_avatar_width']) : $row['topic_last_poster_avatar_width'] ;
}
}
Код: Выделить всё
'TOPIC_ICON_IMG_HEIGHT' => (!empty($icons[$fetch_news[$i]['icon_id']])) ? $icons[$fetch_news[$i]['icon_id']]['height'] : '',
Код: Выделить всё
'TOPIC_AUTHOR_AVATAR' => ($config['enable_avatar_index']) ? get_user_avatar($row['topic_first_poster_avatar'], $row['topic_first_poster_avatar_type'], $topic_first_poster_avatar_width, $topic_first_poster_avatar_height) : false,
'TOPIC_AUTHOR_AVATAR_MARGIN' => ( $topic_first_poster_avatar_width == '' ) ? '' : (( $topic_first_poster_avatar_width == $avatar_max_dimensions ) ? 5 : ( $avatar_max_dimensions - $topic_first_poster_avatar_width + 5 )),
'AVATAR_WIDTH' => $avatar_max_dimensions,
'LAST_POST_AUTHOR_AVATAR' => ($config['enable_avatar_index']) ? get_user_avatar($row['topic_last_poster_avatar'], $row['topic_last_poster_avatar_type'], $topic_last_poster_avatar_width, $topic_last_poster_avatar_height) : false,
'LAST_POST_AUTHOR_AVATAR_MARGIN'=> ( $topic_last_poster_avatar_width == $avatar_max_dimensions ) ? 5 : ( $avatar_max_dimensions - $topic_last_poster_avatar_width + 5 ),
Код: Выделить всё
<span><dfn>{L_LAST_POST}</dfn>{L_POST_BY_AUTHOR} {news_row.USERNAME_FULL_LAST}
Код: Выделить всё
<!-- IF news_row.LAST_POST_AUTHOR_AVATAR --><div style="float: left; padding-top: 0px; margin-left: 5px; margin-right: {news_row.LAST_POST_AUTHOR_AVATAR_MARGIN}px;">{news_row.LAST_POST_AUTHOR_AVATAR}</div><!-- ENDIF -->
Код: Выделить всё
; background-repeat: no-repeat;<!-- ENDIF -->" title="{news_row.TOPIC_FOLDER_IMG_ALT}">
Код: Выделить всё
<!-- IF news_row.TOPIC_AUTHOR_AVATAR --><span style="float: left; padding-top: 3px; margin-right: {news_row.TOPIC_AUTHOR_AVATAR_MARGIN}px;">{news_row.TOPIC_AUTHOR_AVATAR}</span><!-- ENDIF -->
Ммм... папка modules у меня отсутствуетDeaDRoMeO писал(а):открыть файл /portal/modules/portal_news.php