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: Thumbnail issue - not showing default images for non-picture files  (Read 6550 times)

0 Members and 1 Guest are viewing this topic.

LeoJr2006

  • Coppermine newbie
  • Offline Offline
  • Posts: 6

Just wondering if there is a way to display a generic thumbnail of non-image files, instead of them coming up as red x's.

http://airgunbbs-usa.com

The videos dont show a thumbnail.

« Last Edit: August 26, 2006, 07:06:29 am by GauGau »
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Thumbnail issue
« Reply #1 on: August 26, 2006, 06:40:29 am »

Just wondering if there is a way to display a generic thumbnail of non-image files, instead of them coming up as red x's.

http://airgunbbs-usa.com

The videos dont show a thumbnail.

Strange, it does support wmv as an extension to use the default CPG image on.

Okay,  congrats - you found a bug.

Open up in an editor cpmfetch_dao.php

THIS ONLY APPLIES TO 1.6.3 and before - as of version 1.6.4 fixes this

Find line #758

Code: [Select]
$imagetoshow = $this->partialUrltoalbums . 'images/' . $this->getdefaultimagename($extension);
Change it to this:

Code: [Select]
$imagetoshow = $this->partialUrltocpm . 'images/' . $this->getdefaultimagename($extension);

Worked in my test case here.  Once I get my package builder working I will post it as 1.6.4 on the web site, but that could be a day or two.

EDIT:  Version 1.6.4 was posted on 8/26/2006. 



« Last Edit: August 26, 2006, 03:23:12 pm by vuud »
Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

LeoJr2006

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Thumbnail issue - not showing default images for non-picture files
« Reply #2 on: August 26, 2006, 08:03:30 am »

Worked here too, great. Thanks again, you're right on top of things here. ;)

Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.