Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

YouTubeGallery and 2.4.2


Go to End


41 Posts   12448 Views

Avatar
Jeramie

Community Member, 34 Posts

13 June 2012 at 5:10am

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

Avatar
LisaB

Community Member, 28 Posts

13 June 2012 at 5:30am

Edited: 13/06/2012 5:32am

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!

Avatar
LisaB

Community Member, 28 Posts

13 June 2012 at 5:42am

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

Avatar
Jeramie

Community Member, 34 Posts

13 June 2012 at 6:24am

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

Avatar
LisaB

Community Member, 28 Posts

13 June 2012 at 8:09am

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!

Avatar
Jeramie

Community Member, 34 Posts

13 June 2012 at 8:32am

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

Avatar
LisaB

Community Member, 28 Posts

14 June 2012 at 11:37pm

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 :-(

Avatar
JamieV

Community Member, 1 Post

20 June 2012 at 2:00pm

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.