Der eine war, dass die Hackliste auch wenn sie aktiviert und Dateien, die sie verwenden vorhanden war, nicht angezeigt wurde.
Da ist dir wohl ein Fehler unterlaufen bei der Einbauanleitung für die functions.php.
Das soll eingefügt werden:
Code: Alles auswählen
if ($config['use_hacklist'])
{
$sql = "SELECT count(id) as total FROM " . DOWNLOADS_TABLE . "
WHERE hacklist = 1";
$result = $db->sql_query($sql);
if ($result)
{
$row = $db->sql_fetchrow($result);
$total = $row['total'];
if ($total)
{
$u_hacks_list = append_sid("{$phpbb_root_path}hacks_list.$phpEx");
$l_hacks_list = $user->lang['DL_HACKS_LIST'];
$img_hacklist = $user->img('menu_hacklist');
$template->assign_var('S_HACKLIST_ON', true);
}
else
{
$u_hacks_list = $img_hacklist = $l_hacks_list = '';
}
}
$db->sql_freeresult($result);
}
else
{
$u_hacks_list = $img_hacklist = $l_hacks_list = '';
}Code: Alles auswählen
if ($config['dl_use_hacklist'])
{
$sql = "SELECT count(id) as total FROM " . DOWNLOADS_TABLE . "
WHERE hacklist = 1";
$result = $db->sql_query($sql);
if ($result)
{
$row = $db->sql_fetchrow($result);
$total = $row['total'];
if ($total)
{
$u_hacks_list = append_sid("{$phpbb_root_path}hacks_list.$phpEx");
$l_hacks_list = $user->lang['DL_HACKS_LIST'];
$img_hacklist = $user->img('menu_hacklist');
$template->assign_var('S_HACKLIST_ON', true);
}
else
{
$u_hacks_list = $img_hacklist = $l_hacks_list = '';
}
}
$db->sql_freeresult($result);
}
else
{
$u_hacks_list = $img_hacklist = $l_hacks_list = '';
}Mein zweites Problem ist, dass ich eingestellt habe, dass nach dem ersten Download kein Traffic mehr abgezogen wird.
Nun lade ich Download X (500 KB) herunter, und mein Guthaben sinkt auf 200 KB, ich kann also Download X nichtmehr herunterladen,
wenn ich die oben genannte Funktion nicht aktiviert habe. Sie ist aber aktiviert und daher funktioniert auch der Download,
nur wird das Bild beim Download dennoch auf das rote "Download nicht möglich" Bild geändert, anstatt auf dass, das anzeigt,
dass der Download ohne Trafficabzug möglich ist. Wie kann ich das denn beheben?
Angezeigtes Bild:

Das Bild, das angezeigt werden sollte:

Vielen Dank im Voraus!
Super Mod!