Coppermine should also allow Video - Page 7 Coppermine should also allow Video - Page 7
 

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

Coppermine should also allow Video

Started by Tarique Sani, October 22, 2003, 10:43:04 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

OpalCat

I would be interested in that feature as well--being able to manually make and upload thumbs for movies.

Casper

@ opalcat and bulldozer

Moved this topic to the thread dealing with video file uploads.  Please read it through, as there has been discussion on the thumbnails for these files.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

OpalCat

Quote from: "jeeplaw"Interesting thought there, but would coding it to have the program create a thumb of the first frame for each vid be just as convenient?

That might work for some things... but sometimes a video may have, say, a black screen as the first frame. Or something else that doesn't really "id" the clip. I think that in a perfect universe, the option to have thumbs generated or upload your own should be a choice you get to make... but if I could only have one of the two, I'd opt for uploading my own.

Burpee

I have to leave in like 10 minutes but I thought I'd post this anyway so I'll read the reply by the time I get back :P
I've installed the latest cpg video mod. I've also modified some stuff to parse the template so I can use includes.
Now for some strange reason it suddenly gives an error message as follows:
QuoteFatal error: Call to undefined function: is_movie() in /home/vuurwerk/public_html/*******/editpics.php on line 199

The URL is:
http://www.vuurwerklook.com/*******/

The piece of code it's referring to is as follows:
function form_pic_info($text)
{
    global $CURRENT_PIC, $THUMB_ROWSPAN, $CONFIG, $lang_byte_units, $lang_editpics_php;

    if (UPLOAD_APPROVAL_MODE) {
        $pic_info = $CURRENT_PIC['pwidth'] . ' × ' . $CURRENT_PIC['pheight'] . ' - ' . ($CURRENT_PIC['filesize'] >> 10) . $lang_byte_units[1];
        if ($CURRENT_PIC['owner_name']) {
            $pic_info .= ' - <a href ="profile.php?uid=' . $CURRENT_PIC['owner_id'] . '" target="_blank">' . $CURRENT_PIC['owner_name'] . '</a>';
        }
    } elseif (!is_movie($CURRENT_PIC['filename'])) {
        $pic_info = sprintf($lang_editpics_php['pic_info_str'], $CURRENT_PIC['pwidth'], $CURRENT_PIC['pheight'], ($CURRENT_PIC['filesize'] >> 10), $CURRENT_PIC['hits'], $CURRENT_PIC['votes']);
    } else {
        $pic_info = '<input type="text" name="pwidth'.$CURRENT_PIC['pid'].'" value="'.$CURRENT_PIC['pwidth'].'" size="5" maxlength="5" class="textinput" /> x ';
        $pic_info .= '<input type="text" name="pheight'.$CURRENT_PIC['pid'].'" value="'.$CURRENT_PIC['pheight'].'" size="5" maxlength="5" class="textinput" /> - ';
        $pic_info .=($CURRENT_PIC['filesize'] >> 10)."KB - ";
        $pic_info .=$CURRENT_PIC['hits']." views - ";
        $pic_info .=$CURRENT_PIC['votes']." votes";
    }


I'm hoping someone can fix this for me cuz I've got too big a headache and too many other worries besides all this right now. (please note that I only learnt how to work with PHP 2 weeks ago :P)

Totoro

Hello,

I've got basic questions considering themes I'd like to ask you before I make any mistake : ;)

I've installed Coppermine 1.2.1_mod_video_full. Should I
- use 1.2 themes ?
- use 1.2.1 themes ?

Thx a lot for your help
Regards

ToToRo

PS : sorry moderators, but I couldn't create a new topic in the Mod/Hack forum

Casper

Hi Totoro,

moved your post to the thread dealing with this mod.  There was no need for another topic.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Joachim Müller

as the mod name says 1.2.1, I'd go for 1.2.1 themes as well, but why don't you just try for yourself? Just download an 1.2 theme, upload it to your server and test-drive it...

GauGau

