forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: omniscientdeveloper on March 01, 2005, 02:03:12 pm

Title: Can't input dimensions of video
Post by: omniscientdeveloper on March 01, 2005, 02:03:12 pm
I just noticed that I can't input the dimensions of a video file when it's being uploaded. The textboxes are there, but the information doesn't get stored in the database.

Can someone confirm this?

-omni
Title: Re: Can't input dimensions of video
Post by: donnoman on March 03, 2005, 06:18:39 am
I can't tell, on any media the admin menus aren't coming up neither is voting, comments, etc.
Title: Re: Can't input dimensions of video
Post by: donnoman on March 03, 2005, 06:33:15 am
resulting sql:
Code: [Select]
INSERT INTO cpg14x_pictures (pid, aid, filepath, filename, filesize, total_filesize, pwidth, pheight, ctime, owner_id, owner_name, title, caption, keywords, approved, user1, user2, user3, user4, pic_raw_ip, pic_hdr_ip, position) VALUES ('', '36', 'userpics/10001/', 'joke.mov', '2480407', '2480407', '', '', '1109827495', '1', 'admin','', '', '', 'YES', '', '', '', '', '192.168.2.94', '192.168.2.94', '0')


the call from upload.php
Code: [Select]
            // Create thumbnail and internediate image and add the image into the DB
            $result = add_picture($album, $filepath, $picture_name, 0,$title, $caption, $keywords, $user1, $user2, $user3, $user4, $category, $raw_ip, $hdr_ip, $movie_wd, $movie_ht);

Definition of function add_picture in picmgmt.inc.php
Code: [Select]
// Add a picture to an album
function add_picture($aid, $filepath, $filename, $position = 0, $title = '', $caption = '', $keywords = '', $user1 = '', $user2 = '', $user3 = '', $user4 = '', $category = 0, $raw_ip = '', $hdr_ip = '')

I think you need to complete the chain in add_picture.
Title: Re: Can't input dimensions of video
Post by: omniscientdeveloper on March 03, 2005, 02:53:15 pm

It looks like someone changed the parameters then, because it used to work.
Title: Re: Can't input dimensions of video
Post by: Joachim Müller on July 31, 2005, 12:14:15 pm
[moderation]
bumping this unresolved thread to the top...
Title: Re: Can't input dimensions of video
Post by: Joachim Müller on September 06, 2005, 11:23:32 am
needs looking into, could a dev volunteer please?
Title: Re: Can't input dimensions of video
Post by: omniscientdeveloper on September 12, 2005, 06:38:57 am
I'll take a look at it.
Title: Re: Can't input dimensions of video
Post by: omniscientdeveloper on September 12, 2005, 04:38:37 pm
Committed fix to picmgmt.inc.php.