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

Other BBCode Media Site Help

Discussion in 'Custom Service/Development Requests' started by TeflonDon, May 28, 2014.

  1. TeflonDon

    TeflonDon Well-Known Member

    I have a simple media site I'm trying to embed and for some reason I'm struggling with it. My regex is extremely rusty. :(


    Typical link
    Code:
    http://www.website.com/videos/99999/random-text-like-this.html
    Embed code
    Code:
    <iframe width="400" height="460" src="http://www.website.com/embed.php?video_id=99999" border="0" frameborder="0" style="border: 0" scrolling="no" seamless="seamless"></iframe>
    Anyone?
     
  2. TeflonDon

    TeflonDon Well-Known Member

  3. Chris D

    Chris D XenForo Developer Staff Member

    From your example that really doesn't need regex.
     
    TeflonDon likes this.
  4. JoshyPHP

    JoshyPHP Well-Known Member

    Code:
    http://www.website.com/videos/{$id}
    Code:
    <iframe width="400" height="460" src="http://www.website.com/embed.php?video_id={$id}" border="0" frameborder="0" style="border: 0" scrolling="no" seamless="seamless"></iframe>
    Probably that I guess?
     
    TeflonDon likes this.
  5. TeflonDon

    TeflonDon Well-Known Member

    Yup that worked, simpler than I thought it would be.
     

Share This Page