BBcode to HTML function for PHP
Freeola Internet Get Dotted Domains Chat & Gaming
Freeola Gaming
Build your own website!
Freeola Games HomeChat ForumsCheatsWalkthroughsTips & TrophiesReviewsWin Free GamesMyFreeolainvader-bob
 
Browse Chat Forums:
 Chat Forums Home View Latest Post Chat Rules Chat Safety & Tips Top Posters
  Games Homepage  Win Free Games  Latest Winners  Hall of Fame  See Who's Online  Update Your Profile
  Free Web Site  Free Domain Hosting  Emergency Internet  Broadband Offers  Broadband Speed Test
 

Did you know...?

Help & Support 7 Days a Week

HTML & PHP Chat & Help

Visit our Support Pages E-mail a Support Request Contact Us

VIP Unlimited Hosting

nothing
You Are Here Chat Home (94)   Web Development & Technical Chat  BBcode to HTML funct...
Just lurking around? Why not join in? You could win free games just by chatting. Choose your Nickname in MyFreeola or Sign Up Here.
 
 
 General Chat     Web and Technical Chat     Games Chat     Game Reviews   
 
BBcode to HTML function for PHP
"Imperfection"
Staff
on 08/06/2009 at 7:21:27PM
Edited: 8/6/09 21:54
Total Posts: 67
Original Post:
If you want to add BB/Forum type styling functionality to your custom forum, message board, CMS, guestbook or anything else you can use this handy little function which includes my favourite tags (which happen to be XHTML compliant). If the style could not be applied by the standard tag behaviour, I have put an inline style or a class name (if the inline style would be too bloated).

EDIT:
URL to function: http://www.vipluke.myfreeola.com/examples/bbtest.txt
(Code example of BB code was a bad idea on a forum)

Example use:

$bbtext = "[quote]This is a quote[/quote]";
echo bb2html($bbtext);


Hopefully this may help someone.

:)
View More Threads Post a Reply  
Displaying 1 - 2 of 2 Replies:
LukeM
"Imperfection"
Staff
on 10/06/2009 at 1:04:06PM
Total Posts: 67
lol ;)
Eccles
"Aargh! Broken..."
Staff Moderator
Send a message
on 08/06/2009 at 9:54:54PM
Total Posts: 683
... and you can even make your URL into a link using BBCode on this forum:P
LukeM
"Imperfection"
Staff
on 08/06/2009 at 7:21:27PM
Edited: 8/6/09 21:54
Total Posts: 67
If you want to add BB/Forum type styling functionality to your custom forum, message board, CMS, guestbook or anything else you can use this handy little function which includes my favourite tags (which happen to be XHTML compliant). If the style could not be applied by the standard tag behaviour, I have put an inline style or a class name (if the inline style would be too bloated).

EDIT:
URL to function: http://www.vipluke.myfreeola.com/examples/bbtest.txt
(Code example of BB code was a bad idea on a forum)

Example use:

$bbtext = "[quote]This is a quote[/quote]";
echo bb2html($bbtext);


Hopefully this may help someone.

:)
 
Your Details MyFreeola Internet Settings Control Panel Your Details
Login or create a free account.
Forgotten your password?
Free Account Sign-Up
 
Your Details
Search
 
 
 
Fantastic FREE Unlimited Services for every freeola internet customer in the UK!
Register Domain Names. Buy from £2.99
e.g. yourcompany.com
or just yourcompany.
MORE ABOUT DOMAIN NAMES