coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: disposition on January 29, 2008, 01:35:29 AM

Title: Take out width and height
Post by: disposition on January 29, 2008, 01:35:29 AM
Hi,

I am looking to take out (width and height) because it is not needed on my gallery.  Hope you can help.
Title: Re: Take out width and height
Post by: Joachim Müller on January 29, 2008, 07:59:58 AM
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.
Title: Re: Take out width and height
Post by: disposition on January 29, 2008, 04:18:08 PM
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!
Title: Re: Take out width and height
Post by: Nibbler on January 29, 2008, 05:17:07 PM
Does this only happen with mp3 files? If so, did you tell Coppermine it was a movie?
Title: Re: Take out width and height
Post by: disposition on January 29, 2008, 05:44:13 PM
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.
Title: Re: Take out width and height
Post by: Joachim Müller on January 29, 2008, 05:45:22 PM
What's the mime type of MP3's set to in the filetypes table?
Title: Re: Take out width and height
Post by: 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?
Title: Re: Take out width and height
Post by: disposition on January 29, 2008, 06:05:14 PM
Quote from: Joachim Müller on January 29, 2008, 05:45:22 PM
What's the mime type of MP3's set to in the filetypes table?

audio/mpeg3
Title: Re: Take out width and height
Post by: disposition on January 29, 2008, 06:10:35 PM
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.
Title: Re: Take out width and height
Post by: Nibbler on January 29, 2008, 06:12:25 PM
Change

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

to just

if (is_movie($file_set[1])) {
Title: Re: Take out width and height
Post by: disposition on January 29, 2008, 06:20:16 PM
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!
Title: Re: Take out width and height
Post by: disposition on January 29, 2008, 06:20:46 PM
Did I say Sundays, Where am I !  I meant of course Tuesdays!