Events Made Easy › Forums › Bug fixed or feature request implemented › Cannot embed Youtube
- This topic has 20 replies, 4 voices, and was last updated 4 years, 7 months ago by Franky.
-
AuthorPosts
-
Mon 4 Feb 2019 at 08:35 #59552AnonymousInactive
I ran into issues updating to EME 2.1.3: It seems no longer possible to embed Youtube videos no matter if using [embed]…[/embed] or simply adding the code provided by Youtube. Saving the event deletes the code. I can still use Youtube in standard posts though. Am I missing something? Any help is appreciated.
Thanks
ChristianMon 4 Feb 2019 at 09:35 #59553FrankyKeymasterWhere are you entering the youtube shortcode? I’ve sometimes remove shortcodes, but may have been too strict here 🙂
Mon 4 Feb 2019 at 10:34 #59554AnonymousInactiveHi,
Entering it in the “details” field of an event resulting in two scenarios:
1. Embed code gets deleted when I save the event.
2. I have a case where the code gets saved in the back end but video is not visible in front end.
Hope this helps.
Thx,
ChristianMon 4 Feb 2019 at 11:54 #59555FrankyKeymasterI’ll try later on today myself …
Mon 4 Feb 2019 at 15:14 #59556FrankyKeymasterJust tested it here: shortcodes are not touched.
Make sure that, when entering your shortcode to verify it in “text” mode, to make sure ‘[‘ is not replaced by its html-equivalent.
When not showing in the frontend: check your logfiles, your browser console, show a demo etc … (see the forum post guidelines: https://www.e-dynamics.be/wordpress/forums/topic/forum-post-guidelines/ )Mon 4 Feb 2019 at 15:38 #59557AnonymousInactiveAdding the following YT embed code results (text mode, of course) in it being deleted when saved:
<iframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/F530hd0Ho0U” frameborder=”0″ allow=”accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture” allowfullscreen></iframe>
Adding [embed]https://www.youtube.com/watch?v=F530hd0Ho0U[/embed] and saving leaves the code untouched so it’s still there but invisible in the front end (any browser!)
https://www.jazzclub-bruchsal.de/events/martin-meixner-matchtape-organ-trio/
Embedding used to work perfectly before the latest update (see old event https://www.jazzclub-bruchsal.de/9-5-2019-martin-meixner-matchtape/) and still works in articles:
https://www.jazzclub-bruchsal.de/9-5-2019-martin-meixner-matchtape/
Thanks!
Mon 4 Feb 2019 at 17:24 #59558FrankyKeymasterthe iframe part: if wordpress allows it, then EME allows it (the same if it doesn’t). It used to be less strict, but wordpress made some remarks about this.
I’ll test the shortcode thing later on this evening. I’m in fact running sanitize_textarea on that field …
Like I said: maybe it is too strict now …Tue 5 Feb 2019 at 23:57 #59577FrankyKeymasterI tested everything, but could not reproduce your problem
Wed 6 Feb 2019 at 09:07 #59584AnonymousInactiveThank you very much!
So I can only assume that the issue has to do with one of the other plug-ins used. I may give this a try and switch them off one by one.Wed 6 Feb 2019 at 09:52 #59585FrankyKeymasterThere is a wordpress plugin called “Health Check & Troubleshooting”, that allows you to deactivate all plugins just for your session (and then you can reactivate in your sessions e.g. EME and see if it works).
Tue 21 May 2019 at 14:37 #59929AnonymousInactiveI have this same issue – youtube videos aren’t showing up when added to the event details – tried with the [embed] code and with youtube iframe code.
The code I’m using works in normal posts.
Tue 21 May 2019 at 14:46 #59930FrankyKeymasteriframe probably gets removed by wordpress. You can allow it via the EME settings “Extra html tags” (there’s an example in it).
I’ll retry the emebed-example.Tue 21 May 2019 at 14:49 #59932AnonymousInactiveJust found that. It’s working with the iframe source now but not if you add with the standard wordpress embed method.
Tue 21 May 2019 at 17:30 #59933FrankyKeymastercan you try by adding embed there too (with the same options as iframe)?
Tue 21 May 2019 at 17:36 #59934AnonymousInactiveNot quite sure what you mean, but in the event I have two versions to test it for you like this:
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/TMP-GdW3_iQ?controls=0" frameborder="0"></iframe> [embed]https://youtu.be/TMP-GdW3_iQ[/embed]
The iframe one works now I added the extra html tags, but the embed one doesn’t do anything.
Tue 21 May 2019 at 18:05 #59936FrankyKeymasterI mean by adding embed to the extra html tags too
Edit: never mind, apparently that doesn’t work. It seems some extra stuff needs to be done to render the embed tags, but I can’t fine any doc on that part.
Tue 21 May 2019 at 20:30 #59938FrankyKeymasterOk, I finally figured out the problem. I’m changing a lot of code for this (removing custom filters and more using the wordpress ones), so this needs some testing before I release it 🙂
Thu 23 May 2019 at 10:37 #59941FrankyKeymasterThis is now fixed in the latest release.
Fri 24 May 2019 at 12:24 #59948AnonymousInactiveYes that’s working on my site Franky – thank you
🙂
Mon 30 Mar 2020 at 18:34 #61040AnonymousInactiveHi, is it possible to allow [embed] in templates as well? When I allow iframe, then iframe works well. But [embed] is working only in event description.
Explanation: I need to insert video into every event by default with link that is inserted as custom field. I can do it with iframe (after adding relevant tags), but was looking for the solution for a bit longer time than necessary. Allowing [embed] tags would be future proof.
Mon 30 Mar 2020 at 19:59 #61043FrankyKeymasterI don’t understand your question, embed seems to work just fine in my templates.
-
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.