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: php code request  (Read 2379 times)

0 Members and 1 Guest are viewing this topic.

raffychan

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
php code request
« on: July 24, 2006, 02:25:00 pm »

Hi,
first of all I hope I'm posting in the right section...the other topics are closed so I had to open a new one.

I was looking for a feature that could allow zip download for whole albums, and so I searched the boards, and found those two topics.

- http://forum.coppermine-gallery.net/index.php?topic=32758.0
- http://forum.coppermine-gallery.net/index.php?topic=3968.0

I made the zip.php file (first topic) and works fine.
If you have a look at the second topic I linked you'll find this code:

Code: [Select]
// MOD - begin
$param['{ALBUM_NAME}'] .= ' - <a href=" '. $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . $album_name . '.rar">Download all the pictures of this album in a compress file</a>';
// MOD - end
       

I was wondering if it is possible to change the code, in order to let it point to the zip.php file instead of the rar file manually uploaded.
E.g.:
The code I pasted would appear like this in the browser:
http://mysite.com/coppermine/albums/albumname/albumname.rar
That's what I'd like to obtain:
http://mysite.com/coppermine/zip.php?aid=albumid

So, I only need a php code to place in theme.php...

Sorry for the poor English...
Thanks!
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: php code request
« Reply #1 on: July 24, 2006, 02:40:53 pm »

Post your query on that specific thread itself.
Logged
Chief Geek at Ranium Systems
Pages: [1]   Go Up
 

Page created in 0.035 seconds with 15 queries.