$topic_data['topic_first_post_id']
to the template and add a class indicating the first post to the post div. You can assign any CSS you like to that class.thanks for the suggestion.
core.viewtopic_modify_post_row
Code: Select all
public function is_first_post($event)
{
$post_row = $event['post_row'];
$topic_data = $event['topic_data'];
$post_row['S_TOPIC_FIRST_POST'] = ($post_row['POST_ID'] == $topic_data['topic_first_post_id']);
$event['post_row'] = $post_row;
}
viewtopic_body_postrow_post_before
and viewtopic_body_postrow_post_after
to add a surrounding div like
Code: Select all
<!-- IF S_TOPIC_FIRST_POST --><div class="topic_first_post"><!--ENDIF -->
Code: Select all
<!-- IF S_TOPIC_FIRST_POST --></div><!--ENDIF -->
Code: Select all
.topic_first_post .post {
background-color: #F00;
}