Logged Out
Create an Account
Login:
Password:

Forgot your password?
Blizzard Quote BBCode

Blizzard Quote BBCode
[Back to Index]
Thread Tags
Primary: [Support]
Secondary: None

Trying to make a bbcode to format for Blizzard quotes, much like on other forums like on MMO-Champion.com

I've found some stuff but I can't find the perl string I'd use and I have no idea how to format it by myself.

What I've found so far is:

    <div class="blizzwrap" style="padding: 10px 20px 10px 20px;"><div class="blizzinner" style="background-color: #333; padding: 0 5px;">
    <div class="blizzheader" style="color: #0099FF; background-color: #333; padding: 5px; font-size: 11px;"><span style="display: block; background: transparent url(http://techsupport.ds003.com/images/blizz_ico.gif) left top no-repeat; padding-left: 30px; height: 21px; line-height: 21px;">{TEXT1}</span></div>
    <div class="blizzquote" style="color: #0099FF; padding: 10px 5px 5px 5px; font-size: 11px; background: #333 url(http://techsupport.ds003.com/images/blizzquotesep.gif) left top no-repeat;">{TEXT2}</div></div></div>


[blizz={TEXT1}]{TEXT2}[/blizz]


Thanks in advance for any help.


--
Wolfify
Resto Druid
<Infamous With Style>
Darkspear -- Alliance
You're pretty close.

For the regex, you'll want to do something like this:

/\[blizz=(.*?)](.*?)\[\/blizz]/si


Then, for the replacement text, you'll want to tweak your current setup just mildly. Where you have {TEXT1}, change it to $1, and where you have {TEXT2}, change it to $2.


--
It's all in the reflexes.
Thanks a ton Chops!


--
Wolfify
Resto Druid
<Infamous With Style>
Darkspear -- Alliance


[Back to Index]