For everything related to documents, images, audio and video.

Thumbnails for manually embedded youtube files as embedded object format from youtube

I put this code in a comment but wanted to share a better version here.

This is a code which needs to be modified and put within your code requirements. I created this code because the site was already using embedded youtube files but needed to show thumbnails as a teaser, efficiently.

First you need to install imagecache module to be able to resize the image realtime.

You can put this code in a theme function where you like to show the thumbnails and call this function within your .php.tpl file, if not already done.
$node variable needs to be as a reference to the function.

Considering the first array for the CCK content field name is field_embedded_link, you can change this by checking your field name. You can also uncomment print_r($field) and see the array.

<?php
$title_size = 45;
$field = get_object_vars($node);
$matches = array();
$match = '';
//print_r($field); // you can uncomment this part to show the fields
if (preg_match("/youtube/i", $field['field_embedded_link'][0]['value'])) { //
preg_match('/(http:\/\/www.youtube.com\/v\/)(.+)(\"><\/param> $match = trim($matches['2']);
$fieldthumb = 'files/youtube/t' . strtolower($match) . '.jpg';

YouTube: Windows Move Format to Flash Format

Hey everyone:

Is it true that YouTube requires uploaded movies to be in Flash format? If so, how do I convert movies made with Windows Movie Maker to Flash format?

PDF to HTML

Hey everyone,

Does anyone know of a good utility that will convert .pdf files to .html files without losing the orginal format? I'm finding that tables are not being converted well with some of the programs I've tried.

Also, is Adobe the only way to convert .DOC files to PDF files?

Seperate Drupal install on back-end to handle image/file uploading, security etc.. Private vs Public filesystem

I recently joined up with a team to develop a large site where users can upload their own pics to galleries,
may be going up to 1000 users in maybe 6 months to a year (est.) However they may be having pay-for-downloads,
copywritten MP3s and other stuff in the future .. Right now the site is set to use "private" filesystem,
but its really slow, we need all the speed we can get. BTW Im relatively new to Drupal.

Another Drupal developer had an idea - setting up a seperate Drupal install on the backend, maybe in a sub-domain install that would be set to Private file-system and handle security of files etc.. The main site people see would be set to Public filesystem for speed etc.. when users upload/download files it would be getting them from the backend Drupal site. Any ideas, input on how yourselves would go about setting up such a system... ? I'm assuming this could be 2 Drupal installs using same database?

The situation is complicated by the fact that the site was set to private from the get-go, and both the current "files" directory and the sub-domain that Drupal site sits in are side by side folders in the root - there is no site in the root
of the hosting account (im new to the project) I am not looking forward to breaking all the image links in the site. Better now than later?

I cherish your feedback,

Thanks and cheers

Jeremy

Mass file upload through ZIP, extracting on the server and translating folder structure to taxonomy?

Hi,

I am new to module development, have been making some tweaks to existing modules so I get the basic idea.

What I currently need most for a site that is largely used for document management is the capability for users to upload large amounts of files simultaneously. The approach I was thinking of would be to have a node type called "bulk upload" that takes attachments in the form of a .zip archive.

Once the zip file is uploaded and the node created, the module should extract the zip file and transform its content into Drupal nodes. If the archive has a flat hierarchy, the files should be added as single attachments to the node. If the archive has a folder structure, the module should ideally recreate the folder structure as taxonomy terms - their parent term being the parent term of the "bulk upload" node created. For this to work, it would either need to be required to select a taxonomy term for that node, or the module would need to create a new vocabulary to accomodate the file folder structure. In this scenario, the single "child" nodes that result from the bulk upload will be prefilled with all settings entered for the bulk upload node (i.e. i80n, publishing options etc.) and can obviously be edited manually later.

Three and a half questions:
1) Does this make any sense?

Controls for flv files

I would like to know how do you get the controls to show up in flv video files. I created flash files which I call interface I made that call on the flv files instead of uploading flvs via http. I played the flash file that calls on the flv video file on my local computer and I was able to see the controls in the flash file. I can't see it though when I play the same flash file on my site. I uploaded the flv file to the file/flash folder and then I created flash content for the flash that calls on the flv.

Pages

Subscribe with RSS Subscribe to RSS - Deprecated - Media and document management