Foros del Web » Programando para Internet » PHP »

problema en functions.php (phpBB2)

Estas en el tema de problema en functions.php (phpBB2) en el foro de PHP en Foros del Web. he creado un template con los pasos que me pone en el panel de administracion de mi foro phpBB2, lo he instalado y lo e ...
  #1 (permalink)  
Antiguo 26/05/2005, 06:33
 
Fecha de Ingreso: mayo-2005
Mensajes: 6
Antigüedad: 18 años, 10 meses
Puntos: 0
Exclamación problema en functions.php (phpBB2)

he creado un template con los pasos que me pone en el panel de administracion de mi foro phpBB2, lo he instalado y lo e puesto como que sea el principal, pero al entrar de nuevo en el foro me pone:

phpBB : Error Crítico

Could not open gdeTheme template config file

DEBUG MODE

Line : 361
File : functions.php


he mirado en el archibo functions.php, la linea 361, pero no se que hay que modificar para arreglarlo. podriais ayudarme????
  #2 (permalink)  
Antiguo 26/05/2005, 07:36
Avatar de maralbust  
Fecha de Ingreso: febrero-2004
Ubicación: Santiago
Mensajes: 578
Antigüedad: 20 años, 1 mes
Puntos: 0
podrias al menos poner parte del codigo donde esta el error???


salu2
__________________
..:: NADA SE PIERDE SOLO SE TRANSFORMA ::..
  #3 (permalink)  
Antiguo 26/05/2005, 07:44
 
Fecha de Ingreso: mayo-2005
Mensajes: 6
Antigüedad: 18 años, 10 meses
Puntos: 0
Cita:
Iniciado por maralbust
podrias al menos poner parte del codigo donde esta el error???


salu2
claro. estas son las lineas en la que tiene que estar el error:
Cita:
function setup_style($style)
{
global $db, $board_config, $template, $images, $phpbb_root_path;

$sql = "SELECT *
FROM " . THEMES_TABLE . "
WHERE themes_id = $style";
if ( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, 'Could not query database for theme info');
}

if ( !($row = $db->sql_fetchrow($result)) )
{
message_die(CRITICAL_ERROR, "Could not get theme data for themes_id [$style]");
}

$template_path = 'templates/' ;
$template_name = $row['template_name'] ;

$template = new Template($phpbb_root_path . $template_path . $template_name);

if ( $template )
{
$current_template_path = $template_path . $template_name;
@include($phpbb_root_path . $template_path . $template_name . '/' . $template_name . '.cfg');

if ( !defined('TEMPLATE_CONFIG') )
{
message_die(CRITICAL_ERROR, "Could not open $template_name template config file", '', __LINE__, __FILE__);
}

$img_lang = ( file_exists(@phpbb_realpath($phpbb_root_path . $current_template_path . '/images/lang_' . $board_config['default_lang'])) ) ? $board_config['default_lang'] : 'english';

while( list($key, $value) = @each($images) )
{
if ( !is_array($value) )
{
$images[$key] = str_replace('{LANG}', 'lang_' . $img_lang, $value);
}
}
}

return $row;
}
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 09:32.