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

XF 1.2 New BB Code Media Site Not Showing Up

Discussion in 'Troubleshooting and Problems' started by Coestar, Oct 19, 2013.

  1. Coestar

    Coestar Member

    I've been trying to add a new BBCode Media Site for Imgur.com, but have not been able to get it working. Here are a couple of screenshots showing my settings:

    [​IMG]

    Code:
    Match URLs: imgur.com/a/{id}
    Embed HTML: <iframe class="imgur-album" width="100%" height="550" frameborder="0" src="http://imgur.com/a/{id}/embed"></iframe>
    
    [​IMG]

    As you can see, it shows up in the list just fine - both in the admin section, and the list of supported sites shown to users. However, if I try to embed using an Imgur URL (for example: http://imgur.com/a/Hsf1t#0), Xenforo says that the URL cannot be embedded.

    [​IMG]

    I've looked over the settings many times trying to find some typo or other mistake, but I'm just not seeing what I'm doing wrong.

    I did have two add-ons installed that I have since uninstalled, one of which is definitely not 1.2 compatible (XenUtiles):

    [​IMG]

    Both have been uninstalled, but the issue persists. My Xenforo version is 1.2.2, no add-ons, no custom styles or templates.
     
    Gish likes this.
  2. Martok

    Martok Well-Known Member

    Links of the format http://imgur.com/a/{id} are for pages, not for images.

    From what I can tell, imgur images are of the format http://i.imgur.com/{id}.png or http://i.imgur.com/{id}.jpg and possibly http://i.imgur.com/{id}.gif too.

    This is where the problem lies - although you can easily identify the {id} from pages such as http://imgur.com/a/{id} and http://imgur.com/gallery/{id}, you can't tell if it's a .png, .jpg or .gif.
     
  3. Coestar

    Coestar Member

    I don't understand why this matters, if I only want to embed albums? Based off of what you're saying, it should work for album links.
     
  4. Martok

    Martok Well-Known Member

    Apologies, I misinterpreted what you are trying to do.

    Anyway, you've made a small error in your code. It should be {$id} not {id} i.e. you've missed out the $.

    Once you fix this, it will work - I've just tested it on my dev site. :)
     
    Coestar likes this.
  5. Coestar

    Coestar Member

    Ahh, thanks. Sheesh, so simple. That's why a 2nd pair of eyes is always good. :)
     

Share This Page