Imgur and You: A Primer for Success

suineg

<Donors Crew>
27,561
31d 10h 36m
Reactions
22,677 2,261 0 0
#1
So imgur is one of the largest, if not the defacto largest, free image hosting website out there. A lot of our users browse it and use it to post pictures over here on our site. They have been making a ton of changes in the past 6 months and as a result it has done a lot of things that break our embedding. Anyone could manually grab the URL directly to the media and do it inside IMG tags but our users are lazy. It also meant we needed a solution for the .mp4 files.

I decided to reach out to one of the biggest addon developers for Xenforo and the one that made the addon that does out Twitter embeds and all the rest of the media links. His addon is probably installed on over 90% of Xenforo installs. It is insanely good and it being free on top of that is amazing. So we have been working back and forth with him to have an addon that works directly with the imgur API to pull the information and do all the work for you the user. You will literally just need to paste the URL from imgur and it will do everything.

So we have a final version loaded that should be functioning as well as it can.

I have compiled a list of URLs and how they're transformed. The first line is the URL that you paste into the reply and the second is what is going to be generated from it.
Code:
https://imgur.com/9zBNokn
Code:
[img]https://i.imgur.com/TWP8Az1.png[/img]
Code:
https://imgur.com/t/staff_picks/9zBNokn
Code:
[img]https://i.imgur.com/TWP8Az1.png[/img]

Links to GIF/JPG/PNG/MP4 are taken at face value. The add-on doesn't contact Imgur's API to confirm the file type. That's faster and more efficient because it doesn't rely on Imgur's servers.

Code:
https://i.imgur.com/TWP8Az1.png
Code:
[img]https://i.imgur.com/TWP8Az1.png[/img]
Code:
https://imgur.com/gallery/eDvw9bM
Code:
[imgurvideo]Rpw7YBu[/imgurvideo]
Code:
https://imgur.com/a/eDvw9bM
Code:
[imgurvideo]Rpw7YBu[/imgurvideo]
Code:
https://i.imgur.com/Rpw7YBu.mp4
Code:
[imgurvideo]Rpw7YBu[/imgurvideo]

GIF links are replaced with MP4 because they generally load faster.

Code:
https://i.imgur.com/Rpw7YBu.gif
Code:
[imgurvideo]Rpw7YBu[/imgurvideo]
Code:
https://imgur.com/r/wtf/neMklBd
Code:
[imgurvideo]neMklBd[/imgurvideo]
Code:
https://imgur.com/gallery/ie4nH6Y
Code:
[url=https://imgur.com/a/ie4nH6Y]Meet the mysterious Silkhenge Spider (4 images)[/url]
[imguralbum]
[img]https://i.imgur.com/HzWxPBA.jpg[/img]
[img]https://i.imgur.com/GlQjz4d.jpg[/img]
[img]https://i.imgur.com/OHJrvKR.jpg[/img]
[img]https://i.imgur.com/rrkY8wX.jpg[/img]
[/imguralbum]
 

Zindan

<Donors Crew>
2,693
14d 1h 56m
Reactions
1,274 74 0 0
#3
Twitter embeds suck balls at the moment, most of the ones posted are just "Disable your ad blocker and tracking protection to see this"...kinda lame.
 

Vanessa

Uncle Tanya
1,345
35d 14h 22m
Reactions
3,700 658 0 0
#4
Hey boss... I upload a lot of pics here on the forum directly; mostly original content. Is Imgur preferred because it'll lessen expenses to keep the forum up and running, or is it pennies on the dollar? Because I can definitely get an account on Imgur if it helps with cutting costs here. Every little bit helps I'm sure.
 

suineg

<Donors Crew>
27,561
31d 10h 36m
Reactions
22,677 2,261 0 0
#5
Hey boss... I upload a lot of pics here on the forum directly; mostly original content. Is Imgur preferred because it'll lessen expenses to keep the forum up and running, or is it pennies on the dollar? Because I can definitely get an account on Imgur if it helps with cutting costs here. Every little bit helps I'm sure.
Neither way is preferred over the other. We have plenty of space for the amount of attachments we generate because most people link from elsewhere.
 

Bubbles

<Donors Crew>
19,876
26d 15h 42m
Reactions
92,452 48,191 0 0
#6
I find this relevant to my interests