MyBB Community Forums

Full Version: Font size and Font color
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to change the font size... for example, instead of this

[size=small]
[size=medium]
[size=large]
[size=x-large]
[size=xx-large]

show this

[size=1]
[size=2]
[size=3]
[size=4]
[size=5]

cause due to the modifications that i have done on my forum, if i click on small, the font is the same... so, i would like that if choose small, the size can be 1...

and how about adding new font colors??
It's already built in but not advertised.
If you look at inc/functions_post.php, search for the line
"#\[size=([0-9\+\-]+?)\](.*?)\[/size\]#si",
So, if you enter any number, + or -, this will be input into a simple font tag. So you can use [ size=3]text[ /size], and it should convert to<font size="3">text</font>.

As for colours, I think it's an edit of the template 'codebuttons'. Just add it onto the list. As long as it consists of letters or a hex code, it should be fine.
thanx, i found what i wanna Wink