Cho bạn nào ko hiện dc ảnh thumb và dùng editor khác,fix để xem ảnh:
thêm đoạn code sau :
Trích:
else{
if(empty($first_img))
preg_match('@<img.+src="(.*)".*>@Uims', $content, $matches);
$first_img = $matches [1];
}
|
vào dưới
Trích:
if (strstr($content, '[thumb]')){
preg_match("/\[thumb\](.+?)\[\/thumb\]/ise", $content, $matches);
$first_img = $matches [1];
}
|
nếu chưa hiện ( do dùng ubb) thì chép đè dòng
Trích:
preg_match("/\[img.*?\](.+?)\[\/img\]/ise", $content, $matches);
|
vào dòng
Trích:
preg_match("/\[thumb\](.+?)\[\/thumb\]/ise", $content, $matches);
|
Ok