Page Index Toggle Pages: 1
Topic Tools
Normal Topic Media resize (Read 1,462 times)
------
Senior Member
Beta Testers
****
Offline



Posts: 528
Media resize
Jun 12th, 2010 at 1:31pm
Post Tools
I remember doing this before, I just can't find it again.

I want to change the size of how YouTube videos are displayed on the forum.

How do I do that?
« Last Edit: Jun 12th, 2010 at 2:20pm by ------ »  
Back to top
 
IP Logged
 
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Media resize
Reply #1 - Jun 12th, 2010 at 2:39pm
Post Tools
Code
Select All
[media width=720 height=480]http://www.youtube.com/watch?v=MymMhj3Vgww[/media] 



  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
------
Senior Member
Beta Testers
****
Offline



Posts: 528
Re: Media resize
Reply #2 - Jun 12th, 2010 at 3:16pm
Post Tools
Thanks Jet,

If I remember correctly, somewhere in the admin section there is a setting I can use for every video instead of just one at a time.
  
Back to top
 
IP Logged
 
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Media resize
Reply #3 - Jun 12th, 2010 at 3:19pm
Post Tools
------ wrote on Jun 12th, 2010 at 3:16pm:
If I remember correctly, somewhere in the admin section there is a setting I can use for every video instead of just one at a time.

nah! Only for Images.
  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
------
Senior Member
Beta Testers
****
Offline



Posts: 528
Re: Media resize
Reply #4 - Jun 12th, 2010 at 4:00pm
Post Tools
From Mediacenter.pl

Code
Select All
	if ($play_pars =~ m/width\=(\d{2,3})/i){
			$tempwidth= $1;
			if ($tempwidth >= 180 || $tempwidth <= 800){
				$pl_width = int($tempwidth);
				$pl_height = int(($pl_width*3)/4) + $controlheight;
			} else {
				$pl_width = 320;
				$pl_height = 240 + $controlheight;
			}
		} else {
			$pl_width = 320;
			$pl_height = 240 + $controlheight; 



Are these the values to change?
« Last Edit: Jun 12th, 2010 at 4:06pm by ------ »  
Back to top
 
IP Logged
 
------
Senior Member
Beta Testers
****
Offline



Posts: 528
Re: Media resize
Reply #5 - Jun 15th, 2010 at 5:47pm
Post Tools
Yes

I changed 320 to 640 and 240 to 480

Works!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools