Hi, all,
I have searched on this forum and on Google and cannot find an answer..
I am trying to use the printAlbumZip( ) function. Where do I place this? I understand it goes in the album.php file in whichever template you are using..
but where?
i have seen many suggestions, but the link just wont show up for me...
thanks in advance..
Comments
Thanks for your response. Maybe there is something wrong with my syntax, then?
I have tried placing it many places, and I just can't get a link to show up for download. (Ready to pull my hair out...lol)
If you could, please, take a look and let me know what you think....(I have included the code around the printAlbumZip() as well...)
<div id="albums">
<?php while (next_album()): ?>
<?php if (function_exists(’printAlbumZip’)) { printAlbumZip(); } ?>
<div class="album">
`
<?php echo printAlbumZip() ?>
`
Unfortunately I have now idea of php, so I don't know the notation of the if-condition.
There is a use of printAlbumZip() in the Effervescence+ theme in album.php if you want to look at an example.
I got the link to appear (I put it down with the slideshow script):
<?php if (function_exists('printSlideShowLink')) printSlideShowLink(gettext('View Slideshow')); ?>
<div id="zip">
<?php echo printAlbumZip() ?>
</div>
However, when I click the link, I am faced with a whole new set of problems:
Warning: Missing argument 1 for pageError(), called in /home/ewilson/public_html/swim/zp-core/album-zip.php on line 49 and defined in /home/ewilson/public_html/swim/zp-core/functions.php on line 1688
Warning: Missing argument 2 for pageError(), called in /home/ewilson/public_html/swim/zp-core/album-zip.php on line 49 and defined in /home/ewilson/public_html/swim/zp-core/functions.php on line 1688
Notice: Undefined variable: err in /home/ewilson/public_html/swim/zp-core/functions.php on line 1689
Notice: Undefined variable: text in /home/ewilson/public_html/swim/zp-core/functions.php on line 1689
Warning: Cannot modify header information - headers already sent by (output started at /home/ewilson/public_html/swim/zp-core/functions.php:1688) in /home/ewilson/public_html/swim/zp-core/functions.php on line 1689
Notice: Undefined variable: err in /home/ewilson/public_html/swim/zp-core/functions.php on line 1690
Notice: Undefined variable: text in /home/ewilson/public_html/swim/zp-core/functions.php on line 1690
Notice: Undefined variable: err in /home/ewilson/public_html/swim/zp-core/functions.php on line 1693
Notice: Undefined variable: text in /home/ewilson/public_html/swim/zp-core/functions.php on line 1693
Page access ()
Out of curiosity, I commented out the above mentioned lines...then I am told there is a problem on line 49 of album-zip.php.
Am I missing something? Am I supposed to do something with these files, as well?
Thanks again for all of your wonderful help--and I am so sorry to be such a pain!!
~Erin
The indication is that the album is password protected and the album zip does not have the correct password.
rather than drive myself crazy, i just put a password on the entire directory, and removed it from the gallery (the idea was to not let anyone else see the pictures...it's a gallery for the parents of children on a swim team...)
this happens to work splendidly for me....and now the printAlbumZip() function works!
thanks again, really!!!!