Oferta Nacional - 234x60

Arquivo

Textos com Etiquetas ‘embed in wordpress’

Embed Object – a WordPress plugin to embed youTube videos and flash

21, novembro, 2009 12 comentários
Lomadee, uma nova espécie na web. A maior plataforma de afiliados da América Latina.

Atualização do Plugin – Plugin Update

English
Embed Object was uptadet to version 1.3, and now, it works on any content of your blog, including rss

Português
Atualização para a versão 1.3: agora o plugin Embed Object funciona em qualquer parte do seu blog, incluindo feeds rss.


ENGLISH

With this plugin you can easily embed flash objects and YouTube videos in your wordpress blog. You can use it in posts and pages, and you can use any attribute that you want, like FlashVars and wmode, and others.

To use it is very simple

[embeded: src="http://www.example.com/yourfile.swf" width="560" height="340" ]

This will write the HTML code below:

<object width="560"  height="340">
	<param name="movie" value="http://www.example.com/yourfile.swf"></param>
	<embed src="http://www.example.com.br/yourfile.swf" width="560" height="340"></embed>
</object>

You can use other attributes

[embeded: src="http://www.example.com/yourfile.swf" wmode="transparent" allowscriptaccess="always" allowfullscreen="true" FlashVars="foo=Hello%20Worldgraph=first+line%0Dsecond+line" width="560" height="340" ]

This will write the HTML code below:

<object width="560"  height="340">
	<param name="movie" value="http://www.example.com/yourfile.swf"></param>
	<param name="wmode" value="transparent"></param>
	<param name="allowscriptaccess" value="always"></param>
	<param name="allowfullscreen" value="true"></param>
	<param name="FlashVars" value="foo=Hello%20Worldgraph=first+line%0Dsecond+line"></param>
	<embed src="http://www.example.com.br/yourfile.swf" wmode="transparent" allowscriptaccess="always" allowfullscreen="true" FlashVars="foo=Hello%20Worldgraph=first+line%0Dsecond+line" width="560" height="340"></embed>
</object>

Installation

  1. Download the plugin at http://wordpress.org/extend/plugins/embed-object/
  2. Unzip the file, then upload embedObjet folder to the ‘/wp-content/plugins/’ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

Alternatively, you can install it using the options in the plugin section “install a plugin in .zip format” of wordpress panel.

Example with an youTube video

Below we have an youTube code to embed:

<object width="425" height="344">
	<param name="movie" value="http://www.youtube.com/v/NopuJ_OYjsk&hl=pt_BR&fs=1&"></param>
	<param name="allowFullScreen" value="true"></param>
	<param name="allowscriptaccess" value="always"></param>
	<embed src="http://www.youtube.com/v/NopuJ_OYjsk&hl=pt_BR&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed>
</object>

All that you need to do is:

[embeded: src="http://www.youtube.com/v/NopuJ_OYjsk&hl=pt_BR&fs=1&" width="425" height="344" allowFullScreen="true" allowscriptaccess="aways" ]

And you can see the result below:

With this plugin you’ll never need to do what the video above says!

Enjoy!

Licence

GNU GENERAL PUBLIC LICENSE


PORTUGUÊS

Com este plugin você pode inserir objetos flash e vídeos do youTube facilmente em seu blog. Você pode usá-lo em posts e em páginas, com qualquer atributo que você quiser, como FlashVars, para passar parâmetros ara o flash, e wmode, para transparência do background.

Para usar é muito simples

[embeded: src="http://www.exemplo.com.br/seuarquivo.swf" width="560" height="340" ]

Isto vai escrever o código HTML abaixo:

<object width="560"  height="340">
	<param name="movie" value="http://www.exemplo.com.br/seuarquivo.swf"></param>
	<embed src="http://www.exemplo.com.br/seuarquivo.swf" width="560" height="340"></embed>
</object>

E você pode usar outros atributos

[embeded: src="http://www.exemplo.com.br/seuarquivo.swf" wmode="transparent" allowscriptaccess="always" allowfullscreen="true" FlashVars="foo=Hello%20Worldgraph=first+line%0Dsecond+line" width="560" height="340" ]

Isto vai escrever o código HTML abaixo:

<object width="560"  height="340">
	<param name="movie" value="http://www.exemplo.com.br/seuarquivo.swf"></param>
	<param name="wmode" value="transparent"></param>
	<param name="allowscriptaccess" value="always"></param>
	<param name="allowfullscreen" value="true"></param>
	<param name="FlashVars" value="foo=Hello%20Worldgraph=first+line%0Dsecond+line"></param>
	<embed src="http://www.exemplo.com.br/seuarquivo.swf" wmode="transparent" allowscriptaccess="always" allowfullscreen="true" FlashVars="foo=Hello%20Worldgraph=first+line%0Dsecond+line" width="560" height="340"></embed>
</object>

Instalação

  1. Faça o Download do plugin em http://wordpress.org/extend/plugins/embed-object/
  2. Descompacte o arquivo e depois faça o upload da pasta embedObjet para o diretório ‘/wp-content/plugins/’
  3. Ative o plugin através do menu ‘Plugins’ do WordPress

Como alternativa, você pode instalar o plugin na opção “instalar um plugin no formato .zip” na seção de plugins do wordpress.

Exemplo com um vídeo do youTube Abaixo temos um código HTML fornecido pelo youTube:

<object width="425" height="344">
	<param name="movie" value="http://www.youtube.com/v/NopuJ_OYjsk&hl=pt_BR&fs=1&"></param>
	<param name="allowFullScreen" value="true"></param>
	<param name="allowscriptaccess" value="always"></param>
	<embed src="http://www.youtube.com/v/NopuJ_OYjsk&hl=pt_BR&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed>
</object>

Tudo o que você precisa fazer é:

[embeded: src="http://www.youtube.com/v/NopuJ_OYjsk&hl=pt_BR&fs=1&" width="425" height="344" allowFullScreen="true" allowscriptaccess="aways" ]

E você pode ver o resultado abaixo:

Com este plugin você nunca vai precisar fazer o que é dito no vídeo acima!

E isso é tudo!

Licença

GNU GENERAL PUBLIC LICENSE

Deixe seu comentário!

Posts Relacionados:

  • Nenhum
SEO Powered by Platinum SEO from Techblissonline