Please or Register to create posts and topics.

Не отображаются медиа

После обноаления Версия 1.14.8   перестали отображаться медиа видео аудио В редакторе отображаются а в сообщении нет

Uploaded files:
  • bandicam-2019-05-21-01-00-47-609.jpg

Hello @fgfff

  • From which version have you updated?
  • Can you provide a link to your post or the video which you try to embed so I can have a look?
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

http://gifca1.ru/forum/topic/%d1%84%d0%b0%d1%82%d1%82%d0%b0%d1%85%d0%be%d0%b2%d0%b0-%d0%be%d0%bb%d0%b5%d1%81%d1%8f-%d0%ba%d0%bb%d0%b8%d0%bf-%d0%b4%d0%be%d1%87%d1%8c-%d0%b7%d0%b0-%d0%be%d1%82%d1%86%d0%b0/

Hello @fgfff

What kind of video have you embedded/which service are you using? The best way to embed a video is to just paste its URL (for example YouTube-URLs) into the editor so that WordPress embeds it automatically.

Embed videos directly via scripts or HTML is not possible anymore since one of the latest updates because it allowed users to include malicious scripts as well which could lead to security risks.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Вставить видео напрямую через скрипты или HTML больше невозможно.  Вы меня просто убили У меня практически в каждом  сообщении вставленно видео или аудио object или frame   Редактировать сообщения это просто невозможно Может есть  какой плагин или какой то другой способ вернуться на старую версию Asgaros Форум

Uploaded files:
  • bandicam-2019-05-21-03-34-13-968.jpg

Все вопрос решон  Спасибо чудесному плагину  WP Rollback

Uploaded files:
  • bandicam-2019-05-21-04-17-00-718.jpg

Hello again @fgfff

Actually WordPress itself filters those content (check out the documentation of the wp_kses() function).

If you want remove that kind of filtering, you have to replace the following line of code from the asgaros-forum/includes/views/post-element.php file:

$post_content = wp_kses($post->text, 'post');

Replace with:

$post_content = $post->text;

However, please keep in mind that those changes allows users to add malicious scripts into your posts. So those changes are on your own risk.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!