Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By justin3 on
I recall a thread with several Drupallers asking for the forum to look more like a "regular forum"
I spent a bit of time customizing my theme towards such a goal, so here's my contribution- it should work with most themes (modify as necessary)
replace your theme's comment.tpl.php with this
<div class="comment<?php if ($comment->status == COMMENT_NOT_PUBLISHED) print ' comment-unpublished'; ?>">
<h3><?php print $title; ?></h3>
<p class="submitted"><?php print $submitted; ?> <?php if ($new != '') { ?><span class="new"><?php print $new; ?></span><?php } ?></p>
<div class="usericon"><?php if ($picture) {print $picture; } ?></div>
<div class="comment-body"><?php print $content; ?></div>
<p class="links">» <?php print $links; ?></p>
</div>
then add this to the theme's style.css
.comment .submitted {margin-top: -4px; font-size: .8em;}
.comment .links {text-align: right; font-size: .9em;}
div.comment {padding: 7px 10px 0px 10px; background: #d1d1d1; border: 1px solid #444; border-right: 2px solid #222; border-bottom: 2px solid #222; margin-bottom: 20px;}
.comment-body {padding: 1px 25px 10px 80px; background: #fff; min-height: 55px;}
div.usericon {float: left; margin-right: 12px;}
tr.odd {background: #fff;}
tr.even {background: #ccc;}
td.created, {font-size: .9em; padding-top: 5px; padding-bottom: 5px;}
td.last-reply {font-size: .9em; text-align: right; padding-left: 5px;}
hope this helps someone out there (o ;
Comments
Thanks. I will try it out
Thanks. I will try it out and give feedback.
newms
could anyone post an example
could anyone post an example of this in action so I don't have to do it myself ?? ;)
Hard to say if it's good without seing a good old example!
Thanks,
...it didn't seem to make
...it didn't seem to make much of a difference compared with flatforum. Is it supposed to work with flatforum or independent of flatforum?
newms
Forum first page look are
Forum first page look are table so its easy to custom
Check out
http://2.annoncemaroc.net/forum ( just css table no flatforum)
Go to http://icant.co.uk/csstablegallery/
and take some table css and copy past to your style.css file and try to custom, use flatforum (http://drupal.org/project/flatforum) too
I am using bluebreeze theme
http://drupal.org/project/bluebreeze