Jesepi
Well-known member
I'm having an issue trying to implement a custom media bbcode to allow folks to directly load animations from the website imgur when the URL ends in .gifv. I am aware there is an add-on that does this - but I do not want to install an add-on to accomplish this.
I created the following:
Match URL
Embed HTML
If I edit the above example to an exact match of a working URL it loads correctly, but when I add the "id" portion it does not load. Looking at the source, it shows {$id:alphanum} instead of the custom part of the url
What am I missing/doing wrong?
My example is the following: http://i.imgur.com/viQHrVM.gifv
I created the following:
Match URL
Code:
i.imgur.com/{$id:alphanum}.gifv
Embed HTML
Code:
<video poster="//i.imgur.com/{$id:alphanum}.jpg" preload="auto" autoplay="autoplay" muted="muted" loop="loop" webkit-playsinline>
<source src="//i.imgur.com/{$id:alphanum}.webm" type="video/webm">
<source src="//i.imgur.com/{$id:alphanum}.mp4" type="video/mp4">
</video>
If I edit the above example to an exact match of a working URL it loads correctly, but when I add the "id" portion it does not load. Looking at the source, it shows {$id:alphanum} instead of the custom part of the url
What am I missing/doing wrong?
My example is the following: http://i.imgur.com/viQHrVM.gifv