Так а что нужно чтоб .html обрабатывались как .php?
location ~ \.php$ {
замените на
location ~ \.(php|htm|html|phtml)$ {
по аналогии с вашим htaccess
<!DOCTYPE html><html><head> <title>ip</title> <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script></head><body><?phpif ($_SERVER['REMOTE_ADDR'] == '10.10.10.10') {?><div id="dialog" title="Basic dialog"> <p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p></div><script> $(function() { $( "#dialog" ).dialog(); });</script><?php}?> <p>some text</p></body></html>
http://stackoverflow.com/questions/3392993/php-regex-to-get-youtube-video-id
Вот тема с кучей регулярок для выдирания ID
С DLE не знаком, извините
Береш видео, например http://www.youtube.com/watch?v=HsIy6j5WVho
Из него достаешь ID (HsIy6j5WVho), например регулярным выражением.
Подставляешь в ссылки
http://img.youtube.com/vi/HsIy6j5WVho/0.jpg
http://img.youtube.com/vi/HsIy6j5WVho/1.jpg
http://img.youtube.com/vi/HsIy6j5WVho/2.jpg
http://img.youtube.com/vi/HsIy6j5WVho/3.jpg
explode(" ", "кирпич красный карамбос", 2)
php-fpm запущен и работает?
http://pastebin.com/KxXDbZtv
Наслаждайтесь
На странице нету этого стиля
overflow: hidden убрать у <div style="width: 100%; overflow: hidden;">
Конечно можно. представьте что это div, только называется nav