Jump to:

10930 Posts in 2613 Topics by 1810 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: 5993 Views
  • bettsaj
    Avatar
    Community Member
    46 Posts

    Re: YouTubeGallery and 2.4.2 Link to this post

    What's the best way to remove the old version module... table dropping??

  • bettsaj
    Avatar
    Community Member
    46 Posts

    Re: YouTubeGallery and 2.4.2 Link to this post

    BUMP!... sorry... any ideas how you remove a module??

  • Jeramie
    Avatar
    Community Member
    34 Posts

    Re: YouTubeGallery and 2.4.2 Link to this post

    To remove a module, simply remove the folder and then run a dev/build. If you need more detailed instructions, check the Silverstripe docs.

  • bettsaj
    Avatar
    Community Member
    46 Posts

    Re: YouTubeGallery and 2.4.2 Link to this post

    Ok.... I've removed the old module, run a dev/build and that seemed to remove all the old lines from the database. i then downloaded the youtubeservice2 file, renamed it to just youtubeservice and re-uploaded.

    run dev/build, and it's re-installed the module fine. I still have the formatting issues though on the page.

    http://www.christinafrench.com/video/

    HELP!!... Any one got any ideas?

  • Jeramie
    Avatar
    Community Member
    34 Posts

    Re: YouTubeGallery and 2.4.2 Link to this post

    looks like the youtubeservice.php file isnt passing the proper thumbnail size. Go to that file under the module >code folder open it and go to line 343

    Change this

    $data['SmallThumbnail'] = new ArrayData(array(
             'URL' => Convert::raw2xml((string)$thumbnailObjs[0]['url']),
             'Width' => (int)$thumbnailObjs[0]['width'],
             'Height' => (int)$thumbnailObjs[0]['height'],
          ));


    to

    $data['SmallThumbnail'] = new ArrayData(array(
             'URL' => Convert::raw2xml((string)$thumbnailObjs[0]['url']),
             //'Width' => (int)$thumbnailObjs[0]['width'],
             //'Height' => (int)$thumbnailObjs[0]['height'],
             'Width' => 100,
        'Height' => 80,
          ));

    Tell me if that works for you.

  • bettsaj
    Avatar
    Community Member
    46 Posts

    Re: YouTubeGallery and 2.4.2 Link to this post

    Jeramie,

    Thanks.. That worked a treat. You may want to up issue your latest release to include this line in the file, as it seems to be a requirement of this release of SS.

    On a second note though, is there a way of increasing the size of the font of both the link and the text body?.... or would this be controlled by the template?

  • bettsaj
    Avatar
    Community Member
    46 Posts

    Re: YouTubeGallery and 2.4.2 Link to this post

    I still can't figure out what needs to be changed to increase the font size on the video page. i've run a check using Firebug and it's telling me that it's the layout.ss file in the template/wine/ directory. There must be something overriding this in the video template or CSS file as all the other pages are fine, it's just that page that has incredibly small font.

  • Jeramie
    Avatar
    Community Member
    34 Posts

    Re: YouTubeGallery and 2.4.2 Link to this post

    bettsaj,
    To change the fonts settings, you will need to edit the css file and define the settings you want there. I believe the titles are a H6 and the text is just a paragraph. The module has a css file called Youtubemodule.css or something to that extent. Create you changes there. If all you see is the layout.ss files in firebug, odds are you aren't inspecting the right element or didn't scroll down far enough on the right side to see the css portion. If you need some more help with formatting, there are some pretty good guides under the docs for silverstripe.

    Hopefully this helps you get moving in the right direction.

    5993 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.