nach dem Einbau des Hierachy-Mods von Neodoomer bekomme ich folgende Fehlermeldung in der viewtopic.php:
Code: Alles auswählen
Could not query hierarchie title
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax near 'AND cfp.parent_forum_id = f.forum_id AND cfp.cat_id = AND f.cat_id = c.cat_' at line 5
SELECT concat(c.cat_title, ', ', f.forum_name) AS hierarchie_title, f.forum_id, f.forum_hier_level + 1 AS hierarchie_level FROM phpbb_categories c, phpbb_cat_rel_cat_parents ccp, phpbb_forums f, phpbb_cat_rel_forum_parents cfp WHERE ccp.parent_cat_id = c.cat_id AND ccp.cat_id = AND cfp.parent_forum_id = f.forum_id AND cfp.cat_id = AND f.cat_id = c.cat_id ORDER BY c.cat_hier_level, f.forum_hier_level
Line : 327
File : c:\apache\htdocs\phpbb2\viewtopic.php
die entsprechende SQL-Anweisung in der viewtopic.php ist:
Code: Alles auswählen
//
// DJ-Begin, 22.3.02
// get the hierarchie
//
$cat_id = $forum_row['cat_id'];
$sql = "SELECT concat(c.cat_title, ', ', f.forum_name) AS hierarchie_title, f.forum_id, f.forum_hier_level + 1 AS hierarchie_level
FROM " . CATEGORIES_TABLE . " c, " . CAT_REL_CAT_PARENTS_TABLE . " ccp, " . FORUMS_TABLE . " f, " . CAT_REL_FORUM_PARENTS_TABLE . " cfp
WHERE ccp.parent_cat_id = c.cat_id
AND ccp.cat_id = $cat_id
AND cfp.parent_forum_id = f.forum_id
AND cfp.cat_id = $cat_id
AND f.cat_id = c.cat_id
ORDER BY c.cat_hier_level, f.forum_hier_level";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query hierarchie title', '', __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
$template->assign_block_vars("navrow", array(
"U_SUBINDEX" => append_sid("index.$phpEx?" . POST_HIERARCHIE_URL . "=" . $row['hierarchie_level'] . "&" . POST_PARENTFORUM_URL . "=" . $row['forum_id']),
"L_SUBINDEX" => $row['hierarchie_title'])
);
}
// DJ-End, 22.3.02