![]() |
|
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 - tplowe56 - 13-01-2019 I have one album & sub-albums devoted to YouTube videos. I use the method using class-textobject, which uses a jpg file and a text file with the YouTube embed code, that are named exactly the same. This works fine if you click on the file name link below an image, but not if you click directly on the image (when using zpBoostrap). I have been reading the Fancybox documentation that states that fancy box handles YouTube links quite easily. Anyone have ideas if this could be implemented in Fancybox if the correct code is used in the text file? My current text is very simple, but it gives an error from Fancybox. Here is the documentation for video on Fancybox: http://fancyapps.com/fancybox/3/docs/#video Thanks zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - acrylian - 13-01-2019 If I read correctly you should add something like this zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - tplowe56 - 13-01-2019 Pretty sure I tried that. But it seems like if ZP hands off that code to Fancybox it should play the video. I will look at Fancybox settings in zpBootstrap next. zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - tplowe56 - 13-01-2019 Did a quick look through the Fancybox javascript and it appears that processing youTube videos is quite robust. It must be something simple to get Fancybox to trigger the the YouTube video. zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - vincent3569 - 13-01-2019 I am afraid I never used this feature of zenphoto. as requested before, can you provide a link to have a look? zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - tplowe56 - 14-01-2019 Vincent my gallery is private. I have sent you address & credentials via the contact form on your personal gallery. zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - tplowe56 - 14-01-2019 Hosting videos via YouTube is quite a bit better at serving to users than hosting videos on a shared server. The method I mention above is quite simple. If it was just adapted to Fancybox it would be a good feature. The Fancybox code looks like it is designed to handle media from many, sources, just need to implement the proper code that transfers the link from ZP to Fancybox. zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - vincent3569 - 14-01-2019 hi zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - acrylian - 14-01-2019
Then it might be a JS rebinding issue but I don't think because textobject is server side so all ready when Fancybox is initated. Review the code the theme produces if yo add the fancybox html discussed above. Textobjects are really code agnostic. You can enter any html and it is basically just printed out instead of the sized image on image types. You should really try this in a standard theme. If it works there it is something different in VIncent's theme (which I am not familar with). zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - vincent3569 - 14-01-2019 ok, I understand: you use class-textobject with embeded code to your videos on youtube (https://forum.zenphoto.org/discussion/1409908/embedded-youtube-videos-no-longer-displaying-on-mobile-devices), using a tip of zenphoto (https://www.zenphoto.org/news/using-external-sources/#using-videos-from-youtube-or-other-portals). the best way to help you is to give the full context of your use case as it is not a standard behavior of zephoto! I will have a look... zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - acrylian - 14-01-2019 Well, those are suggestions. textobject usage itself has no standard behaviour except outputting its content instead of the normal image. @vincent3569 Sidenote: I just wanted to try myself and somehow I could not activate the theme. Reason was that the folder/archive downloaded from Github is named zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - acrylian - 14-01-2019 @tplowe56 I now understand what you tried. It tries to open the file directly this way which of course is not working. It will require the theme to handle non image files differently by outputting the textobject html directly on the thumb view. It might be possible to have the full-image.php return the content if protected full image view is enabled. Will take a look when I get the time. zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - tplowe56 - 14-01-2019 Just FYI, the Basic theme presents YouTube videos just fine when clicking on a thumbnail. I have use this method for years, but I have set that video album to use the basic theme. The code I use in the text file looks like this: [code][/code] zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - acrylian - 14-01-2019 Yes, because the basic theme uses the image page itself and not any *box script like zpBoostrap that opens the file itself (the "full image" which in this case is not an image but a text file). zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - vincent3569 - 15-01-2019 hi
to improve my theme to open video with fancybox in zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - acrylian - 15-01-2019 You can quite easily check if it is a real image or another "image" type within the zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - vincent3569 - 15-01-2019 thanks malte zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - vincent3569 - 17-01-2019 hi zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - acrylian - 17-01-2019 Best check the suffix using zpBootstrap/Fancybox - play Youtube videos directly - should be able to work - vincent3569 - 17-01-2019 hi again, to manage online video with my theme, I would like to create a new class, quite similar to the class-textobject class. rather than this solution, is it possible to create it directly in my theme? thank you in advance for your help. |