Wenn´s nicht das ist, was du dir vorstellst, frag nochmal hier nach.

In der viewforum.php fügst du dann folgendes ein (blau ist neu)..<td class="{topicrow.ROW2}" align="center" valign="middle"><span class="postdetails">{topicrow.VIEWS}</span></td>
Mehrere Zeilen darüber ersetzt du..'ROW1' => $color_row1,
'ROW2' => $color_row2,
'ROW3' => $color_row3,
'ROW_COLOR' => $row_color,
'ROW_CLASS' => $row_class,
Code: Alles auswählen
if( $topic_type == POST_ANNOUNCE )
{
$topic_type = $lang['Topic_Announcement'] . ' ';
}
else if( $topic_type == POST_STICKY )
{
$topic_type = $lang['Topic_Sticky'] . ' ';
}
else
{
$topic_type = '';
}
Code: Alles auswählen
if( $topic_type == POST_ANNOUNCE )
{
$topic_type = $lang['Topic_Announcement'] . ' ';
$color_row1 = 'row1_announce';
$color_row2 = 'row2_announce';
$color_row3 = 'row3_announce';
}
else if( $topic_type == POST_STICKY )
{
$topic_type = $lang['Topic_Sticky'] . ' ';
$color_row1 = 'row1_sticky';
$color_row2 = 'row2_sticky';
$color_row3 = 'row3_sticky';
}
else
{
$topic_type = '';
$color_row1 = 'row1';
$color_row2 = 'row2';
$color_row3 = 'row3';
}
Wenn du jetzt nicht unbedingt für die verschiedenen Spalten in der Forenansicht verschiedene Farben bei den Stickies und Ankündigungen eintragen willst, müssten die obigen Codebeispiele nicht in 1, 2, 3 unterteilt werden.td.row1_sticky { background-color: #0815; }
Das ist ja das Verwirrende. Die Farben werden wie zuvor angezeigt. Die CSS-Klassen hab ich in der SubSilver.css eingetragen. Und in der viewforum_body.tpl hab ich jeweils "row1" durch "{topicrow.ROW1}" ersetzt usw.Acid hat geschrieben:Wo hast du denn die neuen css-Klassen eingetragen?
Irgendwie sollte schon eine Veränderung zu sehen sein, denn wenn du die "row1" usw. in der viewforum_body.tpl entfernt/ersetzt hast, dürfte dann zumindest nicht mehr die bisherige Farbe angezeigt werden.
blau neu:viewforum_body.tpl
alle class="row1" usw. habe ich durch class="{topicrow.ROW1}" ersetzt usw.
undviewforum.php
'ROW1' => ( $topic_type == POST_ANNOUNCE || $topic_type == POST_STICKY ) ? $color_row1 : 'row1',
'ROW2' => ( $topic_type == POST_ANNOUNCE || $topic_type == POST_STICKY ) ? $color_row2 : 'row2',
'ROW3' => ( $topic_type == POST_ANNOUNCE || $topic_type == POST_STICKY ) ? $color_row3 : 'row3',
'ROW_COLOR' => $row_color,
'ROW_CLASS' => $row_class,
Code: Alles auswählen
if( $topic_type == POST_ANNOUNCE )
{
$topic_type = $lang['Topic_Announcement'] . ' ';
}
else if( $topic_type == POST_STICKY )
{
$topic_type = $lang['Topic_Sticky'] . ' ';
}
Code: Alles auswählen
if( $topic_type == POST_ANNOUNCE )
{
$topic_type = $lang['Topic_Announcement'] . ' ';
$color_row1 = 'row1_announce';
$color_row2 = 'row2_announce';
$color_row3 = 'row3_announce';
}
else if( $topic_type == POST_STICKY )
{
$topic_type = $lang['Topic_Sticky'] . ' ';
$color_row1 = 'row1_sticky';
$color_row2 = 'row2_sticky';
$color_row3 = 'row3_sticky';
}
Die CSS wird auch normal angenommen, denn ich habe dort grad Veränderungen vorgenommen, die problemlos angezeigt werden.td.row1 { background-color: #EFEFEF; }
td.row2 { background-color: #DEE3E7; }
td.row3 { background-color: #D1D7DC; }
td.row1_sticky { background-color: #00FF00; }
td.row2_sticky { background-color: #E0FF00; }
td.row3_sticky { background-color: #FFE000; }
td.row1_announce { background-color: #0000FF; }
td.row2_announce { background-color: #00E0FF; }
td.row3_announce { background-color: #FF00FF; }