![]() |
CMS Answered Bug fix for article preview image If you use html image entries in an article instead of bbcode image entries (for the obvious reason of being able to use html image attributes), the CMS system will not generate a preview image for the article. The fix: Edit packages/vbcms/content/article.php. Find: PHP Code: // if there are no images in the article body, make sure we unset the preview in the db And add the following before it: PHP Code: if (!$found_image & preg_match ('/ 0) { $previewimage = $match[2]; if ($size = @getimagesize ($previewimage)) { $dm->set ('previewimage', $previewimage); $dm->set ('imagewidth', $size[0]); $dm->set ('imageheight', $size[1]); $found_image = true; } } // if there are no images in the article body, make sure we unset the preview in the db |
الساعة الآن 04:04 AM |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir