×
Kunena 5.1.5 Released - Security Release (14 Oct 2018)

The Kunena team has announce the arrival of Kunena 5.1.5 [K 5.1.5] which is now available for download as a native Joomla extension for J! 3.8.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1. This is a Security release.

Question Change Default Video Size:

More
2 years 4 months ago #1 by TornSoul
Right now all videos are posted at 480pxx360px in the Blue Eagle theme. I can't find anyplace in the ACP to change it.

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #2 by TornSoul
Replied by TornSoul on topic Change Default Video Size:
So...I figured out how to do this in case anyone else is wondering. This is to change the default height and width for posted Youtube videos.

In the ACP, go to Config -> Front end, and change the text area to the size of Youtube video you want to be default. I did 720x405 for 16x9 videos.

Then go to

[ROOT]/libraries/kunena/bbcode/ and edit two lines:
				if ($uri->isSSL())
				{
					return '<iframe width="CHANGE THIS" height="CHANGE THIS" src="https://www.youtube.com/embed/' . urlencode($video) . '" frameborder="0" allowfullscreen></iframe>';
				}
				else
				{
					return '<iframe width="CHANGE THIS" height="CHANGE THIS" src="https://www.youtube.com/embed/' . urlencode($video) . '" frameborder="0" allowfullscreen></iframe>';
				}

then, scroll down towards the bottom and find this line:
'youtube' => array ('iframe', CHANGE THIS TO YOUR WIDTH, CHANGE THIS TO YOUR HEIGHT, 0, 0, 'https://www.youtube.com/embed/%vcode%', '\/watch\?v=([\w\-]*)' , array (array (6, 'wmode', 'transparent' ) ) ),

:)

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Time to create page: 2.272 seconds