Totoro

Quote from: "gaugau"as the mod name says 1.2.1, I'd go for 1.2.1 themes as well, but why don't you just try for yourself? Just download an 1.2 theme, upload it to your server and test-drive it...

GauGau

I'll try !

Thx a lot :)

omniscientdeveloper

@totoro
I don't see why it wouldn't work. The code that displays the image is part of the core, not the theme, so it should work.


@burpee
Make sure is_movie() is in your functions.inc.php file--that's where it should be for that version of the mod. If it's not, then your functions.inc.php file is incorrect. You can also look in the init.inc.php file, but I'm sure it's in the functions.inc.php file.

Burpee

Quote from: "omniscientdeveloper"@burpee
Make sure is_movie() is in your functions.inc.php file--that's where it should be for that version of the mod. If it's not, then your functions.inc.php file is incorrect. You can also look in the init.inc.php file, but I'm sure it's in the functions.inc.php file.

Thnx lol
When I modified the functions.inc.php to parse the templates I modified
the non-video version and uploaded it (I think :P).
Now on to the next obstacle in customizing... trying to combine phpBB's
cascading style sheet and Coppermine's... *deep sigh*

work4nutz

is there going to be support for Real Media (RM) files?
Have No Fear, I Is Here
------------------------------------------
http://www.work4nutz.com/ - 107.000+ Anime Images and still growing (sorted by series & characters)

Currently Running CPG-Nuke 8.2b

SideShowJohn

Thanks omniscientdeveloper, just what I needed.

The issue I have seems to fall in line with others:
Inconsistency in video playback. For the most part, the videos play fine.  I am on winxp, and I have windows media player set as my default mpeg player. However, sometimes when I click on a MPEG link, The full size flashes, then the movie area shrinks, and only the control buttons show, then IE crashes, quickly. I then restart, and it crashes again. Then I reboot my box, and it works....until I try an hour later. I can reproduce this at home. At work, with the same version of IE, same patches, it never crashes...fascinating.

Anyone else experience IE crashing?
-------------------------
SideShow

Joachim Müller

what would you expect from Redmond? An OS that never crashes? :wink:

GauGau

Jaero

Quote from: "omniscientdeveloper":) (I've already thought of that.)

Like gaugau said, this is more of a beta release. The final version will have that capability. It'll be accomplished by uploading a pic with "thumb_" as the prefix (or whatever is set in the config) and the extension being either a jpg or png.

Example:

video name: myvideo.wmv
thumb name: thumb_myvideo.jpg or thumb_myvideo.png

(ofcourse coppermine can do the resizing, so the user won't have to do it)

Please forgive me if the nature of this question is 'noobish'. I don't know too much of PHP, nor of complicated programs such as this (though I love it). I do not think I have GD or ImageMagick installed, nor do I know if that would solve my problem, but above you mentioned being able to submit a thumbnail along with your file. The thumbs for my documents and non-image files in my album listing display as the icon(s) made for this mod - is there a way to have a custom thumb for each file?

Again, I apologize if this sounds utterly uninformed and/or redundant, but I wasn't able to find any other information on this, or at least recognize it with my limited knowledge of this sort of program.

Thanks in advance for your help.
Jaero - jaero@warcry.com
Site Manager - ME Warcry
http://me.warcry.com

Joachim Müller

at the moment, this feature doesn't exist yet.

GauGau



dondo521

When I try to batch add my movies I get that broken picture "X" thing in the result column. Is this a GD issue? Does this only work with IM?
Curious what I am doing wrong.

Thanks,

dondo521


omniscientdeveloper

@lance:
Question #1: The feature you're requesting isn't possible right now.
Question #2: Make sure you select the folder you want it to be uploaded to. That error is most likely caused when you don't select an upload folder.

@dondo:
Neither GD nor IM handle videos, so no it's not an IM issue. Verify that your files are url friendly, ie., no spaces, no quotes, etc. Sometimes you can get away with it. Sometimes you can't.