Hướng dẫn lấy Thumbnail youtube trong Xenforo forum. Chèn hình ảnh của youtube vào diễn đàn xenforo VXF việt nam. 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 PHP: \library\EWRporta\Block\RecentNews.php thật ra nó thêm một hàm này ở đoạn cuối file RecentNews.php Mã: 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; } }