Seite 1 von 1

neues Template per phpMyAdmin ??

Verfasst: 09.03.2003 22:50
von sMoka
Wie kann ich ein Template per phpMyAdmin hinzufügen ??

Ich habe dummerweise mein komplettes Template gelöscht und bekomme jetzt folgene Fehlermeldung :
phpBB : Critical Error

Could not open subSilver template config file

DEBUG MODE

Line : 288
File : /home/www/htdocs/watcityrulez.de/php/phpBB2/includes/functions.php

Verfasst: 09.03.2003 23:16
von Mister_X
warum lädst du das subSilver Template nicht einfach wieder hoch ?

Verfasst: 09.03.2003 23:19
von sMoka
hab ich ja, danach kommt ja diese Fehlermeldung ...

ich habe aber jetzt folgendes aus der funktions.php entfernt:
}

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, $board_config, $db);


}

und es geht wieder ;-)

was genau bezweckt den dieser Teil des Codes `?