Ошибки пропали и картинки проходят через парсер теперь нормально, правда одна деталь. В жж как картинки не были ссылками, так и остались :/ Странно, судя по всему первый return не срабатывает.. class_bbcode_core.php if ($align == "")
{
if($inJournal)
return "<a href='$url' target='_blank'><img width='$out_imgwidth' height='$out_imgheigh' class='imgtag' src='$url' border='0' style='cursor:pointer;' alt='Open in new window' /></a>";
else
return "<img width='$out_imgwidth' height='$out_imgheigh' src='$url' border='0' style=\"cursor:pointer;\" onclick=\"window.open('$url');\" alt='Open in new window' />";
}
else
{
if($inJournal)
return "<a href='$url' target='_blank'><img style='float:$align' width='$out_imgwidth' height='$out_imgheigh' class='imgtag' src='$url' border='0' style='cursor:pointer;' alt='Open in new window' /></a>";
else
return "<img style='float:{$align}; cursor: pointer;' width='$out_imgwidth' height='$out_imgheigh' src='$url' border='0' hspace=\"10\" style=\"cursor:pointer;\" onclick=\"window.open('$url');\" alt='Open in new window' />";
} class_bbcode.php if ( $this->ipsclass->vars['allow_images'] )
{
//image aling="left" or right, [IMG=left]
$txt = preg_replace( "#\[img=(right|left)\](.+?)\[/img\]#ie" , "\$this->regex_check_image('\\2','\\1',$inJournal)" , $txt );
//end mod
$txt = preg_replace( "#\[img\](.+?)\[/img\]#ie" , "\$this->regex_check_image('\\1','',$inJournal)" , $txt );
$txt = preg_replace( "#(\[flash=)(\S+?)(\,)(\S+?)(\])(\S+?)(\[\/flash\])#ie", "\$this->regex_check_flash('\\2','\\4','\\6')", $txt );
}