coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: azPNG on July 01, 2004, 09:07:12 PM

Title: Question about Zip files
Post by: azPNG on July 01, 2004, 09:07:12 PM
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.
Title: Re: Question about Zip files
Post by: Casper on July 02, 2004, 12:01:03 AM
http://forum.coppermine-gallery.net/index.php?topic=6450.0
Title: Re: Question about Zip files
Post by: bakr on November 09, 2004, 07:03:08 AM
link is dead. Has it been transfered somewhere else?
Title: Re: Question about Zip files
Post by: Joachim Müller on November 09, 2004, 07:39:19 AM
http://coppermine.sourceforge.net/manual.php#cust_thmb and http://forum.coppermine-gallery.net/index.php?topic=10273.0

If you're looking for zip uploads, go here: http://forum.coppermine-gallery.net/index.php?topic=7750.0

You could have used the search...

Joachim
Title: Re: Question about Zip files
Post by: bakr on November 11, 2004, 09:51:11 AM
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
Title: Re: Question about Zip files
Post by: Joachim Müller on November 11, 2004, 11:07:45 AM
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
Title: Re: Question about Zip files
Post by: desert_dave on November 19, 2004, 07:44:18 AM
babr,
are you looking for something like this:
http://www.creatingslideshows.com/gallery
There all zipped