Quote from: Jade Elizabeth on March 30, 2014, 09:27:23 PMThe solution was posted here; create a new Censored Word in Admin panel (Administration Center --> Forum -->Posts and Topics --> Censored Words), to change https://www.youtube.com to http://www.youtube.com; that automatically change all urls to work well with the Aeva Mod.
So youtube is not working anymore. Everything has HTTPS now.
How many of the http:// do I change to https://?// Biggest most popular sites first for speed purposes
array(
'id' => 'ytb',
'title' => 'YouTube',
'website' => 'http://www.youtube.com',
'type' => 'pop',
'pattern' => 'http://(?:video\.google\.(?:com|com?\.[a-z]{2}|[a-z]{2})/[^"]*?)?(?:(?:www|[a-z]{2})\.)?youtu(?:be\.com/[^"#[]*?(?:[&/?;]|&|%[23]F)(?:video_id=|v(?:/|=|%3D|%2F))|\.be/)([\w-]{11})',
'movie' => 'http://www.youtube.com/v/$2&rel=0&fs=1',
'size' => array(
'normal' => array(480, 385),
'ws' => array(640, 385),
),
'ui-height' => 25,
// http://www.youtube.com/watch?v=-X8mD76W4F0 or v=MxGofCFHYCc (all hail Jochen Hippel!)
// On Google - http://video.google.co.uk/url?docid=-8978185459530152475&ev=v&len=91&srcurl=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dg2cT5J0gxeU
// http://www.youtube.com/watch?v=M29NUeffJNA - Example of "Embedding Disabled By Request"
'fix-html-pattern' => '<object [^>]*><param name="movie" value="http://www\.youtube\.com/v/([\w-]{11})(?:&[^"]*)?">.*?</object>',
'fix-html-url' => 'http://www.youtube.com/watch?v=$1',
'lookup-url' => 'http://(?:video\.google\.(?:com|com?\.[a-z]{2}|[a-z]{2})/[^"]*?)?(?:(?:www|[a-z]{2})\.)?youtube\.com/[^"#[]*?(?:[&/?;]|&|%[23]F)(?:video_id=|v(?:/|=|%3D|%2F))([\w-]{11})[^]#[]*',
'lookup-actual-url' => 'http://gdata.youtube.com/feeds/api/videos/$1?v=2',
'lookup-final-url' => 'http://www.youtube.com/watch?v=$1',
'lookup-title' => true,
'lookup-title-skip' => true,
'lookup-pattern' => array(
'id' => '<id>.*?:([\w-]+)</id>',
'error' => '<internalReason>(.*?)</internalReason>',
'noexternalembed' => '<yt:accessControl\saction=\'embed\'\spermission=\'denied\'/>',
'ws' => '<yt:aspectRatio>widescreen</yt:aspectRatio>',
),
),
array(
'id' => 'ytp',
'title' => 'YouTube (Playlists)',
'website' => 'http://www.youtube.com',
'type' => 'pop',
// http://uk.youtube.com/view_play_list?p=7262E1895FA61B39
'pattern' => 'http://(?:(?:www|[a-z]{2})\.)?youtube\.com/[^"]*?(?:[&/?;]|&)(?:id=|p=|p/)([0-9a-f]{16})',
'movie' => 'http://www.youtube.com/p/$2&rel=0&fs=1',
'size' => array(480, 385),
'ui-height' => 25,
'fix-html-pattern' => '<object [^>]*><param name="movie" value="$1" />.*?</object>',
),
Also, can I just duplicate it and make a new one for the s ones? Because I am sure there are old links without the s, and no the censoring is not appropriate for me because many people turn it off.
// Biggest most popular sites first for speed purposes
array(
'id' => 'ytb',
'title' => 'YouTube',
'website' => 'http://www.youtube.com',
'type' => 'pop',
'pattern' => 'http://(?:video\.google\.(?:com|com?\.[a-z]{2}|[a-z]{2})/[^"]*?)?(?:(?:www|[a-z]{2})\.)?youtu(?:be\.com/[^"#[]*?(?:[&/?;]|&|%[23]F)(?:video_id=|v(?:/|=|%3D|%2F))|\.be/)([\w-]{11})',
'movie' => 'http://www.youtube.com/v/$2&rel=0&fs=1',
'size' => array(
'normal' => array(480, 385),
'ws' => array(640, 385),
),
'ui-height' => 25,
// http://www.youtube.com/watch?v=-X8mD76W4F0 or v=MxGofCFHYCc (all hail Jochen Hippel!)
// On Google - http://video.google.co.uk/url?docid=-8978185459530152475&ev=v&len=91&srcurl=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dg2cT5J0gxeU
// http://www.youtube.com/watch?v=M29NUeffJNA - Example of "Embedding Disabled By Request"
'fix-html-pattern' => '<object [^>]*><param name="movie" value="http://www\.youtube\.com/v/([\w-]{11})(?:&[^"]*)?">.*?</object>',
'fix-html-url' => 'http://www.youtube.com/watch?v=$1',
'lookup-url' => 'http://(?:video\.google\.(?:com|com?\.[a-z]{2}|[a-z]{2})/[^"]*?)?(?:(?:www|[a-z]{2})\.)?youtube\.com/[^"#[]*?(?:[&/?;]|&|%[23]F)(?:video_id=|v(?:/|=|%3D|%2F))([\w-]{11})[^]#[]*',
'lookup-actual-url' => 'http://gdata.youtube.com/feeds/api/videos/$1?v=2',
'lookup-final-url' => 'http://www.youtube.com/watch?v=$1',
'lookup-title' => true,
'lookup-title-skip' => true,
'lookup-pattern' => array(
'id' => '<id>.*?:([\w-]+)</id>',
'error' => '<internalReason>(.*?)</internalReason>',
'noexternalembed' => '<yt:accessControl\saction=\'embed\'\spermission=\'denied\'/>',
'ws' => '<yt:aspectRatio>widescreen</yt:aspectRatio>',
),
),
array(
'id' => 'ytp',
'title' => 'YouTube (Playlists)',
'website' => 'http://www.youtube.com',
'type' => 'pop',
// http://uk.youtube.com/view_play_list?p=7262E1895FA61B39
'pattern' => 'http://(?:(?:www|[a-z]{2})\.)?youtube\.com/[^"]*?(?:[&/?;]|&)(?:id=|p=|p/)([0-9a-f]{16})',
'movie' => 'http://www.youtube.com/p/$2&rel=0&fs=1',
'size' => array(480, 385),
'ui-height' => 25,
'fix-html-pattern' => '<object [^>]*><param name="movie" value="$1" />.*?</object>',
),
QuoteI need http and https videos to embed. how can i fix this issue?
if (stripos($message, '<a href="http://') === false)
break;
Quote from: phantomm on December 17, 2012, 12:26:31 PM
I'm trying to figure it out where you see solution to YT links with https, but I can find it...
i just added in censored words https://www.youtube.com => http://www.youtube.com and it works fine for me.
Quote from: Unruler on December 15, 2012, 06:56:16 AM
Is there any way to make it embed https links?
array(
'id' => 'ytbs',
'title' => 'YouTube SSL',
'website' => 'https://www.youtube.com',
'type' => 'pop',
'pattern' => 'https://(?:video\.google\.(?:com|com?\.[a-z]{2}|[a-z]{2})/[^"]*?)?(?:(?:www|[a-z]{2})\.)?youtu(?:be\.com/[^"#[]*?(?:[&/?;]|&|%[23]F)(?:video_id=|v(?:/|=|%3D|%2F))|\.be/)([\w-]{11})',
'movie' => 'https://www.youtube.com/v/$2&rel=0&fs=1',
'size' => array(
'normal' => array(480, 385),
'ws' => array(640, 385),
),
'ui-height' => 25,
// https://www.youtube.com/watch?v=-X8mD76W4F0 or v=MxGofCFHYCc (all hail Jochen Hippel!)
// On Google - https://video.google.co.uk/url?docid=-8978185459530152475&ev=v&len=91&srcurl=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dg2cT5J0gxeU
// https://www.youtube.com/watch?v=M29NUeffJNA - Example of "Embedding Disabled By Request"
'fix-html-pattern' => '<object [^>]*><param name="movie" value="https://www\.youtube\.com/v/([\w-]{11})(?:&[^"]*)?">.*?</object>',
'fix-html-url' => 'https://www.youtube.com/watch?v=$1',
'lookup-url' => 'https://(?:video\.google\.(?:com|com?\.[a-z]{2}|[a-z]{2})/[^"]*?)?(?:(?:www|[a-z]{2})\.)?youtube\.com/[^"#[]*?(?:[&/?;]|&|%[23]F)(?:video_id=|v(?:/|=|%3D|%2F))([\w-]{11})[^]#[]*',
'lookup-actual-url' => 'https://gdata.youtube.com/feeds/api/videos/$1?v=2',
'lookup-final-url' => 'https://www.youtube.com/watch?v=$1',
'lookup-title' => true,
'lookup-title-skip' => true,
'lookup-pattern' => array(
'id' => '<id>.*?:([\w-]+)</id>',
'error' => '<internalReason>(.*?)</internalReason>',
'noexternalembed' => '<yt:accessControl\saction=\'embed\'\spermission=\'denied\'/>',
'ws' => '<yt:aspectRatio>widescreen</yt:aspectRatio>',
),
),
array(
'id' => 'ytps',
'title' => 'YouTube (Playlists) SSL',
'website' => 'https://www.youtube.com',
'type' => 'pop',
// https://uk.youtube.com/view_play_list?p=7262E1895FA61B39
'pattern' => 'https://(?:(?:www|[a-z]{2})\.)?youtube\.com/[^"]*?(?:[&/?;]|&)(?:id=|p=|p/)([0-9a-f]{16})',
'movie' => 'https://www.youtube.com/p/$2&rel=0&fs=1',
'size' => array(480, 385),
'ui-height' => 25,
'fix-html-pattern' => '<object [^>]*><param name="movie" value="$1" />.*?</object>',
),
Quote from: EOSHD on March 31, 2012, 04:46:20 PMQuote from: larsenroed on March 30, 2012, 05:13:36 AM
If i paste the vimeo urlhttps://vimeo.com/38948271
it just writes it as a link and if i remove the s to http:// it says "Sorry. There was an error encountered when loading this video".
SMF 2.0.2 and Aeva 7.2.
Youtube works just fine.
This is a major bug.
When I switch to the 'New' Vimeo on their site, it kills my embeds. Switching back to 'old Vimeo' and the embeds are fine. The embed code used by Aeva is old. It is using the depreciated Flash code when it should be using the new iFrame code.
PLEASE FIX
Quote from: EOSHD on March 31, 2012, 04:46:20 PMQuote from: larsenroed on March 30, 2012, 05:13:36 AM
If i paste the vimeo urlhttps://vimeo.com/38948271
it just writes it as a link and if i remove the s to http:// it says "Sorry. There was an error encountered when loading this video".
SMF 2.0.2 and Aeva 7.2.
Youtube works just fine.
This is a major bug.
When I switch to the 'New' Vimeo on their site, it kills my embeds. Switching back to 'old Vimeo' and the embeds are fine. The embed code used by Aeva is old. It is using the depreciated Flash code when it should be using the new iFrame code.
PLEASE FIX
Quote from: larsenroed on March 30, 2012, 05:13:36 AM
If i paste the vimeo urlhttps://vimeo.com/38948271
it just writes it as a link and if i remove the s to http:// it says "Sorry. There was an error encountered when loading this video".
SMF 2.0.2 and Aeva 7.2.
Youtube works just fine.
Quote from: Nao on January 24, 2010, 06:48:00 AMCould you please provide the names of file(s) I'd have to edit to fix this?
lorenzo, greatQuote from: gamerzworld on January 23, 2010, 05:27:37 PMHmm yeah, been looking into the code... It's not technically due to a bug in the sitelist, but rather a limitation in the embed code. Because Aeva looks for http:// link and when it can't find them, it stops looking. Problem is, I don't know of any other site that uses https:// exclusively for showing videos, so I can't really justify adding a test for https:// that will slow down all forums (even if very very little), just for a single site which isn't even in the official sitelist... :-/
Yep. Changing the pattern link from https to just http and doing the same to the links will make aeva embed the link.
I don't see any easy solution to this.Quote from: selket on January 23, 2010, 03:37:55 PMHmm... I'm afraid I don't have any problems with it.
This is a messange with a screwed up video:
mie asta mi se pare geniala:
[ url=http://www.youtube.com/watch?v=g2VCfOC69jc#lq-lq2-hq]Honda [nofollow] Ad[/url]
I'll need FTP access to your site so I can fix it.
Quote from: gamerzworld on January 23, 2010, 05:27:37 PMHmm yeah, been looking into the code... It's not technically due to a bug in the sitelist, but rather a limitation in the embed code. Because Aeva looks for http:// link and when it can't find them, it stops looking. Problem is, I don't know of any other site that uses https:// exclusively for showing videos, so I can't really justify adding a test for https:// that will slow down all forums (even if very very little), just for a single site which isn't even in the official sitelist... :-/
Yep. Changing the pattern link from https to just http and doing the same to the links will make aeva embed the link.
Quote from: selket on January 23, 2010, 03:37:55 PMHmm... I'm afraid I don't have any problems with it.
This is a messange with a screwed up video:
mie asta mi se pare geniala:
[ url=http://www.youtube.com/watch?v=g2VCfOC69jc#lq-lq2-hq]Honda Ad[/url]
Quote from: Nao on January 23, 2010, 04:17:44 AMYep. Changing the pattern link from https to just http and doing the same to the links will make aeva embed the link.
@the brain> In case you didn't notice, the feature was added to Beta 3, released 2 days ago...
@hanzalah> no comprendo your question.
@gamerzworld> you mean if you replace https with http, it works? (You have to admit, though, using https for a video embed is quite weird and anti-intuitive...)