// ##### <img>
$lastimage = strripos($news['message'], '<img');
if ($lastimage !== false)
{
$imagecheck = substr($news['message'], $lastimage);
// Don't have the end, so find it
if (strpos($imagecheck, ' />') === false)
{
$remainstring = substr($news['pagetext_html'], $trimmedlength);
$endimgpos = strpos($remainstring, ' />') + 3;
if ($endimgpos != false)
{
$news['message'] .= substr($remainstring, 0, $endimgpos);
$trimmedlength += $endimgpos;
}
}
}Edit: Yapmak istediğimi bb code ile yaptım teşekkürler.