Keyword

Different Size Pop Ups for Different Size Videos

  • IamBadAtThis
  • IamBadAtThis's Avatar Topic Author
  • Offline
  • New Member
More
14 years 9 months ago #33922 by IamBadAtThis
After a quick search I figured out how to set different sizes for the videos on my site using the {mov}file_name|950|540{/mov} method. 

Is there a way to set individual proportions for the pop-ups? Or to change the Pop up height and width parameter to be a percent of the default?

Any clues would be much appreciated thanks!

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

  • IamBadAtThis
  • IamBadAtThis's Avatar Topic Author
  • Offline
  • New Member
More
14 years 9 months ago #33923 by IamBadAtThis
Replied by IamBadAtThis on topic Re: Different Size Pop Ups for Different Size Videos
I tried just pointing everything to the width and height in the jw_allvideos.php  first like this:
<script type="text/javascript">
	//<![CDATA[
	window.addEvent(\'domready\', function() {
		AllVideosLightBox.Init({
			AVLBWidth:'.$vwidth.',
			AVLBHeight:'.$vheight.'
		});
		AllVideosEmbed.Init();
	});
	//]]>
</script>

then:
		$lightboxWidth			= ($params->get('vwidth')) ? $params->get('vwidth') : $pluginParams->get('vwidth',400);
		$lightboxHeight			= ($params->get('vheight')) ? $params->get('vheight') : $pluginParams->get('vheight',300);




but neither seemed to have any affect...which seemed weird too, I thought it would at least break something, but just nothing changed.

Again any thoughts would be much appreciated, I'm quite new to the whole php, xml, joomla world but really want to learn.

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


Powered by Kunena Forum