Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » YouTubeGallery and 2.4.2

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3 4 5 6
Go to End
Author Topic: 6179 Views
  • Jeramie
    Avatar
    Community Member
    34 Posts

    Re: YouTubeGallery and 2.4.2 Link to this post

    Is your site live somewhere that I could access and review?

  • LisaB
    Avatar
    Community Member
    28 Posts

    Re: YouTubeGallery and 2.4.2 Link to this post

    Hi Jeramie, looks exactly the same as far as I can see:

    <a params="lightwindow_width=640,lightwindow_height=390,lightwindow_loading_animation=false" href="http://www.youtube.com/v/zq_QtIvAskI?version=3&amp;f=playlists&amp;app=youtube_gdata&amp;rel=0" class="lightwindow">
                               
                                  <img src="http://i.ytimg.com/vi/zq_QtIvAskI/0.jpg" alt="" width="100" height="75">
                               
                            </a>

    This is on a log in area of the site but I made one of the pages public so you could take a look. However, when I log out of the site something funny happens and no videos show. I'll look at it now and post a link in a mo when it works!

    Thanks again for helping!

  • LisaB
    Avatar
    Community Member
    28 Posts

    Re: YouTubeGallery and 2.4.2 Link to this post

    Okay, here's a sample youtube gallery page that does now show some videos!

  • Jeramie
    Avatar
    Community Member
    34 Posts

    Re: YouTubeGallery and 2.4.2 Link to this post

    Is there a reason you are calling the jquery file from inside your mysite folder rather than the one included in the CMS. It appears that its being called inherently for the page type. Try and take out the requirement statement and do a dev/build?flush=all

  • LisaB
    Avatar
    Community Member
    28 Posts

    Re: YouTubeGallery and 2.4.2 Link to this post

    Great spot Jeramie, I expect there was a reason I had that requirement in my page.php at some point, but I can't for the life of me think what it would have been. It was probably a copy-paste job from someone's forum post back when I had even less clue of what I was doing with SilverStripe than I do now! Anyway, removing it fixed my lightwindows, many many thanks!

  • Jeramie
    Avatar
    Community Member
    34 Posts

    Re: YouTubeGallery and 2.4.2 Link to this post

    Awesome, glad to help. Good luck with the site going forward!

  • LisaB
    Avatar
    Community Member
    28 Posts

    Re: YouTubeGallery and 2.4.2 Link to this post

    Thanks Jeramie... I'm afraid I have a further question though (you have become a victim of your own helpfulness!)!

    I think it's possible that superfluous js requirement from my page.php might have had something to do with a failed attempt to get the video gallery working on iphones and ipads. Now that, thanks to you, I have my lightbox back, I don't want to go back to ugly full screen non popup videos just so they'll load in the iDevice youtube app. However, the site is likely to be used quite a lot on these devices and as it stands they'll show a lightbox but no video.

    I don't have masses of time to sort this out so ideally I am looking for a fairly simple solution. My previous attempt I think tried to auto-detect the device but I never got it working or even close. The other thought I had was to use HTML5 so that ipads etc can play the video within the lightbox (preferable to using it's youtube app), but I'm not sure if this is doable or how to accomplish it using the youtube gallery module as in using the api there is no conventional youtube link or embed code...I think?

    As always any help would be much appreciated, otherwise I am back to ugly full screen vids

  • JamieV
    Avatar
    Community Member
    1 Post

    Re: YouTubeGallery and 2.4.2 Link to this post

    Hi, I have this module working but could someone help me get the pagination to work?

    The code below is in the YoutubeGallery.ss file.. what's needed to make the page numbers etc. show?

    <div class="pages">
       <div class="paginator">
                   
       </div>
       <span class="results">($YoutubeVideos.Count Videos)</span>
    </div>

    Thanks for any help.

    6179 Views
Page: 1 2 3 4 5 6
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.