Help me somebody how to adjust the code Kunena?
Here on the forum wrote that the problem may be the devil, but how and from whom did it happen? I began to do, but could only edit the link, and the rest of the code where?
77-87
Code:
if ($fbConfig->autoembedyoutube)
{
// convert youtube links to embedded player
$task->text = preg_replace('/<a href=[^>]+youtube.([^>\/]+)\/watch\?[^>]*v=([^>"&]+)[^>]+>[^<]+<\/a>/',
'<object width="425" height="344"><param name="movie" value="http://www.youtube.$1/v/$2&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.$1/v/$2&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>',
$task->text);
// convert youtube playlists to embedded player
$task->text = preg_replace('/<a href=[^>]+youtube.([^>\/]+)\/view_play_list\?[^>]*p=([^>"&]+)[^>]+>[^<]+<\/a>/',
'<object width="480" height="385"><param name="movie" value="http://www.youtube.$1/p/$2"></param><embed src="http://www.youtube.$1/p/$2" type="application/x-shockwave-flash" width="480" height="385"></embed></object>',
$task->text);
}
418-424
Code:
// --- config start ------------
$vid_minwidth = 20; $vid_minheight = 20; // min. display size
//$vid_maxwidth = 640; $vid_maxheight = 480; // max. display size
$vid_maxwidth = (int)(($fbConfig->rtewidth * 9) / 10); // Max 90% of text width
$vid_maxheight = 480; // max. display size
$vid_sizemax = 100; // max. display zoom in percent
// --- config end --------------
521
Code:
'youtube' => array ('flash', 425, 355, 0, 0, 'http://www.youtube.com/v/%vcode%&rel=1', '\/watch\?v=([\w\-]*)', array(array(6, 'wmode', 'transparent'))),
561-571
Code:
case 'flash':
$vid_par1 = array(
array(1, 'classid', 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'),
array(1, 'codebase', 'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab'),
array(2, 'movie', $vid_source),
array(4, 'src', $vid_source), array(4, 'type', 'application/x-shockwave-flash'),
array(4, 'pluginspage', 'http://www.macromedia.com/go/getflashplayer'),
array(6, 'quality', 'high'), array(6, 'allowFullScreen', 'true'), array(6, 'allowScriptAccess', 'never'),
array(5, 'width', $vid_width), array(5, 'height', $vid_height));
$vid_allowpar = array('flashvars', 'wmode', 'bgcolor', 'quality');
break;