Ich habe ein kleines Problem mit der Renommee Funktion von Gecko.
Wenn ich mir meine Renommees angucke steht ganz oben im Contentbereich:

Zusätzlich wird das Bild neben meiner Punktezahl nicht angezeigt.
Wenn ich das BIld in einem neuem Tab öffnen möchte steht in der Adressleiste:
.../include/images/reno/.png
Hier einmal mein Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | <?php ######################################################## # Renommee v1.0 by GeCk0 # www.gecko-report.de # MyReno-Content # Support: http: //www.ilch.de/forum.html defined ( 'main' ) or die ( 'no direct access' ); $title = $allgAr [ 'title' ]. ' :: Renommee' ; $hmenu = 'Renommee' ; $design = new design ( $title , $hmenu ); $design ->header(); $tpl = new tpl ( 'renomy.htm' , 0 ); ######################################################### ## zum final rausnehmen # error_reporting (E_ALL); ini_set ( 'display_errors' , 1); # Thread-ID bekommen $gettid = ctype_digit( $menu ->get(1)) ? escape( $menu ->get(1), 'int' ) : escape( $menu ->get(1), 'string' ); # Einstellungen auslesen $xrenozahl = db_result(db_query( "SELECT pmax FROM `prefix_reno_set` WHERE bild = 'renozahl'" )); # leere variablen erstellen $renopts = '' ; $renolist = '' ; # Gäste blocken if ( $_SESSION [ 'authid' ] == 0){ wd ( '?forum-showposts-' . $gettid . '' , 'Bitte erst einloggen... ' , '3' ); $design ->footer(); } else { # Auslesen der Renopunkte für den Ersteller $renopts = db_result(db_query( "SELECT SUM(punkte) FROM `prefix_reno` WHERE uid = '" . $_SESSION ['authid ']."' ")); ## Einträge zählen die auf Renopunkte passen $countbild = db_result(db_query("SELECT COUNT (bild) FROM `prefix_reno_set` WHERE '".$renopts."' >= `pmin` AND '".$renopts."' <= `pmax` ")); # Bild auslesen das zutrifft $renobild = db_result(db_query("SELECT bild FROM `prefix_reno_set` WHERE '".$renopts."' >= `pmin` AND '".$renopts."' <= `pmax` ")); # Anzeigen der letzten x Renos $qry = db_query( "SELECT kom,tid,punkte FROM `prefix_reno` " ); $qry = db_query("SELECT `a`.`kom`,`a`.`tid`,`a`.`punkte`,`b`.`name` FROM `prefix_reno` AS `a` LEFT JOIN `prefix_topics` AS `b` ON `a`.`tid` = `b`.`id` WHERE `a`.`uid` = '".$_SESSION[' authid ']."' ORDER BY `a`.`id` DESC LIMIT ".$xrenozahl." "); while ( $row = db_fetch_assoc( $qry )) { # Farben je nach Bewertung ändern if ( $row [ 'punkte' ] == 0) { $color = '#c3c3c3' ; } if ( $row [ 'punkte' ] >= 1) { $color = '#009900' ; } if ( $row [ 'punkte' ] <= -1) { $color = '#ff0000' ; } # $tname = db_result(db_query( "SELECT name FROM `prefix_topics` WHERE id = '" . $row ['tid ']."' ")); $renolist .= '<p> <div class = "cnorm" > <a href= "?forum-showposts-'.$row['tid'].'" > '.$row[' name '].' </a> </div><br> <span style= "color:'.$color.'" > '.$row[' kom '].' </span> </p>'; } } ######################################################### # Copyright darf nicht entfernt werden $cr = '<br /><br />Renommee-Modul © by <a href="http://gecko-project.de" target="_blank">GeCk0</a>' ; ## Templates erstellen $tpl ->set( 'BILD' , '<img src="include/images/reno/' . $renobild . '.png" />' ); $tpl ->set( 'COLOR' , $color ); $tpl ->set( 'RENOZAHL' , $xrenozahl ); $tpl ->set( 'RENOPTS' , $renopts ); $tpl ->set( 'RENOLIST' , $renolist ); $tpl ->set( 'CR' , $cr ); $tpl ->out(0); $design ->footer(); ?> |
Schonmal vielen Dank..
MFG,
Treicio^^