Take out width and height Take out width and height
 

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

Take out width and height

Started by disposition, January 29, 2008, 01:35:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

disposition

Hi,

I am looking to take out (width and height) because it is not needed on my gallery.  Hope you can help.

Joachim Müller

Those fields don't show by default - they must be "Custom fields for image description" that you deliberately set up in coppermine's config. Empty those fields in coppermine's config to stop them from being displayed.

disposition

Thanks for the reply.

It  has sort of always been there but it wasn't the most important thing on my list.  I attached the photo to show you I didn't have a custom image description.  If there is a custom image description it doesn't show up for some reason.  Maybe I am possibly blind, we will see I guess.

Thanks!

Nibbler

Does this only happen with mp3 files? If so, did you tell Coppermine it was a movie?

disposition

I am sure it happens any time the windows media player is used.  I have mp3 set for windows media player.  Since I do not need anybody to actually size there video I want to just take it (width and Height) out.

Joachim Müller

What's the mime type of MP3's set to in the filetypes table?

Nibbler

Code is in upload.php. If you definitely don't need it then comment it out, otherwise adapt it to ignore mp3 files.


    // Check for movies and audio, and create width and height boxes if true.
    if((is_movie($file_set[1])) or (is_audio($file_set[1]))) {

        //Add width and height boxes to the form.
        $form_array[] = array($lang_admin_php['th_wd'],'movie_wd', 0, 4, 1);
        $form_array[] = array($lang_admin_php['th_ht'],'movie_ht', 0, 4, 1);

    }


PS. Why does it ask width/height for audio in the first place?

disposition


disposition

Quote from: Nibbler on January 29, 2008, 05:57:32 PM
Code is in upload.php. If you definitely don't need it then comment it out, otherwise adapt it to ignore mp3 files.


    // Check for movies and audio, and create width and height boxes if true.
    if((is_movie($file_set[1])) or (is_audio($file_set[1]))) {

        //Add width and height boxes to the form.
        $form_array[] = array($lang_admin_php['th_wd'],'movie_wd', 0, 4, 1);
        $form_array[] = array($lang_admin_php['th_ht'],'movie_ht', 0, 4, 1);

    }


PS. Why does it ask width/height for audio in the first place?

I am not sure why it asks for that, it has always been that way and I forgot about trying to fix it until l now.  I will probably just take it out in general unless you come back to me and tell me you know a better way.

Nibbler

Change

if((is_movie($file_set[1])) or (is_audio($file_set[1]))) {

to just

if (is_movie($file_set[1])) {

disposition

Yeah!  That worked good, Thanks for the fix!  Still not sure why it was like that but no worries now.

Good to see your open on SUNDAYS!

Dan-

Thanks again!

disposition

Did I say Sundays, Where am I !  I meant of course Tuesdays!