Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Take out width and height  (Read 18174 times)

0 Members and 1 Guest are viewing this topic.

disposition

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Take out width and height
« 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.
« Last Edit: January 29, 2008, 06:46:38 pm by Nibbler »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Take out width and height
« Reply #1 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.
Logged

disposition

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Re: Take out width and height
« Reply #2 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!
Logged

Nibbler

  • Guest
Re: Take out width and height
« Reply #3 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?
Logged

disposition

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Re: Take out width and height
« Reply #4 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Take out width and height
« Reply #5 on: January 29, 2008, 05:45:22 pm »

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

Nibbler

  • Guest
Re: Take out width and height
« Reply #6 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.

Code: [Select]
    // 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?
Logged

disposition

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Re: Take out width and height
« Reply #7 on: January 29, 2008, 06:05:14 pm »

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

audio/mpeg3
Logged

disposition

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Re: Take out width and height
« Reply #8 on: January 29, 2008, 06:10:35 pm »

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

Code: [Select]
    // 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.
Logged

Nibbler

  • Guest
Re: Take out width and height
« Reply #9 on: January 29, 2008, 06:12:25 pm »

Change

Code: [Select]
if((is_movie($file_set[1])) or (is_audio($file_set[1]))) {
to just

Code: [Select]
if (is_movie($file_set[1])) {
Logged

disposition

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Re: Take out width and height
« Reply #10 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!
Logged

disposition

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Re: Take out width and height
« Reply #11 on: January 29, 2008, 06:20:46 pm »

Did I say Sundays, Where am I !  I meant of course Tuesdays!
Logged
Pages: [1]   Go Up
 

Page created in 0.029 seconds with 19 queries.