NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > CODE
Reload this Page BBCode Class

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.

Advanced Search
7 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 10-26-2006, 07:27 AM THREAD STARTER               #1 (permalink)
Formerly Array
 
-NB-'s Avatar
Join Date: Feb 2006
Location: San Diego, CA
Posts: 228
-NB- is a name known to all-NB- is a name known to all-NB- is a name known to all-NB- is a name known to all-NB- is a name known to all-NB- is a name known to all
 



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 will parse everthing.

This is a code to learn from and make use of, but please do not redistribute it without permission from me.

Thanks,
Nick
Attached Files
File Type: zip bbcode.zip (707 Bytes, 101 views)
-NB- is offline  
Old 10-27-2006, 02:48 PM   #2 (permalink)
NamePros Regular
Join Date: Sep 2006
Location: Nottingham, England.
Posts: 708
Millar has a spectacular aura aboutMillar has a spectacular aura about
 



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
Millar is offline  
Old 10-27-2006, 03:22 PM THREAD STARTER               #3 (permalink)
Formerly Array
 
-NB-'s Avatar
Join Date: Feb 2006
Location: San Diego, CA
Posts: 228
-NB- is a name known to all-NB- is a name known to all-NB- is a name known to all-NB- is a name known to all-NB- is a name known to all-NB- is a name known to all
 



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
-NB- is offline  
Old 04-27-2007, 12:08 PM   #4 (permalink)
Senior Member
Join Date: May 2005
Location: Ontario Canada
Posts: 3,088
unknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to beholdunknowngiver is a splendid one to behold
 


Diabetes
great script
thanks
unknowngiver is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 03:09 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger