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: Problems with video thumbnails  (Read 5661 times)

0 Members and 1 Guest are viewing this topic.

roberto8080

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Problems with video thumbnails
« on: September 19, 2005, 07:55:28 am »

Hello I just installed CPG (great!) but it doesn't show generic thumbnails for videos.

For example:
http://www.roberto.metaluxo.com/fotogaleria1/thumbnails.php?album=4

The last file is a video, but I can't see the generic thumbnail.

The webhosting is Apache 1.3 on FreeBSD and PHP 4.3.11, this is weird because I tested the same file locally (Fedora Core 4, Apache 2.0, PHP5) and it worked fine. The thumb_movie.jpg file is there, but for a reason is not assigned to the video.

Any help?
« Last Edit: September 26, 2005, 08:33:48 pm by GauGau »
Logged

roberto8080

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Problems with video thumbnails
« Reply #1 on: September 19, 2005, 11:20:21 pm »

The problem isn't just with video but with any other file besides images (xls, pdf, swf...), when I insert them in batch mode the preview is just a broken image, and when I try to recreate the thumbnails using the Admin tools, the thumbs for the images are OK but the thumbs for videos says:

ERROR creating:$thumb
Logged

roberto8080

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Problems with video thumbnails
« Reply #2 on: September 24, 2005, 02:35:24 am »

Any idea?
Logged

roberto8080

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Problems with video thumbnails
« Reply #3 on: September 24, 2005, 08:32:54 pm »

I was thinking to just hard coded (if the variable is empty just assign a default image)  but I can't find where CPG determine what thumbnail should use for videos or Excel files, etc...
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Problems with video thumbnails
« Reply #4 on: September 25, 2005, 06:29:37 pm »

now this is strange: even with english as language and the default theme classic, the <img src> doesn't get populated, this is part of the html output I get on your page:
Code: [Select]
        <td valign="top" class="thumbnails" width ="25%" align="center">
                <table width="100%" cellpadding="0" cellspacing="0">

                        <tr>
                                <td align="center">
                                        <a href="displayimage.php?album=4&pos=7"><img src="" class="image" width="0" height="0" border="0" alt="Video_020505_002.asf" title="Filename : Video_020505_002.asf
Filesize : 6289KB
Dimensions : 0x0
Date added : Sep 18, 2005"><br /></a>
                                        <span class="thumb_title">4 views</span>
                                       
                                </td>
                        </tr>
                </table>
        </td>
Did you modify any of coppermine's core files?
Logged

roberto8080

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Problems with video thumbnails
« Reply #5 on: September 26, 2005, 08:14:34 pm »

Yeah very weird, I just modified the theme and the Spanish language file.

Anyway, I did a fresh install and everything works fine now (http://www.roberto.metaluxo.com/fotogaleria), I suspect that some files were corrupted during the previous transfer, I'm not sure.

But now everything is fine :D Thanks.
Logged

Trev98

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Problems with video thumbnails
« Reply #6 on: February 11, 2006, 12:13:58 am »

Yeah very weird, I just modified the theme and the Spanish language file.

Anyway, I did a fresh install and everything works fine now (http://www.roberto.metaluxo.com/fotogaleria), I suspect that some files were corrupted during the previous transfer, I'm not sure.

But now everything is fine :D Thanks.
OK, I know this is an old post but I wanted to respond since I had this exact same problem. In my situation, I had changed the default thumbnail prefix to "tn_" instead of "thumb_". So, when CM went to look for the PDF, DOC, video thumbnails, it used the new prefix instead of the default, which is how the files are named. The fix for me was renaming everything with "thumb_" (for example, "thumb_pdf.jpg") to "tn_".

There's probably a more elegant fix by editing the PHP to avoid using the custom thumbnail prefix for these images, but whatever. This works. Hope that helps someone else too.  ;D

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Problems with video thumbnails
« Reply #7 on: February 11, 2006, 10:35:27 pm »

issue only exists in outdated versions of coppermine, has been fixed in later versions. Update to the most recent version cpg1.3.5
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 20 queries.