phonics
11-02-2016, 01:53 PM
So I'm trying to make it so we can embed gifv's and webm's and stuff but I can't get it to load the gifv player.
Here's what I have from stealing from other websites:
DGLfkZg
converts to
<video poster="//i.imgur.com/DGLfkZg.jpg" preload="auto" autoplay="autoplay" muted="muted" loop="loop" webkit-playsinline="" style="max-width: 100%; height: auto;"> <source src="//i.imgur.com/DGLfkZg.webm" type="video/webm">
<source src="//i.imgur.com/DGLfkZg.mp4" type="video/mp4"> </video>
So that should interpret the code and turn it into a displayable gif. However, I don't understand quite how {params} work on vBulletin as in CSS normally I'd title them myself and then say if this title do that but I'm not sure that's how vBulletin works.
If we look at something simple like Strikethrough it's simply
<span style="text-decoration: line-through;">{param}</span>
so surely the correct code is just
<video poster="//i.imgur.com/{param}.jpg" preload="auto" autoplay="autoplay" muted="muted" loop="loop" webkit-playsinline="" style="max-width: 100%; height: auto;"> <source src="//i.imgur.com/{param}.webm" type="video/webm">
<source src="//i.imgur.com/{param}.mp4" type="video/mp4"> </video>
But I can't get that to work.
Any tips? @SvN (http://www.thethirdhalf.co.uk/member.php?u=8) @Raoul Duke (http://www.thethirdhalf.co.uk/member.php?u=76)
edit: Found this bit. Any clue what the diff between {option} and {param} is? I don't know PHP.
Replacement: This is the HTML code for the BB code replacement. Make sure that you include '{param}' (without the quotes) to insert the text between the opening and closing BB code tags, and '{option}' for the parameter within the BB code tag. You can only use {option} if 'Use Option' is set to yes.
e.g. you would use <b>{param}</b> for tags, <a href="{option}">{param}</a> for [url=xxx] . You will always use '{param}', but you will only use '{option}' when "Use Option?" is "yes". Note that '{relpath}' can be used in replacement code to signify the path of the current page. e.g. <a href="{relpath}#{option}">{param}</a>
edit2: zvATqgs
edit3: Not a scooby doo.
edit4: I forgot to close "param" in quotes and now I can get the video player to load but not the video. BASTARDS.
Here's what I have from stealing from other websites:
DGLfkZg
converts to
<video poster="//i.imgur.com/DGLfkZg.jpg" preload="auto" autoplay="autoplay" muted="muted" loop="loop" webkit-playsinline="" style="max-width: 100%; height: auto;"> <source src="//i.imgur.com/DGLfkZg.webm" type="video/webm">
<source src="//i.imgur.com/DGLfkZg.mp4" type="video/mp4"> </video>
So that should interpret the code and turn it into a displayable gif. However, I don't understand quite how {params} work on vBulletin as in CSS normally I'd title them myself and then say if this title do that but I'm not sure that's how vBulletin works.
If we look at something simple like Strikethrough it's simply
<span style="text-decoration: line-through;">{param}</span>
so surely the correct code is just
<video poster="//i.imgur.com/{param}.jpg" preload="auto" autoplay="autoplay" muted="muted" loop="loop" webkit-playsinline="" style="max-width: 100%; height: auto;"> <source src="//i.imgur.com/{param}.webm" type="video/webm">
<source src="//i.imgur.com/{param}.mp4" type="video/mp4"> </video>
But I can't get that to work.
Any tips? @SvN (http://www.thethirdhalf.co.uk/member.php?u=8) @Raoul Duke (http://www.thethirdhalf.co.uk/member.php?u=76)
edit: Found this bit. Any clue what the diff between {option} and {param} is? I don't know PHP.
Replacement: This is the HTML code for the BB code replacement. Make sure that you include '{param}' (without the quotes) to insert the text between the opening and closing BB code tags, and '{option}' for the parameter within the BB code tag. You can only use {option} if 'Use Option' is set to yes.
e.g. you would use <b>{param}</b> for tags, <a href="{option}">{param}</a> for [url=xxx] . You will always use '{param}', but you will only use '{option}' when "Use Option?" is "yes". Note that '{relpath}' can be used in replacement code to signify the path of the current page. e.g. <a href="{relpath}#{option}">{param}</a>
edit2: zvATqgs
edit3: Not a scooby doo.
edit4: I forgot to close "param" in quotes and now I can get the video player to load but not the video. BASTARDS.