Noskiw Posted October 4, 2009 Share Posted October 4, 2009 function bbcode($string){ if($string){ $bbcode_array = array('[b]','[/b]', '[u]', '[/u]', '[i]', '[/i]', '[code]', ' ', ''); $bbcode_array_2 = array('<b>', '</b>', '<u>', '</u>', '<i>', '</i>', '<center><div style="width:90%;padding:3px;background-color:#000099;color:#FFFFFF;border:2px solid;">', '</div></center>', '<img src=', '"">'); $new_string_2 = str_ireplace($bbcode_array, $bbcode_array_2, $string); return $new_string_2; } }[/code] wont appear with a picture... ignore the http:// part in the code, i didn't put that there... Link to comment https://forums.phpfreaks.com/topic/176472-solved-bbcode-picture-failure/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.