MyBB Community Forums

Full Version: Use <style> in post
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I want to know if there is a way to use <style> in post of my forum. I allow the html with the plugin, but is there one to be able to use "css" in post.

http://black-asylum.livehost.fr/showthre...pid=5#pid5

I use the last version of myBB.

Thank you
You can use inline CSS, no need for <style> tag
Thank you for you're anwser, but i want my member to be able to use personnalise css for there but that they can at in <style> .nombalise {....} </style>

Is there a way to be able to do that in post ?

Thank you
No. You'll need to rewrite inc/class_parser.php if you want that, but it's not recommended at all. Inline styling is already too much IMO because you can style an element so that it's displayed on the whole screen with fixed positioning and big width/height.
Okay, and what modification will I have to do ? Because it's really usefull for my member and me.

I love the phpbb 2 because of the possibility to use all the code I want in my post, but for the graphisme it's not like myBB with all the templates, css we can use.
I posted a tutorial how to do this here: http://www.rpgfix.com/resources/using-st...n-mybb.15/

There might be some slight adjustments based on the current myBB code, but that should give you the right idea. I'm going to reiterate Destroy's warning though: allowing your members to use CSS styling in their posts can result in issues for your forum's layout and could have unexpected, negative results.
Use xThreads.
Thank you for your answers !

What is xtread?