Jump to content

[SOLVED] bbcode picture failure


Noskiw

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.