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.

All other Modules /

Discuss all other Modules here.

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

YouTubeGallery and 2.4.2


Reply


41 Posts   6540 Views

Avatar
bettsaj

Community Member, 46 Posts

23 August 2011 at 5:28pm

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

Avatar
bettsaj

Community Member, 46 Posts

3 September 2011 at 2:01am

Edited: 03/09/2011 2:01am

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

Avatar
Jeramie

Community Member, 34 Posts

3 September 2011 at 3:15am

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

Avatar
bettsaj

Community Member, 46 Posts

11 September 2011 at 7:51pm

Edited: 11/09/2011 10:24pm

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?

Avatar
Jeramie

Community Member, 34 Posts

13 September 2011 at 8:34am

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.

Avatar
bettsaj

Community Member, 46 Posts

18 September 2011 at 5:33pm

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?

Avatar
bettsaj

Community Member, 46 Posts

22 September 2011 at 11:35pm

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.

Avatar
Jeramie

Community Member, 34 Posts

24 September 2011 at 2:50am

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.