forum.coppermine-gallery.net
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
-
Hi,
I am looking to take out (width and height) because it is not needed on my gallery. Hope you can help.
-
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.
-
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!
-
Does this only happen with mp3 files? If so, did you tell Coppermine it was a movie?
-
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.
-
What's the mime type of MP3's set to in the filetypes table?
-
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?
-
What's the mime type of MP3's set to in the filetypes table?
audio/mpeg3
-
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.
-
Change
if((is_movie($file_set[1])) or (is_audio($file_set[1]))) {
to just
if (is_movie($file_set[1])) {
-
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!
-
Did I say Sundays, Where am I ! I meant of course Tuesdays!