Default Video Size Default Video Size
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Default Video Size

Started by pftq, October 14, 2006, 09:42:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pftq

Hi there.  I've been searching for a while, but I can't seem to find anything about this.

Is there a way to set a default size for videos? As in instead of being 0x0 when first uploaded, change it to something like 720x480?

Nibbler


pftq

I found it.. but I can't really figure out what to do.  The value field is filled with $default

Should I overwrite $default?

Sami

Above the

// Create a text box.


Just add this


$default = $name == 'movie_wd' ? '123' : ($name == 'movie_ht' ? '456' : '');
‍I don't answer to PM with support question
Please post your issue to related board

pftq

Urgh - not working.  It still defaults to 0x0 :-[

$default = $name == 'movie_wd' ? '720' : ($name == 'movie_ht' ? '480' : ''); //vidsize
    // Create a text box.
    echo <<<EOT
        <tr>
            <td width="40%" class="tableb">
                        $text  $ordinal
        </td>
        <td width="60%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="$name" maxlength="$max_length" value="$default" class="textinput" id="$name" />
                </td>
        </tr>

EOT;

Nibbler

Works for me. Explain what you are doing in detail.

pftq

When I add a video to the gallery (wmv) through batch file upload, it goes into an album and the dimensions in the file info are 0x0

Nibbler

Batch add works completely differently, the mod we are discussing does not even apply.

pftq

Oh... what would apply to that then?  ???

I add all my files via batch (too many for selecting one by one). :-\