Go Back   Freethought Forum > Public Works > Forum Administration

Reply
 
Thread Tools Display Modes
  #51  
Old 08-30-2016, 10:36 AM
JoeP's Avatar
JoeP JoeP is online now
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMVI
Images: 18
Default Re: What's with the Youtubes

https://www.youtube.com/watch?v=ePSozTLv28I
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #52  
Old 08-30-2016, 10:37 AM
JoeP's Avatar
JoeP JoeP is online now
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMVI
Images: 18
Default Re: What's with the Youtubes

Oh. Fails.
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #53  
Old 08-30-2016, 10:42 AM
JoeP's Avatar
JoeP JoeP is online now
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMVI
Images: 18
Default Re: What's with the Youtubes

PyQt4 Model View Tutorial Part 01_0 - YouTube
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #54  
Old 08-30-2016, 10:42 AM
JoeP's Avatar
JoeP JoeP is online now
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMVI
Images: 18
Default Re: What's with the Youtubes

okays we made it worse
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #55  
Old 08-30-2016, 10:43 AM
JoeP's Avatar
JoeP JoeP is online now
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMVI
Images: 18
Default Re: What's with the Youtubes

PyQt4 Model View Tutorial Part 01_0 - YouTube
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #56  
Old 08-30-2016, 10:47 AM
JoeP's Avatar
JoeP JoeP is online now
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMVI
Images: 18
Default Re: What's with the Youtubes

