Closed (duplicate)
Project:
Drupal core
Version:
x.y.z
Component:
forum.module
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
29 Jul 2005 at 15:40 UTC
Updated:
20 Apr 2006 at 17:16 UTC
Here's a patch that gives each forum a CSS ID on the top level (www.whatever.com/forum) page. The wrapper div that indents the sub-forums now contains an ID of the format "forum-forum-$tid", similar to the block ids.
This will allow customisation of the forum display. It will allow themes to add forum icons using background-images, which is a popular feature of other forum software, or could be used to highlight a support/FAQ forum in some way.
| Comment | File | Size | Author |
|---|---|---|---|
| forum.module_4.patch | 1.14 KB | ixis.dylan |
Comments
Comment #1
ixis.dylan commentedTo clarify, an example div would be:
The patch changes two identical lines.
Comment #2
Bèr Kessels commentedare you awaer of the more general approach at http://drupal.org/node/23584 ?
Comment #3
ixis.dylan commentedI'm aware of the discussion, yes. Has anything happened with that since May? It sounds like a great idea, but until that makes it into core (and until somebody rewrites the forum module to take advantage of it), this is a simple patch that adds some interesting possibilities to the forum layout. It won't break anything when/if your wrapper enters core, and it doesn't change any functionality or conflict with anything.
I agree that a theme function would be a better way to do this in the long term, but right now this would be useful for anybody writing a theme who wants to fool about with the forum layout. Like me.
Comment #4
ixis.dylan commentedNow that I think about it (and I'm sober), I should probably just add a theme function to the forum module to do this.
Comment #5
robin monks commentedMaking as a duplicate of http://drupal.org/node/23584
Robin
I ♥ Buz