By Bahattee on
Hi ... are you using MarvinClassic theme and you don't like the way comments look ?
I made a little hack so the comments look flat now ... and there is a user avatar near comment.
1. Open marvinclassic.theme and find ** function marvinclassic_comment($comment, $link = "") ** and from this line replace the rest of the code with:
function marvinclassic_comment($comment, $link = "") {
$output = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%;\">\n";
$output .= " <tr>\n";
$output .= " <td colspan=\"2\" id=\"naslov_komentarja\"><strong>$comment->subject</strong></td>\n";
$output .= " </tr>\n";
$output .= " <tr>\n";
$output .= " <td valign=\"top\" width=\"100\">\n";
$output .= " <table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
$output .= " <tr>\n";
//od avtor komentarja naprej
$output .= " <td id=\"avtor_komentarja\">". format_name($comment) ."</td>\n";
$output .= " </tr>\n";
$output .= " <tr>\n";
if (theme_get_setting('toggle_comment_user_picture') && $picture = theme('user_picture', $comment)) {
$output .= " <td id=\"avatar_komentarja\">$picture</td>\n";
}
//$output .= " <td id=\"avatar_komentarja\">$picture</td>\n";
$output .= " </tr>\n";
$output .= " </table>\n";
$output .= " </td>\n";
//vsebina posta
$output .= " <td valign=\"top\" id=\"body_komentarja\">$comment->comment</td>\n";
$output .= " </tr>\n";
$output .= " <tr>\n";
$output .= " <td colspan=\"2\" id=\"link_komentarja\">$link</td>\n";
$output .= " </tr>\n";
$output .= " </table>\n";
$output .= " <br />\n";
return $output;
}
function marvinclassic_links($links, $delimiter = " · ") {
return implode($delimiter, $links);
}
?>2. Then open style.css and add these lines:
/* Comments new style */
#naslov_komentarja {
border:1px solid #999999;
padding: 4px;
color: #665566;
}
#avtor_komentarja {
padding: 4px;
text-align:center;
}
#avatar_komentarja {
text-align:center;
}
#body_komentarja {
padding: 4px;
}
#link_komentarja {
text-align: right;
padding: 4px;
}3. Upload files and that's it. I hope this will be usefull to someone. :)
Comments
I forgot this line ...
Oops ... I forgot this line:
Open marvinclassic.theme and REPLACE:
WITH:
Forum index flat
And if you want to make a forum index flat ... add this to style.css:
your_mini_pic.png is a mini pic before container title. Use your own one.
Handbook
Things get lost in the forums, adding this to the handbook in the right section would be great.