Kunena 7.1.1 & Kunena 6.4.17 – Security Updates Released
The Kunena team has announce the arrival of Kunena 7.1.1 [K 7.1.1] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x./6.2.x This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 / K7.0 and issues discovered during the last development stages of K 7.1
Just a reminder: K6.4.17 receives only securities fixes until end of 2026, so it's advised for users to upgrade to K7.1.
Question Changing the size of video on youtube
Search for this line:
Here you can change the first number 425 (the width) to a larger number, and you can do the same for the second number (the height).
To avoid black space appearing within the frame, try go for natural combinations, such as 560x349, 640x390, 853x510, 1280x750 (to confirm, you can find these combinations on any YouTube video page when you click "embed" and you need to select an embed size).
And you can do so for videos from other sites too, just look above the YouTube line.
You should also check (in the same file) if your maximum height and width are not exceeded. If you are setting values greater than the maximum, then you should change the maximums by editing these lines:
I set mine to
Remember that if your videos are large you should encourage your users to embed videos with high definitions (or you can tell a moderator to replace the embed links with links to higher definition versions).
To see how these settings work for me, look at this video on my forum: click here
The black space is part of the video. You'll see that in the introduction the whole video frame is filled with colour.
Hope this helps! Took me a whole Saturday to figure out.
Adriaan wrote: I wondered the same thing for my forum. There is no setting that you can change. But you can edit a file on your server: go to components/com_kunena/lib/ and then edit the file called kunena.parser.php
Search for this line:Code:'youtube' => array ('flash', 425, 355, 0, 0, 'http://www.youtube.com/v/%vcode%?fs=1&hd=0&rel=1', '\/watch\?v=([\w\-]*)' , array (array (6, 'wmode', 'transparent' ) ) ),
Here you can change the first number 425 (the width) to a larger number, and you can do the same for the second number (the height).
To avoid black space appearing within the frame, try go for natural combinations, such as 560x349, 640x390, 853x510, 1280x750 (to confirm, you can find these combinations on any YouTube video page when you click "embed" and you need to select an embed size).
And you can do so for videos from other sites too, just look above the YouTube line.
You should also check (in the same file) if your maximum height and width are not exceeded. If you are setting values greater than the maximum, then you should change the maximums by editing these lines:
thats good an change line about 778 to bi like this
// --- config start
//$vid_minwidth = 200;
$vid_minheight = 44; // min. display size
$vid_maxwidth = 640; $vid_maxheight = 480; // max. display size
//$vid_maxwidth = ( int ) (($kunena_config->rtewidth * 9) / 10); // Max 90% of text width
$vid_maxheight = 720; // max. display size
$vid_sizemax = 100; // max. display zoom in percent
// --- config end
- itqan-2010
-
- Offline
- New Member
-
- Posts: 9
- Thank you received: 0
if ($kunena_config->autoembedyoutube) {
// convert youtube links to embedded player
$task->text = preg_replace ( '/<a href=[^>]+\/\/(\w+\.youtube\.[^\/]+)\/watch\?[^>]*v=([^>"&\']+)[^>]+>[^<]+<\/a>/u', '<object width="540" height="344"><param name="movie" value="http://$1/v/$2&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://$1/v/$2&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="540" height="344"></embed></object>', $task->text );
cbange the object width and height ...... and change it beside "true" width and height too
i hope that will be helpful ... and will work for you .......... i am talking about kunena 1.7.1 i do not know if that will work with any other version ........
and has always 425 even if I type another width manually.
I tried to edit file kunena.parser.php but it doesn't work at all.
Is it impossible to embed in Kunena video without black bars and with size which I want ?
I agree with darek. I've tried changing the settings in the parse file, but it doesn't seem to work.darek795 wrote: Why this video isn't embeded properly - It has black bars above and under,
and has always 425 even if I type another width manually.
Ideally I just want a 16:9 video to show as 16:9, rather than 16:9 in a 4:3 box?
Any more developments on this?