GIF Skyrama BR 01 300x250
Página Inicial > wordpress > insereIframe: a simple wordpress plugin to insert iframe in posts

insereIframe: a simple wordpress plugin to insert iframe in posts

English

A simple way to insert iframes in your wordpress posts

How to install

Download http://blog.idealmind.com.br/exemplos/plugins_wordpress/insereIframe/insereIframe_v1.5.zip

Unzip the file to your /wp-content/plugins/ directory

Activate plugin

Usage

To insert an iframe in your post, insert the code below in the place that you want the iframe (without spaces between [ and iframe: ):

[ iframe: src="http://www.example.com" frameborder="0" width="100%" height="200" scrolling="no"]

You can set any attribute that you want (see a list of possible attribues in http://www.w3schools.com/TAGS/tag_iframe.asp).

Enjoy!


Português

Uma forma muito fácil de inserir iframes nos seus posts do wordpress

Como instalar

Faça o download em http://blog.idealmind.com.br/exemplos/plugins_wordpress/insereIframe/insereIframe_v1.5.zip

Descompacte o arquivo na pasta /wp-content/plugins/

Ative o plugin pelo wordpress

Como usar

Para inserir um ifame em seu post, no local em que você quer que o iframe apareça, insira o código como no exemplo abaixo (sem espaços entre [ e iframe: ):

[ iframe: src="http://www.exemplo.com" frameborder="0" width="100%" height="200" scrolling="no"]

Usando esse plugin, você pode usar todos os atributos de um iframe (veja http://www.w3schools.com/TAGS/tag_iframe.asp).

Lincense / Lincença

GNU GENERAL PUBLIC LICENSE


Related Posts Plugin for WordPress, Blogger...

Posts Relacionados:

Deixe seu comentário

  1. Don
    3, setembro, 2010 em 03:28 | #1
    Hi, I’ve been using iframe and love it, it has been working perfectly! However I had my WordPress blog installed in a separate directory (www.mywebsite.com/wordpress) and it worked fine, but when I tried moving the directory to the root using the Site address (URL) in the General settings, iframe won’t work, and gives this error message: Plugin could not be activated because it triggered a fatal error. Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ (my directory) on line 19.

    When I reverted my website back, iframe still won’t work and gives the same error. Then I tried reinstalling wordpress to my root and iframe still won’t work! Any ideas? iframe was working fine, but once I tried changing my directory structure it just won’t work now.

  2. Don
    3, setembro, 2010 em 14:50 | #4
    @Wellington Ribeiro

    yes, it does sound like it’s corrupted, but i have deleted the plugin manually and re-uploaded my backup, same error message. then I’ve used the wordpress panel to delete and reinstall directy fronm wordpress, same error message. it’s almost like there’s some file hidden in there somewhere that is stuck. any other suggestions?

  3. El Te
    23, setembro, 2010 em 18:12 | #5
    Hi. On my site the iframe works fine in posts, however on category pages it shows the text of the code. How can I make it replace the code with some text like, “Click The title to view”. I dont want it to show the iframe on the category pages, just some text.

    Thanks

    • 6, outubro, 2010 em 23:00 | #6
      Hi!

      You can edit the plugin to do it:

      Change the code


      function insereIframe( $content )
      {
      $content = InsereIframe::substituiIframe( $content );
      return $content;
      }

      to


      function insereIframe( $content )
      {
      if( is_category() )
      {
      return false;
      }
      $content = InsereIframe::substituiIframe( $content );
      return $content;
      }

  4. El Te
    13, outubro, 2010 em 13:14 | #7
    @Wellington Ribeiro
    Hi, Thanks for that but it does not work. Still displays as normal the whole iframe code. Any ideas?
  5. James
    28, outubro, 2010 em 00:15 | #8
    Hi the html I used is displaying an iframe in wordpress fine but for some reason is just displaying the wordpress itself as an error page within the iframe rather then what the code is supposed to display(See html below). Can any one tell me what I am doing wrong? Cheers, James.
  6. 16, novembro, 2010 em 20:23 | #9
    Hello

    It works fine when I publish a normal url with http://alistairmills.com for example. However when I do one with https for example https://regonline.activeeurope.com/twocastlesrun2011 nothing display. When I look at the html on the web page, it appears to be there, but is invisible!

    Tem alguma idea? Falava portugues ha muitos anos quando trabalhava no Brasil mais, nunca falo porugues agora!

    Muito obrigado. Um abraco.

    Alistair

  7. Paul
    10, janeiro, 2011 em 14:16 | #11
    Hi , Great piece of code , but how would i center the iframe on my page please ? i’ve used your code in its most basic form , it currently is aligned to the left by default.

    thank you

  8. 27, abril, 2011 em 11:45 | #12
    embed iframe plugin is an other good option
  9. 12, maio, 2011 em 14:51 | #13
    I created the plugin to embed iframe into post content using such shortcode: [iframe width="640" height="480" src="http://player.vimeo.com/video/3261363"]. You can download it from WordPress plugin repository.
  10. aung
    14, maio, 2011 em 20:42 | #15
    @Alistair Mills
    I want a code of “Eyes-pupils” used in your website
    http://alistairmills.com/

    can you send me, that code?
    I would like to use it on my blog.

  11. 6, junho, 2011 em 10:08 | #16
    The link to the plugin is no longer found on WordPress site – can we still download it from somewhere else? Its a great plugin.
  12. 11, junho, 2011 em 22:15 | #17
    Greetings!
    Hope this finds you in positive light :)

    I’ve been searching for your insere iframe plugin…and can’t find it :(
    The download link seems to not exist…
    Is there another way to get your fabulous plugin?

    My appreciation,
    Aline

  13. 9, agosto, 2010 em 23:43 | #18
    thanks!
Página de comentários
1 2 195
  1. 8, abril, 2010 em 14:17 | #1
  2. 30, junho, 2010 em 12:06 | #2
  3. 5, julho, 2010 em 23:12 | #3
  4. 9, agosto, 2010 em 00:13 | #4
  5. 25, agosto, 2010 em 07:11 | #5
  6. 1, novembro, 2010 em 03:47 | #6
  7. 3, novembro, 2010 em 12:57 | #7
  8. 8, dezembro, 2010 em 06:57 | #8
  9. 29, dezembro, 2010 em 22:04 | #9
  10. 6, abril, 2011 em 04:15 | #10
  11. 23, abril, 2011 em 22:21 | #11
  12. 28, maio, 2011 em 10:56 | #12
  13. 26, setembro, 2011 em 12:07 | #13

SEO Powered by Platinum SEO from Techblissonline