FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


BB Codes





DanielXP
Any one know where i can get the BB code funtion

with all the stuff like phpBB

code
list
smilies
img
quote
b
i
u

ect . . .
DudeAmI0
you can develop you own with the
str_replace function, heres a example:
Code:
$str = 'I like monkeys<br>';
echo $str;
$str = str_replace('monkeys', 'chickens', $str);
echo $str;

Heres how you would use it for a BB Code:
Code:
$str = '[b]Bold text[/b]';
echo $str;
$str = str_replace('[b]', '<b>', $str);
echo $str;
DanielXP
Already done thanks any way - Lock -
MrBaseball34
Here's a very good BBCode to HTML/HTML to BBCode parser:

http://corz.org/blog/inc/cbparser.php
Related topics
FTP Codes
UBB Code / Smiley Parsing
BB Codes
Was there any point to sending men to the moon?
phpBB allowing HTML in sigs?
BB Codes
BB Code :|
PM Logout
How to realize "BB-Code"
UBB-codes voor op website
Moderators && Payed Option?
Can we ban "lulzy" English?
bb code help - regex
BB Codes usage is a little weird :S
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.