MyBB Community Forums

Full Version: Make color coads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to make color codes which is short and easy to type and post.
E.g.
For red color C=1
is there any tutorial to do this
Yes, you can do this => Rather than making, C=1, you can my codes like [red]ASKAMN is my name[/red]

Go To Configuration -> MyCodes -> Create New ->

And Enter These :-

TITLE:
Red Color [You can use any name though]

Regular Expression:
\[red\](.*?)\[/red\]

Replacement:
<span style="color:red;">$1</span>

Enabled:
Yes

Similarly make other mycodes Wink
Thanks dude very very thanks
Can u also tell me how to make short codes for font size
Yes, it is similar as above.


Go To Configuration -> MyCodes -> Create New ->

And Enter These :-

TITLE:
Font Size [You can use any name though]

Regular Expression:
\[small\](.*?)\[/small\]

Replacement:
<span style="font-size: small">$1</span>

Enabled:
Yes

Similarly change small to large to make the text large Big Grin

You can also ask people to specify font size in Pixels. For that you can use:

TITLE:
Font Size [You can use any name though]

Regular Expression:
\[f(.*?)\](.*?)\[/f\]

Replacement:
<span style="font-size: $1px">$2</span>

Enabled:
Yes

To use it, just enter text like this: [f12]Cedric[/f] It will display text which is 12px in size.

Wink
Thank u very much Cedric