Genau das hab ich gemacht. Hab als beispiel den MAP Mod da ist eine easymod_install.php dabei. Aber im Admin erschein nur alle Mods wurden verarbeitet.
Also diese Texttdatei fehlt also habe ich anderen Mod genommen. Der lieferte erst einmal schreibfehler wegen falschen CHmods. Also geändert. Nun hat das script folgenden Fehler gefunden
Code: Alles auswählen
FINDE FEHLGESCHLAGEN: Konnte in Zeile [includes/functions.php] nicht finden:
return ( !empty($translate) ) ? strtr(@gmdate($format, $gmepoch + (3600 * $tz)), $translate) : @gmdate($format, $gmepoch + (3600 * $tz));
MOD-Script Zeile #532
Und das bei einem frisch installierten Board 2.06
War extra ein Mod aus der Liste.
Gerade noch einen anderen Mod probiert wieder ellenlange Fehlerliste.
Code: Alles auswählen
Kritischer Fehler
FINDE FEHLGESCHLAGEN: Konnte in Zeile [includes/template.php] nicht finden:
//-- mod : sub-template ----------------------------------------------------------------------------
//-- add
global $HTTP_GET_VARS, $HTTP_POST_VARS, $db, $board_config, $images, $theme;
global $sub_template_key_image, $sub_templates;
global $tree;
// initiate the sub-template image pack that will be use
$sub_template_key_image = 'c0';
// Check if sub_templates are defined for this theme
$sub_templates_cfg = $this->root . '/sub_templates.cfg';
@include($sub_templates_cfg);
if ( isset($sub_templates) )
{
// search an id
$cat_id = 0;
$forum_id = 0;
$topic_id = 0;
$post_id = 0;
if ( isset($HTTP_GET_VARS[POST_POST_URL]) || isset($HTTP_POST_VARS[POST_POST_URL]) )
{
$post_id = isset($HTTP_GET_VARS[POST_POST_URL]) ? intval($HTTP_GET_VARS[POST_POST_URL]) : intval($HTTP_POST_VARS[POST_POST_URL]);
}
if ( isset($HTTP_GET_VARS[POST_TOPIC_URL]) || isset($HTTP_POST_VARS[POST_TOPIC_URL]) )
{
$topic_id = intval($HTTP_GET_VARS[POST_TOPIC_URL]) ? intval($HTTP_GET_VARS[POST_TOPIC_URL]) : intval($HTTP_POST_VARS[POST_TOPIC_URL]);
}
if ( isset($HTTP_GET_VARS[POST_FORUM_URL]) || isset($HTTP_POST_VARS[POST_FORUM_URL]) )
{
$forum_id = isset($HTTP_GET_VARS[POST_FORUM_URL]) ? intval($HTTP_GET_VARS[POST_FORUM_URL]) : intval($HTTP_POST_VARS[POST_FORUM_URL]);
}
if ( isset($HTTP_GET_VARS[POST_CAT_URL]) || isset($HTTP_POST_VARS[POST_CAT_URL]) )
{
$cat_id = isset($HTTP_GET_VARS[POST_CAT_URL]) ? intval($HTTP_GET_VARS[POST_CAT_URL]) : intval($HTTP_POST_VARS[POST_CAT_URL]);
}
// find the forum
if ( ($forum_id <= 0) && ($cat_id <= 0) )
{
if ($post_id > 0)
{
$sql = "select * from " . POSTS_TABLE . " where post_id=$post_id";
if ( !($result = $db->sql_query($sql)) ) message_die(GENERAL_ERROR, 'Wasn\'t able to access posts', '', __LINE__, __FILE__, $sql);
if ( $row = $db->sql_fetchrow($result) ) $forum_id = $row['forum_id'];
}
if ($topic_id > 0)
{
$sql = "select * from " . TOPICS_TABLE . " where topic_id=$topic_id";
if ( !($result = $db->sql_query($sql)) ) message_die(GENERAL_ERROR, 'Wasn\'t able to access topics', '', __LINE__, __FILE__, $sql);
if ( $row = $db->sql_fetchrow($result) ) $forum_id = $row['forum_id'];
}
}
// is the categories hierarchy v 2 installed ?
$cat_hierarchy = function_exists(get_auth_keys);
// get the ids (forums and cats)
$fids = array();
if (!$cat_hierarchy)
{
if ($forum_id > 0)
{
// add the forum_id
$fids[] = POST_FORUM_URL . $forum_id;
// get the cat_id
$sql = "select * from " . FORUMS_TABLE . " where forum_id=$forum_id";
if ( !($result = $db->sql_query($sql)) ) message_die(GENERAL_ERROR, 'Wasn\'t able to access forums', '', __LINE__, __FILE__, $sql);
if ( $row = $db->sql_fetchrow($result) ) $cat_id = $row['cat_id'];
}
// add the cat_id
if ($cat_id > 0)
{
$fids[] = POST_CAT_URL . $cat_id;
}
// add the root level
$fids[] = 'Root';
}
else
{
// categories hierarchy v 2 compliancy
$cur = 'Root';
if ($forum_id > 0)
{
$cur = POST_FORUM_URL . $forum_id;
}
else if ($cat_id > 0)
{
$cur = POST_CAT_URL . $cat_id;
}
// add start
$fids[] = $cur;
$i= 0;
while (($cur != 'Root') && ($cur != ''))
{
// get parent level
$cur = (isset($tree['main'][ $tree['keys'][$cur] ])) ? $tree['main'][ $tree['keys'][$cur] ] : 'Root';
// add the parent level
$fids[] = $cur;
}
}
// search if this file is part of a sub-template
$sub_tpl_file = '';
$sub_css_file = '';
$sub_img_file = '';
$sub_img_path = '';
if (substr($filename, 0, 1) != '/')
{
$found = false;
for ($i=0; ( ($i < count($fids)) && !$found ); $i++)
{
$key = $fids[$i];
// convert root into c0 category
if ($key == 'Root') $key = 'c0';
if ( isset($sub_templates[$key]) )
{
// get the sub-template path
$cur_template_path = $this->root . '/' . $sub_templates[$key]['dir'];
// set the filename
if ( ($sub_tpl_file == '') && file_exists($cur_template_path . '/' . $filename) ) $sub_tpl_file = $sub_templates[$key]['dir'] . '/' . $filename;
// set the css file name
if ( ($sub_css_file == '') && isset($sub_templates[$key]['head_stylesheet']) && file_exists($cur_template_path . '/' . $sub_templates[$key]['head_stylesheet']) ) $sub_css_file = $sub_templates[$key]['dir'] . '/' . $sub_templates[$key]['head_stylesheet'];
// set the img file name
if ( ($sub_img_file == '') && isset($sub_templates[$key]['imagefile']) && file_exists($cur_template_path . '/' . $sub_templates[$key]['imagefile']) )
{
$sub_img_path = $sub_templates[$key]['dir'];
$sub_img_file = $sub_templates[$key]['imagefile'];
// send back the lowest level of the images file
$sub_template_key_image = $key;
}
}
}
}
// set the tpl file
if ($sub_tpl_file) $filename = $sub_tpl_file;
// set the css file
if ($sub_css_file != '') $theme['head_stylesheet'] = $sub_css_file;
// set the sub-template filename and get images
if ($sub_img_file != '')
{
// get the images file
$current_template_path = $this->root . '/' . $sub_img_path;
@include($current_template_path . '/' . $sub_img_file);
$img_lang = ( file_exists($current_template_path . '/images/lang_' . $board_config['default_lang']) ) ? $board_config['default_lang'] : 'english';
@reset($images);
while( list($key, $value) = @each($images) )
{
if ( !is_array($value) )
{
$images[$key] = str_replace('{LANG}', 'lang_' . $img_lang, $value);
}
}
}
}
//-- fin mod : sub-template ------------------------------------------------------------------------
MOD-Script Zeile #207
Ich glaube das ist wohl doch noch nicht sonderlich ausgereift. Das war der ssubtemplates mod
Der Erste der Map mod da fehlt die ganze txt
und der zweite war der timemanager
Alles angeblich Easymodkompatibel. Jetzt dürfte das Forum zeimlich zerschossen sein. War aber glücklicherweise nur eine Testinstallation.