Member
Member
eireann777   2009-07-30, 19:59
#1

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..

Member
Member
sbillard   2009-07-30, 21:10
#2

You place it in the script based on where you want it to appear on the rendered page.

Member
Member
eireann777   2009-07-31, 00:43
#3

Sbillard,

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...)

Member
Member
stef404   2009-07-31, 05:59
#4

Following code works fine for me:
`

`
Unfortunately I have now idea of php, so I don't know the notation of the if-condition.

Member
Member
sbillard   2009-07-31, 15:25
#5

I am not sure why this would not work, although I have never tried it within the album loop. Have you looked at the HTML to see if the link exists but is just not showing? Maybe the lack of a closing of the album loop before the is causing problems.

There is a use of printAlbumZip() in the Effervescence+ theme in album.php if you want to look at an example.

Member
Member
eireann777   2009-07-31, 15:42
#6

I am so sorry to be a pain, guys...really...

I got the link to appear (I put it down with the slideshow script):

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

Member
Member
sbillard   2009-07-31, 16:13
#7

There is indeed a bug in the album zip script when it is denying you access to the album. The call on pageError should have two parameters pageError(403, gettext("Forbidden"));. But of course, there is still the question of why you are getting an error in the first place.

The indication is that the album is password protected and the album zip does not have the correct password.

Member
Member
eireann777   2009-07-31, 18:07
#8

again, thanks for all your help!!

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!!!!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.