Scoresystem
|
|
McPfeife |
Geschrieben am 06.08.2010 00000008 12:39
|
![]() Neuling ![]() Beiträge: 6 Registriert am: 26.02.09 Fusioneer: 16 years 2 months 1 weeks 8 days 23 hours 46 minutes 45 seconds |
Hallo... Ich habe mir gestern das neue PHP Fusion V7.01 installiert und wollte auch direkt das Scoresystem installieren und bin dann auf ein mehr oder weniger kleines Problem gestoßen wo ich nicht weiter komme. Also es geht um folgendes: Ich habe das Scoresystem Erfolgreich in das System eingebunden nur bei einem nicht, und zwar der downloads.php.... In der Beschreibung steht: Zitat suche zirka die Zeile 28 wo folgendes steht: if (checkgroup($cdata['download_cat_access'])) { $res = 1; $result = dbquery("UPDATE ".DB_DOWNLOADS." SET download_count=download_count+1 WHERE download_id='".$_GET['download_id']."'"); redirect($data['download_url']); } Ich habe alles Rot gekennzeichnet was normal verändert werden muß laut Beschreibung... Meine Frage lautet nun...Wie kann oder muß ich die php ändern damit das Scoresystem auch beim Download funktioniert... Ich hoffe das ich es einigermaßen verständlich schreiben konnte und mein Problem erläutern konnte... Ich danke im vorraus.. Der Informer P.s.: Das ist die neue v7 .01 Soweit gesuch und auch gefunden...in der Beschreibung steht: Zitat ersetz den Code wie folgt: if (checkgroup($cdata['download_cat_access'])) { $res = 1; if (score_negative("DOWNL")) { $result = dbquery("UPDATE ".DB_DOWNLOADS." SET download_count=download_count+1 WHERE download_id='".$_GET['download_id']."'"); redirect($data['download_url']); } else { if (iMEMBER) { $res = 0; } else { $result = dbquery("UPDATE ".DB_DOWNLOADS." SET download_count=download_count+1 WHERE download_id='".$_GET['download_id']."'"); redirect($data['download_url']); } } } Ok...nun zu meinem Problem... Der Quellcode in der downloads.php sieht allerdings unverändert nun so aus: Zitat if (checkgroup($cdata['download_cat_access'])) { $result = dbquery("UPDATE ".DB_DOWNLOADS." SET download_count=download_count+1 WHERE download_id='".$_GET['download_id']."'"); if (!empty($data['download_file']) && file_exists(DOWNLOADS.$data['download_file'])) { $res = 1; require_once INCLUDES."class.httpdownload.php"; ob_end_clean(); $object = new httpdownload; $object->set_byfile(DOWNLOADS.$data['download_file']); $object->use_resume = true; $object->download(); exit; } elseif (!empty($data['download_url'])) { $res = 1; redirect($data['download_url']); } Alles was rot makiert ist soll laut Beschreibung geändert werden und da weiß ich nicht mehr weiter. Ich hoffe das ich meine Problematik ausführlich und einigermaßen Verständlich zum Ausdruck bringen konnte... Würd mich auf hilfe freuen... In diesem Sinne McPfeife |
|
Springe ins Forum: |