+ $quote = trim(fromgplus_html2bbcode($thumb->description));
+ if ($quote != "")
+ $quote = "\n[quote]".$quote."[/quote]";
+
+ //foreach($attachment->thumbnails as $thumb) {
+ // $preview = "/w".$thumb->image->width."-h".$thumb->image->height."/";
+ // $preview2 = "/w".$thumb->image->width."-h".$thumb->image->height."-p/";
+ // $image = str_replace(array($preview, $preview2), array("/", "/"), $thumb->image->url);
+
+ // $post .= "\n[url=".$thumb->url."][img]".$image."[/img][/url]\n";
+ //}
+ $quote .= "[/class]";