php code request php code request
 

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

php code request

Started by raffychan, July 24, 2006, 02:25:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

raffychan

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!

Abbas Ali

Post your query on that specific thread itself.
Chief Geek at Ranium Systems