Ich habe ein Problem mit dem Shop MOD 2.0.6 von Zarath und Cat Hierachy 2.1.0! Irgendwie finde ich keine der in der Install-txt angegebenen Veränderungen im Index.php! Ich habe jetzt gehört, dass die neue Cat-Version eine eigene Index.php mitbringt. Kann mirjemand erklären, wo ich die Veränderungen machen muß?
HIER ist die Index.php und das sind die Änderungen aus der install.txt :
Code: Alles auswählen
------[OPEN]------
index.php
------[FIND]------
$is_auth_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata, $forum_data);
------[ADD, AFTER ]------
$itemarray = explode('ß', str_replace("Þ", "", $userdata['user_items']));
$sql = "select name, accessforum from phpbb_shopitems where accessforum != '0' and accessforum > '0'";
if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, "Database Connection Error!".mysql_error()); }
$num_rows = mysql_num_rows($result);
$itemformaccess = array();
$itemcataccess = array();
for ($x = 0; $x < $num_rows; $x++)
{
$row = mysql_fetch_array($result);
if (in_array($row['name'], $itemarray))
{
$itemformaccess[] = $row['accessforum'];
$sql = "select cat_id from " . FORUMS_TABLE . " where forum_id = '{$row['accessforum']}'";
if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, "Database Connection Error: ".mysql_error()); }
$row2 = mysql_fetch_array($result);
$itemcataccess[] = $row2['cat_id'];
}
}
------[FIND]------
//
// Yes, we should, so first dump out the category
------[ADD, BEFORE]------
if (in_array($cat_id, $itemcataccess)) {
$display_forums = true;
}
------[FIND]------
if ( $is_auth_ary[$forum_id]['auth_view'] )
------[REPLACE WITH]------
if ( $is_auth_ary[$forum_id]['auth_view'] || in_array($forum_id, $itemformaccess))