What in the world...?

Talk about whatever you feel like.
User avatar
JermCool
Redshirt
Posts: 4324
Joined: Fri May 04, 2007 2:33 pm
Real Name: Jeremy
Gender: Male
Location: Las Vegas, NV

Re: What in the world...?

Post by JermCool » Mon Jun 22, 2015 11:34 pm

Okay, fine. We can discuss our future while being spanked. Will that make you happy?
Insert Banner Here
"The internet is bullcrap! And everyone on it is retarded!" - Muspar
"All threads should degenerate into the bumming of JermCool." - Rorschach

User avatar
Dreamer
Redshirt
Posts: 3147
Joined: Mon Aug 18, 2003 7:48 pm
Real Name: Neil
Gender: Male
Location: Austin, TX

Re: What in the world...?

Post by Dreamer » Tue Jun 23, 2015 3:42 pm

Maybe.

It just felt like the spankings were disingenuous is all...
My sig would have contained the secret of life, but I'd already clicked submit.

User avatar
Martin Blank
Knower of Things
Knower of Things
Posts: 12684
Joined: Fri Feb 07, 2003 4:11 am
Real Name: Jarrod Frates
Gender: Male
Location: Dallas, TX

Re: What in the world...?

Post by Martin Blank » Tue Jun 23, 2015 4:41 pm

JermCool wrote:I wonder if 3.2 will allow youtube embedding in browsers outside of IE?
Like this?



The BBCode needed an update. The BBCode for what's above is:

Code: Select all

[youtube]https://www.youtube.com/watch?v=P99qJGrPNLs[/youtube]
I think everyone should be able to use it, based on the permissions I see. If not, let me know and I'll have another look at it.
If I show up at your door, chances are you did something to bring me there.

User avatar
Cyberliger777
Redshirt
Posts: 1903
Joined: Fri May 30, 2003 5:19 pm
Real Name: Zachary
Gender: Male
Location: Seattle, WA

Re: What in the world...?

Post by Cyberliger777 » Tue Jun 23, 2015 6:08 pm

You marvelous bastard. Also, I see why you raved about Cyberpunk 2077 now, that looks cool.
Image

User avatar
JermCool
Redshirt
Posts: 4324
Joined: Fri May 04, 2007 2:33 pm
Real Name: Jeremy
Gender: Male
Location: Las Vegas, NV

Re: What in the world...?

Post by JermCool » Tue Jun 23, 2015 6:22 pm

And this is why MB is glorious to behold!

Holy crap, that looks bad-ass.
Insert Banner Here
"The internet is bullcrap! And everyone on it is retarded!" - Muspar
"All threads should degenerate into the bumming of JermCool." - Rorschach

User avatar
Deacon
Shining Adonis
Posts: 44194
Joined: Wed Jul 30, 2003 3:00 pm
Gender: Male
Location: Lakehills, TX

Re: What in the world...?

Post by Deacon » Tue Jun 23, 2015 8:45 pm

So now we should use the full URL, not just the video ID?

Edited for testing:

[youtube]P99qJGrPNLs[/youtube]

Edited for results: well, yeah, apparently now is the full URL. Good to know! I wonder what happens to previous posts.
The follies which a man regrets the most in his life are those which he didn't commit when he had the opportunity. - Helen Rowland, A Guide to Men, 1922

User avatar
Martin Blank
Knower of Things
Knower of Things
Posts: 12684
Joined: Fri Feb 07, 2003 4:11 am
Real Name: Jarrod Frates
Gender: Male
Location: Dallas, TX

Re: What in the world...?

Post by Martin Blank » Tue Jun 23, 2015 9:04 pm

They're broken, and I could fix them, but I'm not sure there's a major reason to do so. Or I can go back and fix it (maybe), but use a different BBCode for full URLs. That would just add confusion.

I suppose I could technically create a new BBCode for the old ones and do a SQL query to fix them, but that could get ugly.
If I show up at your door, chances are you did something to bring me there.

User avatar
NorthernComfort
Redshirt
Posts: 2761
Joined: Fri May 23, 2003 8:13 pm
Real Name: Alex
Gender: Male
Location: Brooklyn, NY

Re: What in the world...?

Post by NorthernComfort » Wed Jun 24, 2015 3:52 am

Martin Blank wrote:I suppose I could technically create a new BBCode for the old ones and do a SQL query to fix them, but that could get ugly.
Image
"I guess I have a gift for expressing pedestrian tastes. In a way, it's kind of depressing." -Bill Watterson

User avatar
Martin Blank
Knower of Things
Knower of Things
Posts: 12684
Joined: Fri Feb 07, 2003 4:11 am
Real Name: Jarrod Frates
Gender: Male
Location: Dallas, TX

Re: What in the world...?

Post by Martin Blank » Wed Jun 24, 2015 3:21 pm

Actually, I can probably hit up Brian to put together the code for it. He's become something of a name in the JavaScript coding world.
If I show up at your door, chances are you did something to bring me there.

User avatar
NorthernComfort
Redshirt
Posts: 2761
Joined: Fri May 23, 2003 8:13 pm
Real Name: Alex
Gender: Male
Location: Brooklyn, NY

Re: What in the world...?

Post by NorthernComfort » Wed Jun 24, 2015 8:08 pm

[youtube]dQw4w9WgXcQ[/youtube]
"I guess I have a gift for expressing pedestrian tastes. In a way, it's kind of depressing." -Bill Watterson

User avatar
NorthernComfort
Redshirt
Posts: 2761
Joined: Fri May 23, 2003 8:13 pm
Real Name: Alex
Gender: Male
Location: Brooklyn, NY

Re: What in the world...?

Post by NorthernComfort » Wed Jun 24, 2015 8:21 pm

Code: Select all

document.addEventListener('DOMContentLoaded', function() {
[].slice.call(document.getElementsByClassName('postcontent')).forEach(
  function(content) {
    var html = content.innerHTML;
    if (html.match(/\[youtube\]/)) {
      content.innerHTML = html.replace(/\[youtube\]\s*(\w+)\s*\[\/youtube\]/g,
      '<iframe width="560" height="315" src="https://www.youtube.com/embed/$1" frameborder="0" allowfullscreen></iframe>');
    }
  });
});
Paste that into some global JS file and it should Just Work™. Copy paste the inner function (ignore first and last line) into your dev console to try it out.
"I guess I have a gift for expressing pedestrian tastes. In a way, it's kind of depressing." -Bill Watterson

User avatar
Martin Blank
Knower of Things
Knower of Things
Posts: 12684
Joined: Fri Feb 07, 2003 4:11 am
Real Name: Jarrod Frates
Gender: Male
Location: Dallas, TX

Re: What in the world...?

Post by Martin Blank » Thu Jun 25, 2015 3:31 pm

It's not quite that simple. Here's the BBCode usage:

Code: Select all

[youtube]{IDENTIFIER}://{SIMPLETEXT1}youtube.com/watch?v={SIMPLETEXT2}[/youtube]
And here's the HTML replacement:

Code: Select all

<object width="425" height="350"><param name="movie" value="{IDENTIFIER}://{SIMPLETEXT1}youtube.com/v/{SIMPLETEXT2}"></param><param name="wmode" value="transparent"></param><embed src="{IDENTIFIER}://{SIMPLETEXT1}youtube.com/v/{SIMPLETEXT2}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
That is, of course, the Flash version. I'd prefer to have the HTML5 version, which I think is what you provided, NC. If you can tweak it to work with that, I'll get it in place.
If I show up at your door, chances are you did something to bring me there.

Who is online

Users browsing this forum: Common Crawl (Research) and 1 guest