how can we have the embed code feature for users to grab and put the video on their sites ?

Comments

Stuart Greenfield’s picture

Status: Active » Postponed

I am guessing that you mean the cut and paste codes like you see on, say, YouTube, for linking? I'm going to put this on hold as I have a lot of other stuff going on at the moment, but if someone out there can put together a patch that would be great :-)

gausarts’s picture

Version: 6.x-1.3 » 6.x-2.x-dev

Would be a great feature for swftools, and hope it will be implemented in the 6.x-2.x-dev. Thanks

Stuart Greenfield’s picture

Category: support » feature
Priority: Critical » Normal
Status: Postponed » Active

I am going to change this back to "open". I'm doing some major work on SWF Tools at the moment to integrate with SWF Object API. As part of that change it makes sense to implement the embed code feature.

The only problem is I'm not quite sure how to implement it!

Off the top of my head, it needs to be an option that you set when calling the swf function, and that returns the string of text. Ideally you don't want it rendered by default so you can style it and theme it.

Maybe we need a separate call to swf that instead of returning markup returns the string...

Does anyone have any thoughts/ideas so I can try to get this right first time??

Note - changing to Feature Request and priority normal. I like to leave Critical for those things that have broken an existing version of SWF Tools and are preventing it from working!

gausarts’s picture

Hi,

Flashvideo.module has a flashvideo-embed.tpl,

<strong><?php print flashvideo_variable_get($node_type, 'embedtext', 'Embed:') ?></strong>
<input id="embed_code" type="text" size="<?php print flashvideo_variable_get($node_type, 'embedsize', 40); ?>" value='<?php print $object; ?>' class="vidURLField" onClick="this.focus();this.select();" readonly="true">

Would it be possible to reproduce one in swftools? Any direction would be very helpful.

Thanks

gausarts’s picture

With flashnode module in place, I can get it to work with:

      <input id="embed-<?php print $node->nid; ?>" type="text" size="20" value='<?php  print theme('flashnode', $node->flashnode); ?>' class="vidurl" onClick="this.focus();this.select();" readonly="true">

But I prefer to have swftools output a themable function, of course. So I'll be very happy if this is implemented whenever possible.

Thanks

infines’s picture

Version: 6.x-2.x-dev » 6.x-3.x-dev
Priority: Normal » Major

Is this going to happen? It would be great for D7.