Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

4792 Posts in 907 Topics by 813 members

All other Modules

SilverStripe Forums » All other Modules » For all who want YouTube on 2.3

Discuss all other Modules here.

Page: 1 2 3
Go to End
Author Topic: For all who want YouTube on 2.3 1157 Views
  • Matt Hardwick
    avatar
    Community Member
    61 posts

    For all who want YouTube on 2.3 Link to this post

    I downloaded the current stable and changed line 173 in YouTubeService.php from

    $current_url = Director::currentURLSegment(); to $current_url = Controller::curr()->URLSegment;

    This means I can still have side navigation, and it doesn't load up full screen because the JavaScript includes are busted on the later versions.

  • Adsum
    avatar
    Community Member
    3 posts

    Re: For all who want YouTube on 2.3 Link to this post

    Thank you very much, Matt. Works fine! This solved my problems with YouTube Gallery 0.1 on Silverstripe 2.3.

  • Matt Hardwick
    avatar
    Community Member
    61 posts

    Re: For all who want YouTube on 2.3 Link to this post

    I have since noticed that the times are screwed... So a video that is 1:55 is put as 1.9 minutes. When I figure out how to sort it I will post. Also pagination isn't working.

  • Flynn42
    avatar
    Community Member
    1 posts

    Re: For all who want YouTube on 2.3 Link to this post

    Thanks Matt! I was having similar problems with the youtubeservice module. You saved me from multiple days of coding hell!

  • Briohny
    avatar
    Community Member
    167 posts

    Re: For all who want YouTube on 2.3 Link to this post

    Hey Matt... what about 2.2.3? Does YouTube module work with this version. I installed it and after db/build etc the YouTube page produces the following error:

    Fatal error: Call to undefined function curl_init() in C:\wamp\www\mccools\sapphire\api\RestfulService.php on line 83

    Any ideas?

  • Matt Hardwick
    avatar
    Community Member
    61 posts

    Re: For all who want YouTube on 2.3 Link to this post

    I would guess that is actually something more to do with your install, as it looks like a CURL error, and is not something related to the problem outlined in this thread.

    Are you using the stable version of YouTube??

  • Briohny
    avatar
    Community Member
    167 posts

    Re: For all who want YouTube on 2.3 Link to this post

    Yes, it's v0.1.0

    I'll try uninstalling and re-installing again to check. Will get back to you. Thanks.

  • Briohny
    avatar
    Community Member
    167 posts

    Re: For all who want YouTube on 2.3 Link to this post

    No, still not working. I did a fresh install. Same error. I noticed that the YouTube documentation says to use SS v2.2.0 but you got it to work with 2.3. Any ideas?

    1157 Views
Page: 1 2 3
Go to Top

Currently Online: There is nobody online.

Welcome to our latest member: Newclear

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

Comments on this website? Please give feedback.