You are not logged in.
- Topics: Active | Unanswered
Pages: 1
#1 2010-03-08 23:22:17
- Lirodon
- Member
- Registered: 2009-01-27
- Posts: 89
Content-based CSS classes
If we wanna improve how dynamic FluxBB can be, I am here to suggest a radical tweak to the CSS markup in FluxBB.
Basically, lay down CSS classes based off every single variable that could be thought of, like category ID, post ID, post time, post date, and if it ever gets implemented, tags and such. WordPress already does this and it can be very useful for more advanced theming techniques. This could be easily exploited to as a substitute to the option provided by some forum scripts to automatically force a specific style in specific sections.
Offline
#2 2010-05-21 17:32:34
- orkneywd
- Member

- Registered: 2008-05-10
- Posts: 96
Re: Content-based CSS classes
I'd be interested in this too, certainly for categories and forums though wouldn't it need to be id's used and not classes if your wanting to style a specific post or forum etc ![]()
Last edited by orkneywd (2010-05-21 17:34:28)
Offline
#3 2010-08-19 20:18:33
- Lirodon
- Member
- Registered: 2009-01-27
- Posts: 89
Re: Content-based CSS classes
Sorry to bump, but this may be relevant too;
Why aren't there CSS classes for online status for the online status indicator? I would have expected something like this, but no; we're forced to only have bold text to indicate online status and not a fancy graphic.
Offline
#4 2010-08-19 21:33:16
- Paul
- Developer
- From: Wales, UK
- Registered: 2008-04-27
- Posts: 1,623
Re: Content-based CSS classes
You can have fancy images if you want.
.pun .postfootleft p span {background-image: offline.png}
.pun .postfootleft p strong {background-image: online.png}
On the general point of markup/css, that rather depends on what the future plans are. If those plans include a template system then the issue becomes irrelevant as the markup and css will be whatever they need to be for each particular theme.
The only thing worse than finding a bug is knowing I created it in the first place.
Offline
#5 2010-08-19 22:12:30
- Franz
- Lead developer

- From: Germany
- Registered: 2008-05-13
- Posts: 3,755
- Website
Re: Content-based CSS classes
What happens if a mod happens to add something in <strong> tags there?
You are doomed! (Well, you are not, but you get the point.)
I would definitely think this is a good thing to do, but you're also right, the flexibility to decide will be available with theme support...
Last edited by Franz (2010-08-19 22:13:17)
Offline
Pages: 1
