1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Add Iframe into Custom BB Code

Discussion in 'Styling and Customization Questions' started by Punish, Feb 28, 2016.

  1. Punish

    Punish New Member

    Hello, Is it possible to add an "iframe" into a custom bb code?.

    In fact, I want to add this custom bbcode into a topic :
    I'm using this Simple Replacement
    HTML Replacement
    <iframe width="500" height="300" src="{text}" frameborder="0" allowfullscreen></iframe>

    but this show "XenForo Demo - Error
    The requested page could not be found."

    Example:
    http://3ca08239b80054f0.demo-xenforo.com/156/index.php?threads/custom-bb-code-iframe.1/

    bb code settings:
    http://3ca08239b80054f0.demo-xenforo.com/156/admin.php?bb-codes/custo/edit
    login-pass admin-admin

    PS: bbcode media sites will don't work for me.

    How Add "iframe" custom bb code into a topic please?

    Thanks in advance.
     
  2. Punish

    Punish New Member

    Hello, Is it possible to add an "iframe" into a custom bb code?. Bbcode media sites will don't work for me.

    In fact, I want to add this custom bbcode into a topic :
    I'm using this Simple Replacement
    HTML Replacement
    <iframe width="500" height="300" src="{text}" frameborder="0" allowfullscreen></iframe>

    but this show "XenForo Demo - Error
    The requested page could not be found."

    Example:
    http://3ca08239b80054f0.demo-xenforo.com/156/index.php?threads/custom-bb-code-iframe.1/

    bb code settings:
    http://3ca08239b80054f0.demo-xenforo.com/156/admin.php?bb-codes/custo/edit
    login-pass admin-admin

    PS: bbcode media sites will don't work for me.

    How Add "iframe" custom bb code into a topic please?

    Thanks in advance.
     
  3. Mike

    Mike XenForo Developer Staff Member

    Well the iframe works -- you can see it in that example. You'd need to use a valid, full URL though (http://google.com).
     
  4. Axel B

    Axel B Well-Known Member

  5. Arty

    Arty Well-Known Member

Share This Page