| | |||||
| ||||||||
| CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Formerly Array Join Date: Feb 2006 Location: San Diego, CA
Posts: 228
![]() ![]() ![]() ![]() ![]() ![]() | BBCode Class Check out this BBCode class I've created here. It can parse simple BBCode and other things, such as smilies and bad words. It's fully PHP, created on a PHP4 server, so it should work fine on standard hosts. ????: NamePros.com http://www.namepros.com/code/251068-bbcode-class.html To call it, you simply say something to the effect of: Code: $text = $bbc->parse($text); This is a code to learn from and make use of, but please do not redistribute it without permission from me. Thanks, Nick |
| |
| | #2 (permalink) |
| NamePros Regular Join Date: Sep 2006 Location: Nottingham, England.
Posts: 708
![]() ![]() | Nice, clean, class. Sure people will find it easy enough to add their own BBcodes to the class.
__________________ [CENTER]Standard Warfare: modern browser-based game |
| |
| | THREAD STARTER #3 (permalink) |
| Formerly Array Join Date: Feb 2006 Location: San Diego, CA
Posts: 228
![]() ![]() ![]() ![]() ![]() ![]() | Thanks, Millar! I'm glad to see this appreciated. I may release another version of this, since it is kind of difficult for some people to understand REGEX code. The new version should make it easier for people to add their own BBCodes ![]() Nick |
| |