Seite 1 von 1
Problem mit Rang-Anzeige im Download-Mod
Verfasst: 11.01.2005 10:33
von modbo
Hab ein Problem mit der Rang Anzeige
modbo hat geschrieben:Ich habe meine Rang-Images im ACP angepasst und auch welche hinzugefügt.
Die Namen der gif-Dateien entsprechen nicht mehr dem original (z.B. rank5_admin.igf)
In Forumsbeiträgen zeigt er die Rang-Images korrekt an, aber im Download-Mod verweist er, legt man einen Kommentar zu einem Download an, auf den "alten" Dateinamen.
Auch der Rang-Name wird teilweise (beim Admin ja) nicht angezeigt.
[
Beispiel]
Hat jemand einen Tip, wo ich das ändern muss/kann?
Danke.
Verfasst: 12.01.2005 08:53
von modbo
Niemand? Büüde ...
Ich hab mal die viewtopic.php mit der functions_comments.php im entsprechenden Abschnitt angeschaut.
Kann es an dem fehlenden [$i] liegen?
Beispiel
viewtopic: $postrow[$i]['user_id']
functions: $comments_row['user_id']
Code: Alles auswählen
viewtopic.php
//
// Generate ranks, set them to empty string initially.
//
$poster_rank = '';
$rank_image = '';
// Start add - Gender MOD
$gender_image = '';
// End add - Gender MOD
if ( $postrow[$i]['user_id'] == ANONYMOUS )
{
}
else if ( $postrow[$i]['user_rank'] )
{
for($j = 0; $j < count($ranksrow); $j++)
{
if ( $postrow[$i]['user_rank'] == $ranksrow[$j]['rank_id'] && $ranksrow[$j]['rank_special'] )
{
$poster_rank = $ranksrow[$j]['rank_title'];
$rank_image = ( $ranksrow[$j]['rank_image'] ) ? '<img src="' . $ranksrow[$j]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : '';
}
}
}
else
{
for($j = 0; $j < count($ranksrow); $j++)
{
if ( $postrow[$i]['user_posts'] >= $ranksrow[$j]['rank_min'] && !$ranksrow[$j]['rank_special'] )
{
$poster_rank = $ranksrow[$j]['rank_title'];
$rank_image = ( $ranksrow[$j]['rank_image'] ) ? '<img src="' . $ranksrow[$j]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : '';
}
}
}
Code: Alles auswählen
functions_comments.php
//
// Generate ranks, set them to empty string initially.
//
$poster_rank = '';
$rank_image = '';
if ( $comments_row['user_id'] == ANONYMOUS )
{
}
else if ( $comments_row['user_rank'] )
{
for($j = 0; $j < count($ranksrow); $j++)
{
if ( $comments_row['user_rank'] == $ranksrow[$j]['rank_id'] && $ranksrow[$j]['rank_special'] )
{
$poster_rank = $ranksrow[$j]['rank_title'];
$rank_image = ( $ranksrow[$j]['rank_image'] ) ? '<img src="' . $ranksrow[$j]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : '';
}
}
}
else
{
for($j = 0; $j < count($ranksrow); $j++)
{
if ( $comments_row['user_posts'] >= $ranksrow[$j]['rank_min'] && !$ranksrow[$j]['rank_special'] )
{
$poster_rank = $ranksrow[$j]['rank_title'];
$rank_image = ( $ranksrow[$j]['rank_image'] ) ? '<img src="' . $ranksrow[$j]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br />' : '';
}
}
}
Verfasst: 12.01.2005 20:05
von modbo
[FIXED]