Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2010-03-15 21:09:15

trichome
Member
Registered: 2008-05-22
Posts: 42

CSS BBCode tag

How about a class bbcode tag?

[class=myclass]Text here.[/class]

Maybe append a prefix to all custom classes so they don't conflict with any of the main css files.

Then you'd just need define the properties in your css file.

Offline

#2 2010-03-15 21:23:55

eureka
Member
From: France
Registered: 2008-08-29
Posts: 46

Re: CSS BBCode tag

oh yes, that's a real good idea for 1.4.1 !!!!

[class=myclass]Text here.[/class] ==> <span class="myclass">Text here.</span>

Last edited by eureka (2010-03-15 21:24:26)


French language packs for FluxBB 1.3-Legacy and FluxBB 1.4.2

Offline

#3 2010-03-15 21:41:54

ridgerunner
Developer
Registered: 2008-06-24
Posts: 182
Website

Re: CSS BBCode tag

The new parser I'm working on makes this a trivial matter. All the BBCodes are defined in an array and you can add any new codes that you like. Eventually, this BBCode definition array can be moved to MySQL which will allow adding new BBCodes from the admin panel without having to mess with the code.

Stay tuned!

Offline

#4 2010-03-15 22:43:52

FSX
Developer
From: NL
Registered: 2008-05-09
Posts: 805
Website

Re: CSS BBCode tag

It's nice that with ridgerunner's parser this would be a trivial task.

However, I don't see a point in the ability to define classes in your BBcode. User should not mess with the presentation of the page and just write content. Why would you even need this? It would be better to create a tag for each task and then add some CSS for it. That's my opinion.

Offline

#5 2010-03-16 01:46:59

Mpok
Member
From: France
Registered: 2008-05-12
Posts: 350

Re: CSS BBCode tag

ridgerunner wrote:

... and you can add any new codes that you like.

And how do u manage the "regular expression" part ?
Further more, how can u imagine basic users be able to write their own regular expressions ?

Was working on something like u do, but i've stopped.
It will be a 'geek mod' or even a 'devs mod' : only devs can use it..

Offline

Board footer

Powered by FluxBB 1.5.0