переустановил все заново. Сделал файл db_update с помощью веб приложения. SQL изменения которые были описаны в файле мода:
Код: Выделить всё
#-----[ SQL ]------------------------------------------
#
# Remember to change the table prefix used on your database
ALTER TABLE `phpbb_forums` ADD `forum_icon_new_post` VARCHAR( 255 ) default NULL;
ALTER TABLE `phpbb_forums` ADD `forum_icon_no_post` VARCHAR( 255 ) default NULL;
#
# Remember to do this for each installed language pack!
#
Возникает ошибка при входе в админ-панель - не отображается правый столбец, а пишет:
Код: Выделить всё
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/users/s/starcity/domains/starcity.net.ru/admin/admin_forums.php on line 371
Вот файл admin_forums.php(371 строка-жирная):
'L_FORUM_EXPLAIN' => $lang['Forum_edit_delete_explain'],
'L_FORUM_SETTINGS' => $lang['Forum_settings'],
'L_FORUM_NAME' => $lang['Forum_name'],
'L_CATEGORY' => $lang['Category'],
'L_FORUM_DESCRIPTION' => $lang['Forum_desc'],
'L_FORUM_STATUS' => $lang['Forum_status'],
//Forum icons
'L_FORUM_ICON_NEW_POST' => $lang['Forum_icon_new_post'],
'L_FORUM_ICON_NO_POST' => $lang['Forum_icon_no_post'],
//Forum icons
'L_FORUM_ICON' => $lang['Forum_icon'], // Forum Icon MOD
'L_FORUM_ICON_EXPLAIN' => $lang['Forum_icon_explain'], // Forum Icon MOD
'L_AUTO_PRUNE' => $lang['Forum_pruning'],
'L_ENABLED' => $lang['Enabled'],
'L_PRUNE_DAYS' => $lang['prune_days'],
'L_PRUNE_FREQ' => $lang['prune_freq'],
'L_DAYS' => $lang['Days'],
'PRUNE_DAYS' => ( isset($pr_row['prune_days']) ) ? $pr_row['prune_days'] : 7,
'PRUNE_FREQ' => ( isset($pr_row['prune_freq']) ) ? $pr_row['prune_freq'] : 1,
'FORUM_NAME' => $forumname,
'DESCRIPTION' => $forumdesc,
//Forum icons
'ICONNEWPOST' => ( $forumiconnewpost ) ? $forumiconnewpost : '',
'ICONNEWPOST_DISPLAY' => ( $forumiconnewpost ) ? '<img src="' . $phpbb_root_path . $forumiconnewpost . '" />' : '',
'ICONNOPOST' => ( $forumiconnopost ) ? $forumiconnopost : '',
'ICONNOPOST_DISPLAY' => ( $forumiconnopost ) ? '<img src="' . $phpbb_root_path . $forumiconnopost . '" />' : ''
//Forum icons
)
'ICON' => ( $forumicon ) ? $forumicon : '', // Forum Icon MOD
'ICON_DISPLAY' => ( $forumicon ) ? '<img src="' . $phpbb_root_path . $forumicon . '" />' : '' // Forum Icon MOD
)
);
$template->pparse("body");
break;
case 'createforum':
//
// Create a forum in the DB
//
if( trim($HTTP_POST_VARS['forumname']) == "" )
{
message_die(GENERAL_ERROR, "Can't create a forum without a name");
}
$sql = "SELECT MAX(forum_order) AS max_order
FROM " . FORUMS_TABLE . "
WHERE cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]);
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't get order number from forums table", "", __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$max_order = $row['max_order'];
$next_order = $max_order + 10;
$sql = "SELECT MAX(forum_id) AS max_id
FROM " . FORUMS_TABLE;
Помогите разобратся. Заранее спасибо.