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: Question about Zip files  (Read 4376 times)

0 Members and 1 Guest are viewing this topic.

azPNG

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 9
  • PNGResource Admin
    • PNGResource.com
Question about Zip files
« 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.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Question about Zip files
« Reply #2 on: November 09, 2004, 07:03:08 am »

link is dead. Has it been transfered somewhere else?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Question about Zip files
« Reply #3 on: November 09, 2004, 07:39:19 am »

Logged

bakr

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Question about Zip files
« Reply #4 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Question about Zip files
« Reply #5 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
Code: [Select]
    // 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
Code: [Select]
    // 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
Logged

desert_dave

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Re: Question about Zip files
« Reply #6 on: November 19, 2004, 07:44:18 am »

babr,
are you looking for something like this:
http://www.creatingslideshows.com/gallery
There all zipped
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 19 queries.