Kunena 7.0.2 Released
The Kunena team has announce the arrival of Kunena 7.0.2 [K 7.0.2] in stable which is now available for download as a native Joomla extension for J! 5.3.x/5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
This is for users to help other users, to discuss topics that are related to forum administration in general or problems in running Joomla. This is not the place to ask for Joomla support. If you want assistance with Joomla please ask at
forum.joomla.org
Question Changing the size of video on youtube
15 years 8 months ago #50810
by andresc2
Replied by andresc2 on topic Re: You can't change the physical attributes of a YouTube video
Thank you very much. i guess i have to edit the movie thanks.
The topic has been locked.
15 years 1 month ago - 15 years 1 month ago #86287
by Adriaan
Replied by Adriaan on topic Re: Changing the size of video on youtube
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:
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.
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:
Code:
$vid_maxwidth = ( int ) (($kunena_config->rtewidth * 9) / 10); // Max 90% of text width
$vid_maxheight = 720; // max. display size
I set mine to
Code:
$vid_maxwidth = 853;
$vid_maxheight = 510;
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.
Last edit: 15 years 1 month ago by Adriaan.
The topic has been locked.
14 years 9 months ago #96718
by milas
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
Replied by milas on topic Re: Changing the size of video on youtube
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
The topic has been locked.
- itqan-2010
-
- Offline
- New Member
-
Less
More
- Posts: 9
- Thank you received: 0
14 years 1 month ago #116391
by itqan-2010
Replied by itqan-2010 on topic Re: Changing the size of video on youtube
i think you need change both of height and width in these two lines in the same file that Adriann told you about
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">', $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 ........
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">', $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 ........
The topic has been locked.
14 years 1 month ago - 14 years 3 days ago #116963
by darek795
Replied by darek795 on topic Re: Changing the size of video on youtube
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.
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 ?
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 ?
Last edit: 14 years 3 days ago by CheechDogg.
The topic has been locked.
14 years 3 days ago #120697
by djcammy
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?
Replied by djcammy on topic Re: Changing the size of video on youtube
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?
The topic has been locked.
Time to create page: 0.290 seconds