Quote:
Originally Posted by JoeP View Post
This is solid:
Code:
(?:https?://)?(?:www.)?(?:youtube.com/watch?v=|youtu.be/)([A-Z0-9._%-]*)[&w;=+_-]*
Dammit.
What I tried to post was solid (still works at the test site), but yet again vBulletin 'helped' by collapsing some of the vital escape characters.
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #57  
Old 08-30-2016, 10:48 AM
JoeP's Avatar
JoeP JoeP is online now
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMVI
Images: 18
Default Re: What's with the Youtubes

https:/www.youtube.com/watch?v=k06DpAwIZ08
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #58  
Old 08-30-2016, 10:50 AM
JoeP's Avatar
JoeP JoeP is online now
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMVI
Images: 18
Default Re: What's with the Youtubes

let's try again

Code:
(?:https?://)?(?:www.)?(?:youtube.com/watch?v=|youtu.be/)([A-Z0-9._%-]*)[&w;=+_-]*
HTML Code:
(?:https?://)?(?:www.)?(?:youtube.com/watch?v=|youtu.be/)([A-Z0-9._%-]*)[&w;=+_-]*
PHP Code:
(?:https?://)?(?:www.)?(?:youtube.com/watch?v=|youtu.be/)([A-Z0-9._%-]*)[&w;=+_-]* 
(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/watch\?v=|youtu.be\/)([A-Z0-9._%-]*)[&w;=+_-]*

Quote:
(?:https?://)?(?:www.)?(?:youtube.com/watch?v=|youtu.be/)([A-Z0-9._%-]*)[&w;=+_-]*
(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/watch\?v=|youtu.be\/)([A-Z0-9._%-]*)[&w;=+_-]*
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #59  
Old 08-30-2016, 10:52 AM
JoeP's Avatar
JoeP JoeP is online now
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMVI
Images: 18
Default Re: What's with the Youtubes

Amazingly, using no tags at all, no CODE or HTML or anything, is best.

Make the match string this, including all those \ characters:

(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/watch\?v=|youtu\.be\/)([A-Z0-9._%-]*)[&w;=+_-]*
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
Thanks, from:
viscousmemories (08-31-2016)
  #60  
Old 08-30-2016, 10:54 AM
JoeP's Avatar
JoeP JoeP is online now
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMVI
Images: 18
Default Re: What's with the Youtubes

Of course, if the mod's interface uses some other escape character it's still broken.
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #61  
Old 08-30-2016, 10:54 AM
ceptimus's Avatar
ceptimus ceptimus is offline
puzzler
 
Join Date: Aug 2004
Location: UK
Posts: XVMMDCCLXXXIX
Images: 28
Default Re: What's with the Youtubes

www.youtube.com/watch?v=mCHVI8OXDxw

Why is that one still appearing as a link rather than an iframe?
__________________
Reply With Quote
  #62  
Old 08-30-2016, 10:55 AM
JoeP's Avatar
JoeP JoeP is online now
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMVI
Images: 18
Default Re: What's with the Youtubes

PyQt4 Model View Tutorial Part 01_0 - YouTube
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #63  
Old 08-30-2016, 10:56 AM
JoeP's Avatar
JoeP JoeP is online now
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMVI
Images: 18
Default Re: What's with the Youtubes

Quote:
Originally Posted by ceptimus View Post
hey that's what I said!

The '//' part of the url isn't matching.


Or is the youtube.com that's failing ...
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #64  
Old 08-30-2016, 10:59 AM
JoeP's Avatar
JoeP JoeP is online now
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMVI
Images: 18
Default Re: What's with the Youtubes

Now yours appears as a video.

I are confyused.
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #65  
Old 08-30-2016, 11:01 AM
ceptimus's Avatar
ceptimus ceptimus is offline
puzzler
 
Join Date: Aug 2004
Location: UK
Posts: XVMMDCCLXXXIX
Images: 28
Default Re: What's with the Youtubes

It's strange though that the URL parser still finds it so it shows up as a link, and then if you edit your own post but don't actually edit anything, it gets embedded in the "modified" saved version.

(I think... weird things seem to be happening... :confused: )
__________________
Reply With Quote
  #66  
Old 08-30-2016, 11:05 AM
JoeP's Avatar
JoeP JoeP is online now
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMVI
Images: 18
Default Re: What's with the Youtubes

OK no, of course it's the "\/watch\?v=" part, which vb showed as "/watch?v=", that's failing.
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
Thanks, from:
ceptimus (08-30-2016)
  #67  
Old 08-30-2016, 11:06 AM
ceptimus's Avatar
ceptimus ceptimus is offline
puzzler
 
Join Date: Aug 2004
Location: UK
Posts: XVMMDCCLXXXIX
Images: 28
Default Re: What's with the Youtubes

Okay - here is what I think happens.

You post the 'bare' www. thing without any http or https

The YouTube parser doesn't recognize it, but the html link parser does and posts it as a link - I think the html link parser must insert the http for you even though there wasn't one to start with.

Then if you "edit" your post without actually changing anything, the YouTube parser catches it on that second try.

I suppose it works okay like that as most people would 'edit' to see if they could see what was wrong and then that would fix things.

It is a little confusing however.

Okay - I'm cross posting with JoeP and he understands it better than me, so I'm going to shut up now.
__________________
Reply With Quote
  #68  
Old 08-30-2016, 11:15 AM
JoeP's Avatar
JoeP JoeP is online now
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMVI
Images: 18
Default Re: What's with the Youtubes

Some of the confusion may be due to the various built-in post features and mod post features not running after an in-line AJAX edit. Hypothetically.

The in-line media mod definitely requires the url parser to have happened, so maybe it only looks in URL tags. And certainly when you edit or quote a post that's got a properly displaying video, you only see the url tags - so maybe the in-line media mod runs on display, not on edit - whereas the url parser runs at edit time and affects what actually gets saved in the post database.

Obvious really :headasplode:
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #69  
Old 08-31-2016, 12:42 PM
viscousmemories's Avatar
viscousmemories viscousmemories is offline
Admin
 
Join Date: Apr 2004
Location: Ypsilanti, Mi
Gender: Male
Posts: XXXDCCXLVI
Blog Entries: 1
Images: 9
Default Re: What's with the Youtubes

Quote:
Originally Posted by JoeP View Post
Amazingly, using no tags at all, no CODE or HTML or anything, is best.

Make the match string this, including all those characters:

(?:https?://)?(?:www.)?(?:youtube.com/watch?v=|youtu.be/)([A-Z0-9._%-]*)[&w;=+_-]*
Done.
Reply With Quote
  #70  
Old 08-31-2016, 01:39 PM
JoeP's Avatar
JoeP JoeP is online now
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMVI
Images: 18
Default Re: What's with the Youtubes

Are you ready for the testes?
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #71  
Old 08-31-2016, 01:39 PM
JoeP's Avatar
JoeP JoeP is online now
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMVI
Images: 18
Default Re: What's with the Youtubes

__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #72  
Old 08-31-2016, 01:40 PM
JoeP's Avatar
JoeP JoeP is online now
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMVI
Images: 18
Default Re: What's with the Youtubes

__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #73  
Old 08-31-2016, 01:40 PM
JoeP's Avatar
JoeP JoeP is online now
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMVI
Images: 18
Default Re: What's with the Youtubes

__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #74  
Old 08-31-2016, 01:40 PM
JoeP's Avatar
JoeP JoeP is online now
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMVI
Images: 18
Default Re: What's with the Youtubes

__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
  #75  
Old 08-31-2016, 01:41 PM
JoeP's Avatar
JoeP JoeP is online now
Solipsist
 
Join Date: Jul 2004
Location: Kolmannessa kerroksessa
Gender: Male
Posts: XXXVMMVI
Images: 18
Default Re: What's with the Youtubes

youtu.be/z2GAmkradW8

Not recognised by the url parser, nothing we can do about this
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:   :finland:
Reply With Quote
Thanks, from:
livius drusus (09-01-2016), viscousmemories (09-01-2016)
Reply

  Freethought Forum > Public Works > Forum Administration


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

 

All times are GMT +1. The time now is 09:59 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Page generated in 0.69552 seconds with 15 queries