1
Aeva Media / Re: Hello
« on: 27 December 2014 à 10h23 »
Hello!
I can't realy find, how to make new topic, co i'll post here )
I have Aeva light 1.5. Is there any new versions?? If no, I would like to make some update:
Mod does not installing on SMF2.0.9, so I found and replaced code in "install-both.xml"
first search in Post.php should look like
Moreover around few years Youtube videos does not embed, by simply copy-paste of youtube url. I have tried to revise the source and replaced all http to https, but looks, like problem is deeper. In Subs-Aeva-Sites.php I have updated ytb:
What else should I do??
I can't realy find, how to make new topic, co i'll post here )
I have Aeva light 1.5. Is there any new versions?? If no, I would like to make some update:
Mod does not installing on SMF2.0.9, so I found and replaced code in "install-both.xml"
first search in Post.php should look like
Code: [Select]
<search position="after"><![CDATA[ // Previewing? Go back to start.
if (isset($_REQUEST['preview']))
{
if (checkSession('post', '', false) != '')
{
loadLanguage('Errors');
$context['post_errors']['message'][] = $txt['error_session_timeout'];
unset ($_POST['preview'], $_REQUEST['xml']); // just in case
}
return Post();
}]]></search>
Moreover around few years Youtube videos does not embed, by simply copy-paste of youtube url. I have tried to revise the source and replaced all http to https, but looks, like problem is deeper. In Subs-Aeva-Sites.php I have updated ytb:
Code: [Select]
array(
'id' => 'yts',
'title' => 'YouTube (s)',
'website' => '[url]https://www.youtube.com[/url]',
'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' => '[url]https://www.youtube.com/v/[/url]$2&rel=0&fs=1',
'size' => array(
'normal' => array(480, 385),
'ws' => array(640, 385),
),
'ui-height' => 25,
// [url]https://www.youtube.com/watch?v=-X8mD76W4F0[/url] or v=MxGofCFHYCc (all hail Jochen Hippel!)
// On Google - [url]https://video.google.co.uk/url?docid=-8978185459530152475&ev=v&len=91&srcurl=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dg2cT5J0gxeU[/url]
// [url]https://www.youtube.com/watch?v=M29NUeffJNA[/url] - 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' => '[url]https://www.youtube.com/watch?v=[/url]$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' => '[url]https://gdata.youtube.com/feeds/api/videos/[/url]$1?v=2',
'lookup-final-url' => '[url]https://www.youtube.com/watch?v=[/url]$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>',
),
),
What else should I do??