Custom BBCode not working anymore after upgrade

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fleiding
    Senior Member
    • Jan 2012
    • 152
    • 5.3.x

    [Forum] Custom BBCode not working anymore after upgrade

    Hi,

    I'm using the following Custom BBCode to display a small part of a YouTube-video, so my members can use it to post music without filling the screen with the video.

    Code:
    <div style="position:relative;width:267px;height:25px;overflow:hidden;">
      <object width="300" height="300" style="position:absolute;top:-276px;left:-5px">
        <param name="movie" 
               value="http://www.youtube.com/v/{param}">
        </param>
        <param name="allowFullScreen" 
               value="true">
        </param>
        <param name="allowscriptaccess" 
               value="always">
        </param>
        <embed src="http://www.youtube.com/v/{param}"
               type="application/x-shockwave-flash" 
               width="300" 
               height="300" 
               allowscriptaccess="always" 
               allowfullscreen="true">
        </embed>
      </object>
    </div>
    Unfortunately after upgrading from 4.2.3 Patch Level 1 to 2 it doesn't work anymore.

    Does anyone know how to fix it?

    Thanks,
    Rob
  • motd2
    Member
    • Jun 2010
    • 49
    • 3.8.x

    #2
    Use:
    Code:
    <iframe width="425" height="350"
    src="http://www.youtube.com/embed/{param}?rel=0" frameborder="0"
    allowfullscreen></iframe>

    Comment

    • Fleiding
      Senior Member
      • Jan 2012
      • 152
      • 5.3.x

      #3
      Thanks, that did the trick.

      Comment

      Related Topics

      Collapse

      Working...