Thumbnail issue - not showing default images for non-picture files Thumbnail issue - not showing default images for non-picture files
 

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

Thumbnail issue - not showing default images for non-picture files

Started by LeoJr2006, August 26, 2006, 06:15:43 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LeoJr2006

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.


vuud

#1
Quote from: LeoJr2006 on August 26, 2006, 06:15:43 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

$imagetoshow = $this->partialUrltoalbums . 'images/' . $this->getdefaultimagename($extension);

Change it to this:

$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. 



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

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