- Posts: 4
- Thank you received: 0
Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 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
Question Somethings limiting my YouTube Videos to a width of 225
17 years 3 weeks ago - 17 years 3 weeks ago #11296
by jekl
Somethings limiting my YouTube Videos to a width of 225 was created by jekl
Hi there!
My Problem is that my embedded youtube videos are limited to a width of 255
I searched everything, but i can´t find it. If i change the value in firebug it works.
Any idea?!
Thx jekl
Joomla 1.5.10 (but also in 1.5.9)
Kunena 1.08 both working in german
My Problem is that my embedded youtube videos are limited to a width of 255
Code:
<embed height="355" width="225" wmode="transparent" allowscriptaccess="never" allowfullscreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"...etc.
I searched everything, but i can´t find it. If i change the value in firebug it works.
Any idea?!
Thx jekl
Joomla 1.5.10 (but also in 1.5.9)
Kunena 1.08 both working in german
Last edit: 17 years 3 weeks ago by jekl.
Please Log in or Create an account to join the conversation.
17 years 4 days ago - 17 years 4 days ago #13716
by BiO
Replied by BiO on topic Re:Somethings limiting my YouTube Videos to a width of 225
In Components/com_kunena/lib/kunena.parser.php
Something at lines 425>431 limiting the width of all videos
If you comment all lines like this
Then Width & Height below (Lines 464>529) works, Youtube is at line 528. But it will be great if developers add an option to control this in administrator panel of Kunena.
I forgot to say i'm using Kunena 1.0.9.
Something at lines 425>431 limiting the width of all videos
If you comment all lines like this
Code:
// --- config start ------------
//$vid_minwidth = 20; $vid_minheight = 20; // min. display size
$vid_maxwidth = 640; $vid_maxheight = 480; // max. display size
//$vid_maxwidth = (int)(($GLOBALS["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 --------------
Then Width & Height below (Lines 464>529) works, Youtube is at line 528. But it will be great if developers add an option to control this in administrator panel of Kunena.
I forgot to say i'm using Kunena 1.0.9.
Last edit: 17 years 4 days ago by BiO.
Please Log in or Create an account to join the conversation.
17 years 4 days ago - 17 years 4 days ago #13718
by BiO
Replied by BiO on topic Re:Somethings limiting my YouTube Videos to a width of 225
In the same file replace this code
With this
To add HQ button for HD videos.
Hope this help.
BiO.
Code:
// 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);
With this
Code:
// convert youtube links to embedded player
$task->text = preg_replace('/<a href=[^>]+youtube.([^>\/]+)\/watch\?[^>]*v=([^>"&]+)[^>]+>[^<]+<\/a>/',
'<object width="560" height="340"><param name="movie" value="http://www.youtube.$1/v/$2&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.$1/v/$2&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="560" height="340"></embed></object>',
$task->text);
To add HQ button for HD videos.
Hope this help.
BiO.
Last edit: 17 years 4 days ago by BiO.
Please Log in or Create an account to join the conversation.
Time to create page: 0.222 seconds