How to combine 2 album files to 1 image How to combine 2 album files to 1 image
 

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

How to combine 2 album files to 1 image

Started by desert_dave, November 08, 2004, 12:28:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

desert_dave

My site is all slideshows for download: http://creatingslideshows.com/coppermine/cpg132
So all the files are zip files. Now that looks like crap so I upload a thumbnail to the album to use for show. Now that creates 2 files per album, basically a lot of useless work, it's a little confusing to the users and creates a most viewed file of these useless jpg files.

Anyone know how to combine these two so the image shows and upon clicking through on it it starts the zip download?

Cheers,
desert dave
8)

Tranz

What you can do is apply attributes to the ones you don't want to show up and use a filter so that they are prevented from showing up. This thread is for a similar scenario: http://forum.coppermine-gallery.net/index.php?topic=10087.0

Casper

What you should do is apply custom thumbnails, as per this thread, http://forum.coppermine-gallery.net/index.php?topic=10273.0

You then don't get the problem you have, you simply have a custom made thumb for each file.
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

desert_dave

Casper,
I followed the manual, uploaded a jpg called ThaiFlowers.jpg, then uploaded ThaiFlowers.zip. It does show up as one pic until you click on it, then it opens the zip file and still gives me 2 files in the album. Want I want is to super impose the jpeg over the zip so there is only 1 file, theres no need for the jpg except to hide the zip face.
-Dave.

desert_dave

I just found another problem having the 2 files. When you click on most viewed you get a bunch of zip files show up and have no idea what they are. The description nor album name show up there.

Ideas anyone?
desert dave

Joachim Müller

use the custom thumbnail as suggested in the docs.

Joachim

desert_dave

Joachim,
I am using a custom thumb per the instructions. I upload the jpg called ThaiFlowers.jpg, then upload the zip file called ThaiFlowers.zip.

I get 1 album with 2 files in it. As soon as you click on the thumb both files show up. And both will show up in most viewed of which the zip file is there but no name on it telling you what file it is (along with 10 others). So a viewer has to mouse over all 10 to find the right file to choose.

Please take a look to see if you need to at: http://www.creatingslideshows.com/coppermine/cpg132
ThaiFlowers is under the Premium catagory.

Thanks,
Dave  8)

Joachim Müller

That's not what the docs are suggesting. If you want a custom thumbnail that represents your zip archive (and nothing else), you're suppossed to ftp-upload foobar.zip and thumb_foobar.jpg to any folder within your album directory. Then use batch-add, but only add foobar.zip to your coppermine database. As thumb_foobar.jpg resides in the same folder on the server your zip file with identical "base name" resides in, it is taken into account to be the thumbnail representing the zip archive.
You're not suppossed to upload foobar.jpg and have the thumbnail created by coppermine by adding it to the database as well - that's not what is written in the docs.

HTH

Joachim

Casper

That seems to be a mistake 1 or 2 people have made.

Use coppermine to delete the thumbs from the album (make a copy first if you have not still got them on your computer).
The ftp the thumbs back into the same dirctory.  Do not use batch add to put them in the database.
They should now work as expected.
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

desert_dave

Gentlemen,
Nada on both ways!
I can't get it to work either way. These are the file names I'm using Thaiflowers.jpg & Thaiflowers.zip
I'm guessing that the program has to hold the jpg so you can click it as the album thumbnail but you lose it after the delete. It only shows the zip file. It's not seeing it in my album upload directory after that.

Any other idea's?
desert dave  :-\\



desert_dave

SOLVED

The jpg must be prefaced with "thumb_" and it must be lower case. There was no need to batch load, delete and re-ftp.

happy desert dave
;D