php code request php code request
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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