MyBB Community Forums

Full Version: Simple Audio Video Embeder
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10
Hello again, in addition to the Odysee links, could you add invidious. It's a privacy frontend for Youtube.

https://invidious.snopyta.org/watch?v=6jlsTlmj_eI
Minor update
6.0.1
Fixed xhtml validation for a bunch of video options
Thanks for the updates. Was still wondering if you could update it to automatically embed Odysee/LBRY videos?
Bug................

In my site when i post the url of video after changed my domain from http to https the videos are not loaded at all.
but if i switch back my site to http everything is fine.

See the photo for your reference!

with my domain using https:// i have the below problem as you see on image the videos are not loaded.
https://ibb.co/kh94L0P
The video link/content also needs to be https otherwise it does not load on http
Hey buddy the videos are fine now and loaded automaticaly ,i just used  the default insert video icon option from mybb toolbar of post thats why i had this trouble.
Yeah not needed with this mod. You just post the link and it auto embeds
Hi,
I just updated MyBB from 1.8.22 to 1.8.29 and Simple Audio Video Embeder from ~5 to latest version, after this actions I noticed that I can't embed videos anymore. When I post YT link in message - whole message is empty, in edit mode I see link and text, but after saving there is nothing, empty post

PHP:7.4.26
MySQLi 10.4.21
MyBB 1.8.29
Simple Audito Video Embeder (6.0.2)

error code:
<error>
	<dateline>1641491235</dateline>
	<script>inc/class_parser.php</script>
	<line>2049</line>
	<type>512</type>
	<friendly_type>User Warning</friendly_type>
	<message>Parser output validation failed.
array (
  'sourceHtmlEntities' => 'test
[hr]
https://www.youtube.com/watch?v=McB0ls7pBNA',
  'outputHtmlEntities' => 'test&lt;br /&gt;
&lt;hr class=&quot;mycode_hr&quot; /&gt;
&lt;iframe width=&quot;640&quot; height=&quot;385&quot; src=&quot;//www.youtube.com/embed/McB0ls7pBNA?fs=1&amp;start=&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;true&quot;&gt;&lt;/iframe&gt;',
  'errors' => 
  array (
    0 => 
    LibXMLError::__set_state(array(
       'level' => 3,
       'code' => 23,
       'column' => 85,
       'message' => 'EntityRef: expecting \';\'
',
       'file' => '',
       'line' => 3,
    )),
  ),
)</message>
	<back_trace>#0  errorHandler->error() called at [/inc/class_parser.php:2049]
#1  postParser->validate_output() called at [/inc/class_parser.php:1990]
#2  postParser->output_allowed() called at [/inc/class_parser.php:284]
#3  postParser->parse_message() called at [/inc/functions_post.php:817]
#4  build_postbit() called at [/showthread.php:1118]
</back_trace>
</error>

Confirmed not sure how to fix yet. HTML looks well formed.

Have posted a fix
6.1
Disables output validation errors preventing videos from showing.
thanks for quick update Smile

I have also installed DVZ Shoutbox and I noticed now that if user posts YT URL it shows up empty message there - this would be also Simple Audito Video Embeder fault or Shoutbox?

error code is (I think) the same
<error>
 <dateline>1641502572</dateline>
 <script>inc/class_parser.php</script>
 <line>2049</line>
 <type>512</type>
 <friendly_type>User Warning</friendly_type>
 <message>Parser output validation failed.
array (
  'sourceHtmlEntities' => 'Muszę to zapodać    https://youtu.be/0rnWkENbVK4',
  'outputHtmlEntities' => 'Muszę to zapodać    &lt;iframe width=&quot;640&quot; height=&quot;385&quot; src=&quot;//www.youtube.com/embed/0rnWkENbVK4?fs=1&amp;start=&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;true&quot;&gt;&lt;/iframe&gt;',
  'errors' => 
  array (
    0 => 
    LibXMLError::__set_state(array(
      'level' => 3,
      'code' => 23,
      'column' => 112,
      'message' => 'EntityRef: expecting \';\'
',
      'file' => '',
      'line' => 1,
    )),
  ),
)</message>
 <back_trace>#0  errorHandler->error() called at [/inc/class_parser.php:2049]
#1  postParser->validate_output() called at [/inc/class_parser.php:1990]
#2  postParser->output_allowed() called at [/inc/class_parser.php:284]
#3  postParser->parse_message() called at [/inc/plugins/dvz_shoutbox.php:1368]
#4  dvz_shoutbox::parse() called at [/inc/plugins/dvz_shoutbox.php:1297]
#5  dvz_shoutbox::render_shout() called at [/inc/plugins/dvz_shoutbox.php:820]
#6  dvz_shoutbox::load_window() called at [/inc/class_plugins.php:136]
#7  pluginSystem->run_hooks() called at [/index.php:466]
</back_trace>
</error>


----

I used your code in Shoutbox code where message is parsed and video works now in SB messages
Pages: 1 2 3 4 5 6 7 8 9 10