ich hab da irgendwie nen Problem mit den Ränge vergeben beim Forenmod von Matthias Schlich.
Download: Push me
Ich würde gern das wenn ein User 0-5 Beiträge hat die Grafik rank0.png gealden wird.
Problem bei der if Abfrage is irgendwo der Wurm drin.
Die User haben trotz 2 Beiträgen schon die rank1.png Grafik als Rangbild
Vielleicht sieht jemand den Fehler in der Abfrage.
<?php #Ranking Balken #Grafiken definieren $rank_1st = '<img src="include/images/forum/rank/rank0.png" alt="" border="0"><br>'; $rank_2nd = '<img src="include/images/forum/rank/rank1.png" alt="" border="0"><br>'; $rank_3rd = '<img src="include/images/forum/rank/rank2.png" alt="" border="0"><br>'; $rank_xx = '<img src="include/images/forum/rank/rank_xx.png" alt="" border="0"><br>'; $rank_xx = '<img src="include/images/forum/rank/rank_xx.png" alt="" border="0"><br>'; $rank_xx = '<img src="include/images/forum/rank/rank_xx.png" alt="" border="0"><br>'; $rank_xx = '<img src="include/images/forum/rank/rank_xx.png" alt="" border="0"><br>'; $rank_xx = '<img src="include/images/forum/rank/rank_xx.png" alt="" border="0"><br>'; $rank_xx = '<img src="include/images/forum/rank/rank_xx.png" alt="" border="0"><br>'; $rank_xx = '<img src="include/images/forum/rank/rank_xx.png" alt="" border="0"><br>'; $rank_LAST = '<img src="include/images/forum/rank/complete.png" alt="" border="0"><br>'; #Bezugnehmen auf das Ranking des users if ( $row['posts'] != '' ) { $row['rang'] = $rank_name.'<br>'; if ($posts <= '0') { $row['rang'] .= $rank_1st; } elseif ($posts <= '5') { $row['rang'] .= $rank_2nd;} elseif ($posts <= '50') { $row['rang'] .= $rank_3rd; } elseif ($posts <= '100') { $row['rang'] .= $rank_xx; } elseif ($posts <= '150') { $row['rang'] .= $rank_xx; } elseif ($posts <= '200') { $row['rang'] .= $rank_xx; } elseif ($posts <= '250') { $row['rang'] .= $rank_xx; } elseif ($posts <= '300') { $row['rang'] .= $rank_xx; } elseif ($posts <= '400') { $row['rang'] .= $rank_xx; } elseif ($posts <= '450') { $row['rang'] .= $rank_xx; } elseif ($posts < '500') { $row['rang'] .= $rank_xx; } elseif ($posts >= '750') { $row['rang'] .= $rank_LAST; } } else {$row['rang'] .= ""; } } ?>
betroffene Homepage: externer Link
Zuletzt modifiziert von IRvD am 19.06.2012 - 23:48:33