[7.2.2] Superscript and subscript ubb codes.../sub - 12/17/2007 9:42 PM
I got a user asking for subscript and subscript ubb code, so I added those. If you want them but don't like hacking, they are build in 7.3.
Add subscript and superscript ubbcode.
open /libs/ubbthreads.inc.php
find:
Add below:
Enjoy!
Add subscript and superscript ubbcode.
open /libs/ubbthreads.inc.php
find:
Code
array( "#\[b\](.+?)\[/b\]#i", "<b>\\1</b>" ),
Add below:
Code
array( "#\[sup\](.+?)\[/sup\]#i", "<sup>\\1</sup>" ),
array( "#\[sub\](.+?)\[/sub\]#i", "<sub>\\1</sub>" ),
Enjoy!