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 = " &middot; ") {
  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

Bahattee’s picture

Oops ... I forgot this line:

Open marvinclassic.theme and REPLACE:

function marvinclassic_features() {
  return array('logo', 'toggle_primary_links', 'toggle_secondary_links');
}

WITH:

function marvinclassic_features() {
  return array('logo', 'toggle_primary_links', 'toggle_secondary_links', 'toggle_node_user_picture', 'toggle_comment_user_picture');
}
Bahattee’s picture

And if you want to make a forum index flat ... add this to style.css:

/* STYLE ZA FORUM /////////////////////////////////////////////////////*/
#forum {
  margin: 15px 0 15px 0;
  background-color: #FFFFFF;
  font-size: 12px;
}
#forum table {
  width: 100%;
  font-size: 12px;
}
#forum table tr th {
  text-align: center;
  background-color: #FFFFFF;
  color: #fff;
  font-size: 12px;
  border-bottom: 1px solid #000000;
}
#forum table tr th a  {
  color: #FFFFFF;
  text-decoration: underline;
}
#forum table tr th img  {
  margin: 0;
}
#forum tr.dark {
  background: #FFFFFF;
  border-bottom: 1px solid #353535;
}
#forum tr.light {
  background: #FFFFFF;
  border-bottom: 1px solid #353535;
}
#forum td {
  padding: 0.5em 0.5em 0.5em 0.5em;
}
#forum td.container {
  color: #000;
  background-color: #CFCFCF;
}
#forum td.container a {
  color: #000;
  padding: 20px 0 20px 35px;
  background: transparent url(your_mini_pic.png) left center no-repeat;
}
#forum td.container a:visited {
  color: #000;
}
#forum td.statistics, #forum td.settings, #forum td.pager {
  height: 1.5em;
}
#forum td .name {
  color: #96c;
}
#forum td .links {
  padding-top: 0.7em;
  font-size: 12px;
}

your_mini_pic.png is a mini pic before container title. Use your own one.

Brian@brianpuccio.net’s picture

Things get lost in the forums, adding this to the handbook in the right section would be great.