MyBB Community Forums

Full Version: CSS MyCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Regular Expression:
\[css-div=(.*?)\](.*?)\[/css-div\]

Replacement:
<div style="$1">$2</div>

Allows users to use tags such as:

[css-div=background: #000; color: #FFF;][/css-div]

in their signatures and posts. It helps to make your forum decorative as users start to learn how to design posts.

Also, the forums won't parse the tags automatically, so you have to create a different tag with the same function and a different parse order to make it work.
This can also be annoying as they can easily set a height and width and break your forums - or just not close the tag and it will go on forever.
Yeah, but threads are easily deleted from a page that can't be broken, and it's just the same as someone posting porn or something, you delete it, warn or ban them, and be on your way. :/
But you're giving them a tool to do it in the first place. It's different with other mods because you can easily control what's being done - filters, word replacers, etc, etc.; you really can't with this as it's a general expression that you're searching for.
Well, not to get argumentative, but a site such as this one: http://www.pokecommunity.com/, which has over 120,000 members uses the tags and I still never see any such posts, which means the amount of noob users that know how to do it must be scarce. :/

Just saying, I know it's a possibility, but it doesn't happen as much as you would think, as I've been going to that site for 4 years.
It can't parse double CSS code
(2009-07-09, 12:50 AM)x_Stricken_x Wrote: [ -> ]or just not close the tag and it will go on forever.

I don't think you can do that,
[quote]
[code]
I remember a forum that had this kind of thing on their forums, too easy to abuse and break templates. I'm not going to use it.

Thanks for the addition however.
(2010-10-12, 12:00 PM)zZJoennZz Wrote: [ -> ]It can't parse double CSS code
It can, just add another with the exact same information and change the parse order to 2, and set the original one you made to 1.

Also, please don't respond with you won't use it, to everyone. If you don't want to, just ignore this whole thread. :/
But, I tried it, and it's fails to parse
Pages: 1 2