Logged Out
Create an Account
Login:
Password:

Forgot your password?
Custom bbcode tags

Custom bbcode tags
[Back to Index]
Thread Tags
Primary: [Support]
Secondary: [Suggestions]

How can I use html to create a custom bbcode?

I'm wanting to implement blinking text that I found here: http://www.phpbb3bbcodes.com/blink-bbcode-t151.html

I don't see a way to setup bbcode's with html though. Am I missing something? If there isn't a way, is there another way of achieving this with the existing system, or can we get html support for bbcodes?


--
Followers of Nobility
Yup, you absolutely can do it, but I absolutely would not recommending doing it the phpbb way. I honestly have no idea why it'd be done so convolutedly.

Instead, You could do the old HTML way:

For the Search String:

/\[blink](.*)\[\/blink]/si

For the replacement string

<span style="text-decoration:blink">$1</span>

The replacement string should be the HTML you want it to turn into, you just need to be aware that the Search string is perl regular expression, which aren't obvious without a little practice.


--
It's all in the reflexes.
Ok, that's beyond my abilities. I'm not sure where to go with it from there. Do I just paste all of the html in where $1 is from that website?


--
Followers of Nobility
Nope. I pretty much gave you everything you need. If you copy and paste it exactly what I wrote there, you'll have a custom Blink command there.


--
It's all in the reflexes.


[Back to Index]