RomaRS писал(а):Только проблемка в следующем - не хочет заходить в админскую панель. Слева фрейм пустой, а затем пишет Connection Time Out. Что за?.
#
#-----[ OPEN ]------------------------------------------------
#
admin/admin_forums.php
#
#-----[ FIND ]------------------------------------------------
#
//-- modify
$sql = "UPDATE " . FORUMS_TABLE . "
SET cat_id = $to_id" . $sql_feed . "
WHERE cat_id = $from_id" . $sql_where;
//-- fin mod : categories hierarchy ----------------------------------------------------------------
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't move forums to other category", "", __LINE__, __FILE__, $sql);
}
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
else if ( $to_fid == 'Root' )
{
$found = false;
for ($i=0; $i < count($tree['sub'][POST_CAT_URL . $from_id]); $i++)
{
$found = ($tree['type'][$tree['keys'][$tree['sub'][POST_CAT_URL . $from_id][$i]]] == POST_FORUM_URL);
}
if ($found)
{
message_die(GENERAL_ERROR, $lang['Must_delete_forums']);
}
}
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM#
#-----[ OPEN ]------------------------------------------------
#
admin/admin_forums.php
#
#-----[ FIND ]------------------------------------------------
#
$sql = "UPDATE " . FORUMS_TABLE . "
SET cat_id = $to_id
WHERE cat_id = $from_id";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't move forums to other category", "", __LINE__, __FILE__, $sql);
}
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
//MOD-CAT FIX
else if ( $to_fid == 'Root' )
{
$found = false;
for ($i=0; $i < count($tree['sub'][POST_CAT_URL . $from_id]); $i++)
{
$found = ($tree['type'][$tree['keys'][$tree['sub'][POST_CAT_URL . $from_id][$i]]] == POST_FORUM_URL);
}
if ($found)
{
message_die(GENERAL_ERROR, $lang['Must_delete_forums']);
}
}
//END MOD-CAT FIX
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM#
#-----[ OPEN ]----------------------------------
#
admin/index.php
#
#-----[ FIND ]----------------------------------
#
// Check for new version
#
#-----[ BEFORE, ADD ]----------------------------------
#
/*
#
#-----[ FIND ]----------------------------------
#
$template->assign_vars(array(
'VERSION_INFO' => $version_info,
'L_VERSION_INFORMATION' => $lang['Version_information'])
);
#
#-----[ AFTER, ADD ]----------------------------------
#
*/
#
#-----[ SAVE/CLOSE ALL FILES ]----------------------------------
#
RomaRS писал(а): Если глюк в админской панели, локализовать его можно поочередно удаляя все ее функции (файлы admin_*.php), локализуя ошибку.
Хм.. у меня и с этим кодом всё корректно работает1) убрать информацию о наличии новой версии PHPBB:
А зачем этот фикс, если с установленным модом подфорумов о стандартной функции управления форумами можно позабыть...?Вначале я слелал вот этот фикс:
Notice: Undefined index: hide in /home/ncomsistemru/www/includes/functions_mods_settings.php on line 130
Notice: Undefined index: hide in /home/ncomsistemru/www/includes/functions_mods_settings.php on line 130
Notice: Undefined index: hide in /home/ncomsistemru/www/includes/functions_mods_settings.php on line 130
Notice: Undefined index: datetime in /home/ncomsistemru/www/includes/mods_settings/mod_calendar.php on line 53
Notice: Undefined index: datetime in /home/ncomsistemru/www/includes/mods_settings/mod_calendar.php on line 56
Notice: Undefined index: datetime in /home/ncomsistemru/www/includes/mods_settings/mod_calendar.php on line 57#open
common.php
#find
error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
#replace with
error_reporting (E_ALL); // This will NOT report uninitialized variablesNotice: Use of undefined constant TEMPLATE_CONFIG - assumed 'TEMPLATE_CONFIG' in /pub/home/jl73/htdocs/forums/includes/functions.php on line 411
Notice: Undefined index: 2 in /pub/home/jl73/htdocs/forums/includes/auth.php on line 286
Notice: Undefined index: 3 in /pub/home/jl73/htdocs/forums/includes/auth.php on line 286
Notice: Undefined index: 4 in /pub/home/jl73/htdocs/forums/includes/auth.php on line 286
Notice: Undefined index: You_last_visit in /pub/home/jl73/htdocs/forums/includes/page_header.php on line 420
danielcasster писал(а):Notice: Use of undefined constant TEMPLATE_CONFIG - assumed 'TEMPLATE_CONFIG'
Вернуться в Поддержка phpBB 2.0.x
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 0