When I get to a post with an embedded YouTube video, it's all white with a black bar on the left (see screenshot). No video there to play but the link in the video header will still take me to YouTube and play it there. I reset Chrome last night just incase it was me, but it is still doing it.
What up with that? Is this happening to anyone else?
__________________ Old Pain In The Ass says: I am on a mission from God to comfort the afflicted and afflict the comfortable; to bring faith to the doubtful and doubt to the faithful.
At least at the moment for me this thinks for a while and then errors out.
All the ones on this page (obviously not including the .png image captured by K A) are working okay for me - this in FireFox and Edge browsers from Windows and on an Android phone.
where CHICKENBUTT is whatever comes after '/v/' in the current setting which I believe vb has failed to include in your post. Probably backslash 1 or dollar 1 or ampersand 1.
It wouldn't be a bad idea to wait for ceptimus to check this out - and/or test it on the test board if that's still up.
Looks good to me Joe! But my method of debugging is always to suck it and see! I figure there's no point staring at a line of code for ages looking for possible bugs when there might not be any bugs to find. Far easier to try it and only search for bugs if and when it doesn't work.
Oh, also Youtube sometimes gives a share link where it's not youtube.com but youtu.be and there may be other variants... I've not looked into it enough to know if YouTube or some third party have come up with a RegEx that matches all the various possibilities.
Some other forums I use don't attempt to auto-parse youtube links but instead have a tag like {youtube} {/youtube} or {yt} {/yt} and you just paste the magic letters from the Youtube link into those tags rather than paste the whole link. Didn't we used to have something like that? Testing...
[youtube]G3qfW3ydZuY[/youtube]
[youtube=G3qfW3ydZuY]Cool microglider![/youtube]
[yt]G3qfW3ydZuY[/yt]
[ytube]G3qfW3ydZuY[/ytube]
Edit: I searched a bit and found that the [youtube] tag was a new thing at one time: New Features List - Freethought Forum but I suppose it was removed when this new auto-parser thing was installed.
It's all to do with the phasing out of Flash. Adobe
Testing that the iframe code really does still work...
Why are they phasing out Flash and why is it Abode's fault? I know they're the ones who maintain and develop new versions of Flash, but that's the extent of my knowledge.
__________________
Allan Glenn. 1984-2005 RIP
Under no circumstances should Quentin Tarantino be allowed to befoul Star Trek.
Flash is proprietary standard, owned by Adobe. It's always been sketchy to implement, and unavailable on platforms that don't explicitly support it, for one thing. It's also really vulnerable to attacks, and there was a while a bit ago when it was just one exploit after another, where a lot of people, including me, decided it just wasn't worth it anymore. Especially now that HTML5 can pretty much replace its main functionality using an open source, accessible standard, so if there is any good reason for anyone to still be using Flash instead, I don't know what it is.
It's also been used for and become associated with some of the things that people hate the most about the web: Intrusive, unskippable content, including but not limited to ads, and slow-loading, unnecessarily bloated websites throwing up obstacles between you and the content you're looking for. Opaque, unscalable, platform dependent content that can't be repurposed or reused and that only displays properly on systems that have specific, closed source software installed. It's also totally unusable with screenreaders and noncompliant with any even remotely useful usability standards I've ever seen. It's kind of the opposite of what the web is supposed to be.
Once upon a time, I'd designed a new website for a company I was working for, and we were looking for someone to just finish coding it using my framework and specs. They ran an ad looking for "web developers," and HR wasn't specific enough I guess about what we needed, so we ended up with a bunch of kids straight out of vocational school, and there were a ton of them who apparently only knew Flash. They couldn't even write basic HTML, but they were answering ads for web developers. So I personally started equating Flash with personal idiocy as well, but that's probably not quite as common a sentiment.
The regex/replace text in my first post came from the plugin install code, but I found a place to configure the plugin within the admin gui and here's the code that's in there now:
Apparently $p1 and $p2 (that are in between the src and flashvars ticks but won't show up no matter what bbcode I use) are "backreferences" to the regex but I don't know what that means.
The regex/replace text in my first post came from the plugin install code, but I found a place to configure the plugin within the admin gui and here's the code that's in there now:
Apparently and (that are in between the src and flashvars ticks but won't show up no matter what bbcode I use) are "backreferences" to the regex but I don't know what that means.
Quoting to see if I can fix it.
Unticking 'automatically parse links' and 'automatically embed media AND changing < to & lt ; etc helps a bit.
Pasting screenshots would still be easier
Apparently and (that are in between the src and flashvars ticks but won't show up no matter what bbcode I use) are "backreferences" to the regex but I don't know what that means.
They are references back to the regex.
Specifically to the bits between ( parentheses ) aka "capture groups".
The $p1 is the first parameter recognized by the regex. $p2 would be the second parameter and so on - but in that screenshot you posted, only $p1 is used.
The $p1 parameter extracts the 'magic code' you see in a YouTube link. For example in this link:
https://youtu.be/z2GAmkradW8
the magic code is z2GAmkradW8 and in this iframe embed
Note that the regex you posted wouldn't find the youtu.be link - it's only searching for the ones that have youtube.something
I think it's easier and probably better to go back to the old method where we ask the poster to manually cut and paste the magic code into a tag like
{youtube}magic code{/youtube} (except with square brackets instead of curly braces)
The tag code can then always use the iframe method - it doesn't matter whether the original link was youtu.be or youtube.com or something else - once you have the magic code you can always substitute it into the youtube.com iframe version.
To demonstrate I'll post he iframe method below (using youtube.com) for both the examples above and they should both work even though the first one originally was a youtu.be link. I can do this because I'm in the html group but once you've made (re-enabled ?) the tag it will work for everyone.
Quote this post to see how I did it. I used a couple of tricks with html entities to substitute some of the < / and . characters to stop the existing broken auto-parser mangling my post - but with the visible post and the quoted version you can see all that's needed.
Ok, with the limited brainshare I have available for this I changed the regex to accomodate https and the embed code as demonstrated by testuser. Does this solve most of the problem or is there more to do right away?