MyBB Community Forums

Full Version: CSS BBCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
You know how to make super complicated CSS designs but don't know how to make MyCodes?

Admin CP -> Configuration -> MyCode -> Add New MyCode. Even comes with an example.

I haven't tested the following but it may work:

Pattern:
\[css-div="(.*?)"\](.*?)\[/css-div\]

Replace with:
<div style="$1">$2</span>

Anyhow, you should get the idea.
(2009-01-03, 11:44 PM)frostschutz Wrote: [ -> ]You know how to make super complicated CSS designs but don't know how to make MyCodes?

That would be the one. Toungue

And thanks, I created it but it didn't work for me...

I posted...

[css-div="width: 396px;"][class=tcat]~ Faint Brushfire's signature ~[/class][/css-div][css-div=" color: white;cursor: crosshair; background-image:url("http://i294.photobucket.com/albums/mm86/Faint_Brushfire/HaruhiCSS.png"); width: 396px; height: 223px; font-size: 10px; text-align: left;"][css-div="padding: 2px 2px 2px 2px; border: solid 1px transparent; font-variant: small-caps; color: white; background-color: orange; width: 140px; height: 217px; opacity: 0.6; overflow: auto;"]
[h2]My Current Hacks[/h2][URL="http://www.pokecommunity.com/showthread.php?t=152575"]
Pokemon: Yu-Gi-Oh! Edition[/URL][URL="http://www.pokecommunity.com/showthread.php?t=141719"]
[/URL][URL="http://www.pokecommunity.com/showthread.php?p=4123491#post4123491"]Pokemon Azomite[/URL]

[h2]Other Hacks[/h2][URL="http://www.pokecommunity.com/showthread.php?t=157620"]
Pokemon Sentra Journey's[/URL]

[h2]I support[/h2][URL="http://www.pokecommunity.com/showthread.php?t=152650"]
Pokemon Netplay[/URL]

[h2]Hacks that inspired me[/h2][URL="http://www.pokecommunity.com/forumdisplay.php?f=67"]
Pokemon Shiny Gold[/URL][URL="http://www.pokecommunity.com/showthread.php?t=152851"]
Pokemon Ruby Destiny: Reign of Legends[/URL][URL="http://www.pokecommunity.com/showthread.php?t=129528"]
Pokemon Ruby Destiny: Rescue Rangers[/URL]

[h2]My sites[/h2][URL="http://sawentertainment.net"]
SAW Entertainment[/URL][URL="http://yugiohex.sawentertainment.net"]
Yu-Gi-Oh! EX [Coming Soon][/URL]
 
[h2]My motto[/h2]
[I]I sleep all night, I hack all day.
I'm a Grammar-Nazi, and I'm okay.[/I]
[/css-div][/css-div][css-div="width: 396px;"][class=tcat] **SAW Entertainment!**[/class][/css-div]

Perhaps there's something in there that means a change in the MyCode? I don't know, I'm not familar with MyCodes. Toungue
Ok, so MyCodes don't parse [i]mycodes inside mycodes of the same type[/i], unfortunately. The outer div works, the inner doesn't. Dunno if this limitation can be overcome. Short of defining several MyCodes that do the same thing but you can use them for outer / inner levels.

You figure out out Toungue
Pages: 1 2