Hi. Strangely enough I couldn't find any info on how to customize the look of the forum. Right now it's width is only half the screen, and it looks pretty miserable.

Can anybody give me a clue on how to customize the way it looks?

Thank you.

Shay.

Comments

asdfghjklñ’s picture

If there isn't a forum.tpl.php file in the theme folder, I'd like to know the same thing.

yelvington’s picture

Read the theme developer's guide.

A forum is a node with attached comments. You can create different themes for each node type.

What if you're not up to the task of writing a template from scratch, and the theme you are using does not include a file corresponding to the thing you want to alter?

Simple: Copy the corresponding default file out of the theme engine's directory and place it in the directory containing your theme. You can then modify that copy. This applies to any component template as well, such as block theming.

Phillip Mc’s picture

check out dublin drupallers snippets in the handbook.

he's done a complete tpl.php + stylesheet snippet for the forum list layout and 'catching' forum posts (which are nodes) so you can adjust the layout for that as well.

I found it very useful a while back when I needed to do the same. the example is done in black and white but the accompanying style.css snippet allows you to modify colours easily.

http://drupal.org/node/154325

As a side note...theming, in particular overriding theme functions (the way Drupal spits out HTML output for each element), is supposed to get easier in Drupal 6 but for the duration, the above worked for me with Drupal 5.x

Phil

balaftuna’s picture

Thank you very much for your replies.

yelvington, unfortunately I didn't really understand your reply, so please if you can explain what you mean. I'm new to drupal, so stuff like "Copy the corresponding default file " is.. not so simple for me.

Philk, I followed the instructions on the node you gave me, and while there is a tiny change in the way the forum looks, it's barely noticeable, and miles away from what it's supposed to look like.
Here's how it looks: http://shaysstudio.com/tmp/forumLooksLikeThis.JPG

Any ideas?

cheers.

Shay.

balaftuna’s picture

firefox debugger's list of CSSs does not show the theme's forum.css, only the module/forum/forum.css .
what am i missing?
Thanks

yelvington’s picture

Read the theme developer's handbook. It explains the existence and purpose of each potential theme file, such as node.tpl.php, block.tpl.php, et cetera.

If you need to change the way blocks are themed, "copy the corresponding default file" means you should copy the block.tpl.php from the theme engine's directory into your theme's directory, then edit it.