coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: raffychan on July 24, 2006, 02:25:00 PM

Title: php code request
Post by: raffychan 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:


// 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!
Title: Re: php code request
Post by: Abbas Ali on July 24, 2006, 02:40:53 PM
Post your query on that specific thread itself.