![]() |
|
zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: zpBootstrap/Fancybox - play Youtube videos directly - should be able to work (/thread-13250.html) Pages:
1
2
|
zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - acrylian - 17-01-2019 I can't answer without understanding what you exactly like to do and why you need a textobject class similar class. Generally if it is theme specific it should be part of the theme which is of course problematic since file types are core domain. Perhaps mail me directly about this. zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - sbillard - 17-01-2019 Vince: You can create a class in your theme zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - tplowe56 - 18-01-2019 Vincent, Thanks so much for your efforts, (and the rest of the ZP crew that are helping). If you need any help testing just shoot me an email. I have everything running locally on Xampp so I can test easily. I've been following along, because of my interest. I'm hoping your coding for handling YouTube video? I have hosted my own mp4's on my shared server in the past and the playback is always terrible. That's why I switched to Youtube which is very robust and it's free. You can create playlists in your YouTube account, and if you use the proper embed code, your playlist is available in a popup menu on the screen.
BTW I really like the zpBootstrap theme. Works so well on all devices. Seems like Fancybox & Bootstrap are both adaptable for YouTube vids, but I don't understand coding, so I am no help. http://fancyapps.com/fancybox/3/docs/#video https://getbootstrap.com/docs/4.1/utilities/embed/ zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - vincent3569 - 18-01-2019 @acrylian: I have to get the src content in the txt file content (of course, if that file have an embed code to online video like ``) @sbillard: so, as I don't want to create a sidecar plugin for my theme, I found another solution (really more simple!): create a local function to suit my needs. @tplowe56: Of course, I know my theme works on all devices (I created it for that!). zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - vincent3569 - 18-01-2019 I need to test little more and package my improvement, but you can the the result here: https://test.vincentbourganel.fr/images/illustrations/. a click on the thumb enable to see the video with fancybox and a click on the video name (youtube or vimeo) enable to see it in image page with responsive behavior. zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - acrylian - 18-01-2019 @vincent3569: Basically the normal fullimage function gets/prints the content of the textobject so you could just use the "get" version to get the url and then create the output fancybox needs. zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - vincent3569 - 18-01-2019 @acrylian: I created a personnal function for that, and it works fine. Have a closest look to my previous post. zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - acrylian - 18-01-2019 @vincent3569 I didn't say anything of the url actually. zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - vincent3569 - 18-01-2019 the text file content have to follow the patern:
with but nevermind, I got the right code and it works. zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - acrylian - 18-01-2019 Not if you only store the youtube url in the textobject and have a theme function handle the actual html setup required for fancybox. zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - vincent3569 - 18-01-2019 as far I can see, the tip for online video managed by textobject requires to store the full embeded code, not only a link to the video. zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - acrylian - 18-01-2019 Ok, didn't know it is that different, then some text processing is needed in any case unless you store it right away. zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - vincent3569 - 23-01-2019 zpBootstrap now supports video online (Youtube and Vimeo): zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - vincent3569 - 24-01-2019 sorry, there was a wrong url. zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - tplowe56 - 25-01-2019 Thanks for your hard work Vincent! Working on some fine tuning. But looks really good!!! |