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

XF 1.2 Custom BB Code Media Site broken

Discussion in 'Troubleshooting and Problems' started by grantus, Jul 20, 2013.

  1. grantus

    grantus Active Member

    I just noticed in 1.2 that my custom BB Code Media Site is broken. When I try to put in the URL, it says "the specified URL cannot be embedded as media".

    Is this something in 1.2? Because none of my code has changed. Here's what I have:

    Media Site ID: members_music
    Site Title: Members Music

    Embed HTML:
    Code:
    <iframe width="660" height="170" src="http://localhost/forum/includes/share.php?music_id={$id}" frameborder="0"></iframe>
    *Edit:
    I'm able to put the media in manually and it shows no problem.

    Code:
    [media=members_music]250[/media]
    But I still can't paste the code in the embed box or have it auto-embed.
     
    Last edited: Jul 20, 2013
  2. EQnoble

    EQnoble Well-Known Member

    What do you have in Match URLs: ?
     
  3. grantus

    grantus Active Member

    I don't have anything in there. What would I put there?
     
  4. EQnoble

    EQnoble Well-Known Member

    Well...that depends....
    what url are you entering that you want to auto embed
     
  5. grantus

    grantus Active Member

  6. EQnoble

    EQnoble Well-Known Member

    try putting this in there

    #localhost\/members\-music\/(?P<id>[0-9]+)\/#siu
     
  7. grantus

    grantus Active Member

    That didn't work, same result.
     
  8. EQnoble

    EQnoble Well-Known Member

    hmm let me think on this...I am limited to what I can do without having the source of what you are trying to embed.
     
  9. grantus

    grantus Active Member

    No problem, appreciate it. I'm going to keep messing with it.
     
  10. grantus

    grantus Active Member

    Ah, fixed it! I just added the URL to the Match URLs:
    Code:
    localhost/members-music/{$id}/
    Works great.
     
  11. EQnoble

    EQnoble Well-Known Member

    ohh i just realized why what I told you didn't work....

    if you use regex (which the example I gave you was) you would need to go to the advanced tab and check the box for:

    Use 'Match URLs' as PCRE regular expressions

    heh...good job
     
  12. grantus

    grantus Active Member

    Oh ok. I'll keep a note of that then if needed. Thanks!
     

Share This Page