Posts Tagged cms

Drupal Fun: Auto generating playlist thumbnails from videos

Another exciting hurdle crossed in the Drupal world!  I’ve recently installed the Mediafront module to drupal so that I can have dynamic video playlists for specific users based on content being uploaded in their name.  It took a tiny bit of fiddling to get it all setup in views, nothing worth mentioning here that’s not mentioned all of drupal.org, but the real fun came from the need to have the thumbnails that appear in the playlist section of the player be automatically generated.   You see right now the only way to get your video playlist to have thumbs in it is to upload them manually and attach them to the video node they are associated with.  Pffffftttt I say to that!  This manual stuff is for the birds and doing things by hand sure as hell isn’t what I signed up for so we need to make a better way.

Introducing Media Mover!

If you don’t know what Media Mover is then you’re missing out.  This module is probably one of the most badass ones around depending on what you are using drupal for.  In this current situation it’s going to be our saving grace!  So I’m assuming that by this point you have your video content type setup, you are uploading videos just fine and they are showing up equally well in your Mediafront playlist as per your custom view that you’ve created to display them.

What you need to do now is to open up your video content type and manage the fields.  You are going to need to add a new file field with an image widget selected from the drop down list.  Call it thumbnail or something along those lines and add it into the mix.

Now you are going to need to download ffmpeg_wrapper and media mover and install all of the relevant modules.  Oh  I am also assuming that you have image cache enabled and all setup(who doesnt?) After this you need to go into media mover and create a new configuration which is going to automatically extra a thumbnail from our video and then put that in the thumbnail CCK field you would have created as per the instructions at the end of the previous paragraph, aka: Media Mover CCK module: Save data in a CCK field.  Choosing the thumbnail cck field to save it as.  I made the mistake here the first time of attaching my thumb to the node but that doesn’t work, it needs to go into that cck field that you created.

You can completely bypass the ‘complete’ operation of media mover as it’s done everything you need it to do and that’s it!  You should be able to run it and have it pull up any stray files that already haven’t been taken care of… You kmight want to go into display fields and hide the thumbnail field so it doesn’t show up when people go to the node.

Tags: , , , , , ,

Which WYSIWYG editor is right for your drupal site?

Well I just spent the past 2 hours testing every single editor in Drupal as it’s been about a year since I last went through them all and for whatever reason I can’t remember I wasn’t happy with Ckeditor / Fckeditor.

Well let you save you some time and tell you to just use CKeditor.  Actually Ck / Fck have merged so there is only Ckeditor now and it looks like it turned out for the better.  I posted about some bugs in Fckeditor a while back and so far I am seeing none in the new merged version.  This editor does everything you’re going to need and more, it looks great and best of all it’s the only one that actually Works 100%.  The rest either had limited functionality, or required me to edit .js files in order to enable more buttons or had varying degree’s of bugs in them that caused them to not work properly.

So, head over to http://ckeditor.com/download and be damn happy that the one editor that does work the best with Drupal happens to be one of the all around best editors out there.

Tags: , , , , ,

Me, Myself and Drupal – Chapter 4 & 5: File Manager fun and tweaking Storm

Alright, what is this, day 10 since I started up the Drupal install, although really only day 5 since I’ve gotten serious with this beast.  The love affair has certainly been rocky but there might be an end in sight.  Today is the first day that I’ve gotten enough of the underlying systems in place that I am able to actually use one of them to help manage my team.   That’s right, I’ve officially crossed the line from setting up drupal 100% to using it.  It’s about a 80/20 split now between setup and usage, but still a start!

Day  4 was spent mostly trying to get a File Manager to work.  In the end I really settled on IMCE as it just had a shit ton more functionality to it with a lot of supporting modules made.  Oh, just so you know the two main choices are:

IMCE: http://drupal.org/project/imce

WebFM: http://drupal.org/project/webfm

Again, the reason I chose to go with IMCE, although WebFM had some promise is that IMCE just looked more robust with a lot more features.  In the end however it didn’t matter as IMCE didn’t work at all.  I was able to browse the file system with it, but uploading wasn’t going to happen.  The module installed fine, but the upload button, while clickable, didn’t do anything.  I also installed the IMCE_swfupload module that allows multiple uploads but that two didn’t work.  There was a fair bit of research done all over the place both in IMCE and with swfupload that led to no solution whatsoever and after 6-8 hours I called it quits on this module.

On the bright side WebFM does allow me to upload, however it is limited to single file uploads which really does make the module fairly useless as I may as well just attach them to notes,pages, books or whatever I am working on.

Now in regards to that 20% work I was able to do with Drupal it involved inputting some tasks into Storm.  Although this only came after a fair bit of wrestling.  Mostly because I stumbled across the Storm Conrib Module which adds a lot of functionality to Storm as well as the Storm Dashboard (which is so useful that I am scrapping the Rites of Spring theme all together in favour of a non-fixed width theme).  The problem was that a whole shwack load of modules needed to be added in order for these to work properly.  Notably the mysterious ‘Content’ module, which is notoriously hard to track down.  Trying doing a search for ‘Content’ under the modules section and see how many results come up.  I’ll save you some time and tell you that when you see a module that requires ‘Content’ it is actually referring to CCK or the ‘Content Construction Kit‘ .  Once I figured that out things started to slide a little smoother.  Actually a lot of modules will need CCK so you’re well off just to install it by default.  The ‘Date‘ module was also needed and so I plopped that into my drupal as well.  Lastly for my Project Management it is critical that my team members are notified when they are assigned new tasks or their current tasks are updated.  This one was a little harder to track down as it isn’t an official module yet but if you scroll down here: http://drupal.org/node/637852 you’ll be able to find it.

The vast majority of my work was trying to wrangle with IMCE and WebFM, which in the end was frutiless and I’ve decided to just go down the incredibly more complicated route and install a full SVN on my server.  Of course I’ll need to then teach my team how an SVN works(after, of course, I tech myself how an SVN works).  On the bright side there is a Drupal SVN so I’m keen to see how it integrates into Drupal.  My first order of business after the SVN is setup and running on it’s own is to watch this video: http://gotdrupal.com/videos/drupal-cvs-svn-setup .

More fun awaits!

http://drupal.org/project/date

Tags: , , , , , , ,

Page optimized by WP Minify WordPress Plugin