Chỉ với một đoạn code đơn giản bạn có thể hiển thị được Thumbnail video từ Youtube trong Xenforo Copy file RecentNews.php đè chồng theo đường dẫn \library\EWRporta\Block\RecentNews.php thật ra nó thêm một hàm này ở đoạn cuối file RecentNews.phpPHP: return $post; } if (preg_match('#\[media=youtube\](.+?)\[/media\]#i', $post['message'], $matches)){ $post['promote_data'] = 'http://img.youtube.com/vi/'.$matches[1].'/0.jpg'; $post['image'] = 'http://img.youtube.com/vi/'.$matches[1].'/0.jpg'; return $post; } return $post; }} File đính kèm bạn có thể download bên dưới