Question about Zip files Question about Zip 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

Question about Zip files

Started by azPNG, July 01, 2004, 09:07:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

azPNG

I just upgraded to 1.3.0 and had a member of my forum upload a zip file.  It worked great (thanks Coppermine).  But the only complaint is that there is no way for it show a picture of the contents of the zip.  All it shows is a zip graphic.  Is there any way to change that and replace the zip with a small pic of what is inside the zip file?

TIA.

Casper

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

bakr

link is dead. Has it been transfered somewhere else?

Joachim Müller


bakr

Thanks GauGau. Much appreciated but I am looking for the zip download files meant for only registered user and not for the unregistered. I tried one suggestion from the forum but the "add to favorite " link disappeared for registered and unregistered users. Any that you are aware off? I have searched the forum.

Thanks again.

Bakr

Joachim Müller

To show the "add to favorites" link only for registered users, undo your modifications, then edit displayimage.php, find    // Create the add to fav link
    if (!in_array($CURRENT_PIC_DATA['pid'], $FAVPICS)) {
        $info[$lang_picinfo['addFavPhrase']] = "<a href=addfav.php?pid=" . $CURRENT_PIC_DATA['pid'] . " >" . $lang_picinfo['addFav'] . '</a>';
    } else {
        $info[$lang_picinfo['addFavPhrase']] = "<a href=addfav.php?pid=" . $CURRENT_PIC_DATA['pid'] . " >" . $lang_picinfo['remFav'] . '</a>';
    }
and replace with    // Create the add to fav link
    if(USER_ID) {
        if (!in_array($CURRENT_PIC_DATA['pid'], $FAVPICS)) {
            $info[$lang_picinfo['addFavPhrase']] = "<a href=addfav.php?pid=" . $CURRENT_PIC_DATA['pid'] . " >" . $lang_picinfo['addFav'] . '</a>';
        } else {
            $info[$lang_picinfo['addFavPhrase']] = "<a href=addfav.php?pid=" . $CURRENT_PIC_DATA['pid'] . " >" . $lang_picinfo['remFav'] . '</a>';
        }
    }


Joachim

desert_dave

babr,
are you looking for something like this:
http://www.creatingslideshows.com/gallery
There all zipped