XF 1.2 New BB Code Media Site Not Showing Up

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:

20131019_imgur_settings.jpg


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>

20131019_bbcode_media_sites.jpg


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.

20131019_embed_error.jpg


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):

20131019_add_ons.jpg


Both have been uninstalled, but the issue persists. My Xenforo version is 1.2.2, no add-ons, no custom styles or templates.
 
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.
 
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.

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.
 
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.
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. :)
 
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. :)

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