Notifications
Clear all

WpForo Расширенные вложения - мобильный видео не работает.

54 Posts
3 Users
1 Likes
20.4 K Views
Posts: 42
Topic starter
(@magadan)
Eminent Member
Joined: 7 years ago
Posted by: Tom
Posted by: Андрей Мигель

я сделал это , не работает

You've damaged the code I've provided, this is the reason. What is this:

2017 06 24 1016

Please remove all these. Then copy this code from here again and past it in the same textarea, save, delete all caches and do ctrl+F5:

#wpforo-wrap .wpforo-post-content .wpf-video, #wpforo-wrap .wpforo-post-content .wpf-video iframe{max-width: 85%;}
@media screen and (max-width:1000px) {
    #wpforo-wrap .wpforo-post-content .wpf-video, #wpforo-wrap .wpforo-post-content .wpf-video iframe{max-width: 98%;}
}
#wpforo-wrap .wpforo-post-content .wpfa-video, #wpforo-wrap .wpforo-post-content .wpfa-video video{max-width: 85%;}
@media screen and (max-width:1000px) {
    #wpforo-wrap .wpforo-post-content .wpfa-video, #wpforo-wrap .wpforo-post-content .wpfa-video video{max-width: 98%;}
}

Не работает (

Reply
Posts: 4168
 Tom
Admin
(@tomson)
Famed Member
Joined: 9 years ago
Posted by: Андрей Мигель

Я понял - пробую сейчас . 

Thank you for admin access, we've already changed the CSS code.

As per file deleting problem. For some reason your WordPress AJAX requests are forbidden. I think you have .htaccess file in /wp-admin/ or some other security configuration or plugin which blocks /wp-admin/ and ajax requests. Please remove that. All WordPress plugin uses /wp-admin/wp-ajax.php file for AJAX requests, this is incorrect configuration.

2017 06 24 1031
Reply
1 Reply
(@magadan)
Joined: 7 years ago

Eminent Member
Posts: 42
Posted by: Tom
Posted by: Андрей Мигель

Я понял - пробую сейчас . 

Thank you for admin access, we've already changed the CSS code.

As per file deleting problem. For some reason your WordPress AJAX requests are forbidden. I think you have .htaccess file in /wp-admin/ or some other security configuration or plugin which blocks /wp-admin/ and ajax requests. Please remove that. All WordPress plugin uses /wp-admin/wp-ajax.php file for AJAX requests, this is incorrect configuration.

2017 06 24 1031

Ка найти ошибку ? htaccess   

мой такой - он вроде не блокирует .

RewriteEngine on

RewriteCond %{HTTP:X-Forwarded-Proto} !https

RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]

 

#RewriteEngine On

RewriteCond %{HTTP_HOST} ^www.vip-m-stroi.ru$ [NC]

RewriteRule ^(.*)$ http://vip-m-stroi.ru/$1 [R=301,L]

 

 

# BEGIN WordPress

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteRule ^index\.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

</IfModule>

 

# END WordPress

 

 

Reply
Posts: 4168
 Tom
Admin
(@tomson)
Famed Member
Joined: 9 years ago
Posted by: Андрей Мигель

Не работает (

It works fine. You should delete phone cache, it's not easy. Try with other phons or with other phone browsers. it already works:

2017 06 24 1038
Reply
1 Reply
(@magadan)
Joined: 7 years ago

Eminent Member
Posts: 42

Да - работает - спасибо .

Reply
Posts: 42
Topic starter
(@magadan)
Eminent Member
Joined: 7 years ago

Все плагины работают нормально - странно , не могу понять почему . Может тут в детской теме блог ? 

Возможно тут у меня может быть ошибка ? 

Этот код закрывает админ бар от пользователей 

// =============================================================================

function wps_admin_bar() {

    global $wp_admin_bar;

    $wp_admin_bar->remove_menu('wp-logo');

    $wp_admin_bar->remove_menu('about');

    $wp_admin_bar->remove_menu('wporg');

    $wp_admin_bar->remove_menu('documentation');

    $wp_admin_bar->remove_menu('support-forums');

    $wp_admin_bar->remove_menu('feedback');

    $wp_admin_bar->remove_menu('view-site');

}

 

//запрет доступа к админке start

function wph_noadmin() {

 

   if( wp_doing_ajax() ) return true;

 

    if (is_admin() && !current_user_can('administrator') ) {

        wp_redirect(home_url());

        exit;

    } }

add_action('init', 'wph_noadmin'); 

//запрет доступа к админке end

 

 

//скрытие панели для всех кроме админов start

function wph_del_toolbar($content) {

    return (current_user_can("administrator")) ? $content : false;

}

add_filter('show_admin_bar' , 'wph_del_toolbar');

//скрытие панели для всех кроме админов end

 

// =============================================================================

Reply
Posts: 4168
 Tom
Admin
(@tomson)
Famed Member
Joined: 9 years ago

Backup this .htaccess file, remove it from root and use the attached one. Unzip and upload the .htaccess file to root.

If it doesn't help, follow next:

I meant htaccess file in /wp-admin/ directory. If you don't have .htaccess file in admin dir, please contact to your hosting service support and let them know that your Wordpress doesn't allow AJAX requests. This maybe Server Configuration issue.

 

 

Reply
1 Reply
(@magadan)
Joined: 7 years ago

Eminent Member
Posts: 42
Posted by: Tom

Backup this .htaccess file, remove it from root and use the attached one. Unzip and upload the .htaccess file to root.

If it doesn't help, follow next:

I meant htaccess file in /wp-admin/ directory. If you don't have .htaccess file in admin dir, please contact to your hosting service support and let them know that your Wordpress doesn't allow AJAX requests. This maybe Server Configuration issue.

 

 

Я ставил так как у вас в файле - просто добавил wpforo/

Не помогло (

Удалял код запрета пользователей к админке , тоже не помогло .



RewriteEngine on

RewriteCond %{HTTP:X-Forwarded-Proto} !https

RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]

#RewriteEngine On

RewriteCond %{HTTP_HOST} ^www.vip-m-stroi.ru$ [NC]

RewriteRule ^(.*)$ http://vip-m-stroi.ru/$1 [R=301,L]

# BEGIN WordPress

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /wpforo/

RewriteRule ^index\.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

</IfModule>

# END WordPress.

Полностью менять файл не стал так как у меня перенаправления прописанны на сертификат 

Reply
Page 2 / 8
Share:
Scroll to top