Hey there -

I'm specifically trying to set meta information to the URL of the thumbnail image.

That's pretty specific, but I feel like it might be very helpful to have token support for the thumbnails.

imagefield includes token support, and has been very helpful.

Anyone else think this would be useful?

CommentFileSizeAuthor
#11 emvideo.token_.inc_.txt2.04 KBCoreyMoore
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Alex UA’s picture

Version: 6.x-1.24 » 6.x-2.x-dev
Component: Embedded Video Field » Embedded Media Thumbnail
Status: Active » Needs work

This is a good idea, and something I would definitely but for now I just have two comments:
- Patches are welcome! Please patch against the 2.x-dev version, as that is the most active development branch.
- The component here is EmThumb

Andrew Kaufmann’s picture

Wait, wait... I thought I would just ask for a feature and the community would magically implement it, using the unlimited resources of the interpipes and the faceless masses thereon.

You're suggesting I get off my duff and code myself??

Humph.

:)

I'll do a little research and see if I can figure out a good way to go about it, but as I'm sure you can relate, good intentions run high and time runs low. As such, I'll refrain from assigning to myself in case a more skilled code ninja wants to jump in, but will be looking into it timidly.

mardok’s picture

subscribe

marktheshark’s picture

I, for one, would be interested in using a token for the node title in the default thumbnail ALT/TILE field, as a workaround for the custom ALT/TITLE fields not working at all...

The configuration page does list a number of global tokens, but no tokens having to do with the actual node.

Subscribing

CoreyMoore’s picture

Has anyone taken this on yet? I believe this is a much needed feature (see: http://drupal.org/node/1146982). I have been working on this, but so far have been unsuccessful. Any help would be appreciated.

CoreyMoore’s picture

I would be willing to pay if someone could do this soon.

CoreyMoore’s picture

Ok, I hired a developer for this. I don't know how to create a patch file, but I'll upload the inc file he sent me as well as instructions on how to add it to the module.

  1. Upload the emvideo.token.inc file to the emvideo folder
  2. Put the following code in emvideo.module
    if (module_exists('token')) {
    module_load_include('inc', 'emvideo', 'emvideo.token');
    }
    
  3. Clear cache, run cron

This doesn't produce the thumbnail outright; rather it gives you the URL of the thumbnail, which is useful if you are using this with Heartbeat and want to link the thumbnail to it's respective node. Furthermore, this adds token support for many of the other parts of the embedded video, including the title, url, provider, duration, description, etc.

CoreyMoore’s picture

Status: Needs work » Active
vasrush’s picture

Can you upload the inc file too, please

This would be a great feature for me too.

reysharks’s picture

subscribing :)

CoreyMoore’s picture

FileSize
2.04 KB

Wow, I feel like an ass. I thought I uploaded this a long time ago.

Just remove the .txt extension from the file.

dooleysarahe’s picture

@CoreyMoore - do you know where in emvideo.module that snippet should go?