+ $msg = trim(strip_tags(bbcode($msg)));*/
+
+ // Test
+
+ // Looking for images
+ if(preg_match("/\[img\=([0-9]*)x([0-9]*)\](.*?)\[\/img\]/is",$b['body'],$matches))
+ $image = $matches[3];
+
+ if(preg_match("/\[img\](.*?)\[\/img\]/is",$b['body'],$matches))
+ $image = $matches[1];
+
+ $html = bbcode($b['body']);
+ $msg = trim($b['title']." \n".html2plain($html, 0, true));