So I'm using flatforum to mod the built-in forums and by and large it's great. It looks nice, and I appreciate how simple it all was (more or less, I mean).

However, I was wondering if there was any way of displaying the FIRST forum post in a way that's visibly different than the following posts. I know that that post is actually a node and that what follows are comments, and so I would think I could do it all simply with CSS. But when I view the page, the CSS looks identical from first node to second and beyond.

Thoughts? Help?

Comments

ryivhnn’s picture

What would you like to look different?

The first thing I did was delete the row_class() thing under the case node in the template file, which stopped the original post from taking on the alternating row colours. That made it look different enough to make the people I'm building the site for happy :P

works at bekandloz | plays at technonaturalist

sinker’s picture

The way my CSS is set up, the forum posts all connect (i.e. there's no space between the boxes where one post ends and the next begins (they alternate colors to make the distinction obvious). And that looks great and is even fine with that first post EXCEPT that when discussion moves to a second page, the first post is still there, sitting on top of this row of boxes like it's one of them. It's confusing. Basically I'd like to do one thing: set a bottom margin on that first post of 15px or so so it's obviously off-set from the rest of the stack.

Thoughts?

ryivhnn’s picture

That's one of the problems with using flatforum or that kind of colour scheme, the standard (if somewhat visually unappealing unless you're a programmer ;) drupal forum/comment view it's blatantly easy to distinguish the OP from everything else.

The easiest method of solving the problem is to set the default thread size to bigger than you think a busy thread will ever reach. However if your users post a lot of images or other bandwidth intensive media, or even if the thread is busy and has a lot of avatar/sig pics, it could become horrible for the five people in the world still on dialup.

Try setting the desired margin of comment-left and/or comment-right (both or whichever one is more likely to be longer), that -might- give you enough of a break to make the distinction between OP and rest of thread on successive pages, or it might add the break on all the boxes. Hopefully the former so it solves your problem easily :P

works at bekandloz | plays at technonaturalist

sinker’s picture

OK, I get what you're saying, but at the same time, the OP is clearly being formatted by a different function than the comments below--the author picture doesn't show, the links format entirely differently. Doesn't it seem like a person could dip into the function and add a CSS class or something? But what's the function?

ryivhnn’s picture

You could dig into the module if you wanted, it's not that big, but probably not necessary to do so :)

The OP should be using case: node in the template.php file, which other than a few minor variations should be just about identical to the case: comment, so no idea why your userpics aren't showing up and links appearing differently, unless you have a comment.tpl.php that is somehow overriding your node-forum.tpl.php which would just be weird o_O

View the page source and see what they're using on the OP and then attack the css.

works at bekandloz | plays at technonaturalist

sinker’s picture

You should have just pointed me to this node you created a few weeks ago:

http://drupal.org/node/78341

That's it man! Just comment that line out and you can have at it. It works like a charm!

ryivhnn’s picture

LoL sorry, if I had worked out that's what you wanted I woulda said, sorry I'm dense ;)

works at bekandloz | plays at technonaturalist