coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: MonkeyManx on February 27, 2005, 06:22:26 AM

Title: default video dimensions?
Post by: MonkeyManx on February 27, 2005, 06:22:26 AM
Is there a way to change the default video dimensions?
Title: Re: default video dimensions?
Post by: Joachim Müller on February 27, 2005, 09:25:25 AM
not sure what you mean. What's a default video dimension? You have to specify the width and height of every video you upload, if you want the videos to display properly in all most browsers. See http://coppermine.sourceforge.net/manual.php#edit_vids

Joachim
Title: Re: default video dimensions?
Post by: MonkeyManx on February 27, 2005, 07:40:11 PM
Like when it asks you to enter the height and width the default number in the box is 0. Could that number be changed?
Title: Re: default video dimensions?
Post by: damscot on April 24, 2005, 02:34:00 AM
This question has no aswer...  ???

And I'm currently facing the same issue... is there any way
to define anew default video size with something else than 0x0.

Does this information can be part of the main coppermind admin configuration.

Thanks.
Damien.
Title: Re: default video dimensions?
Post by: Nibbler on April 24, 2005, 05:33:26 PM
The answer is trivial, hence little response.

upload.php, find:

<input type="text" style="width: 100%" name="$name" maxlength="$max_length" value="" class="textinput">

change to

<input type="text" style="width: 100%" name="$name" maxlength="$max_length" value="$value" class="textinput">

and above

// Create a text box.

add

$value = $name == 'movie_wd' ? '123' : ($name == 'movie_ht' ? '456' : '');

123 is default width, 456 is default height.