Member
Member
LQS   03-08-2009, 11:17
#1

Hi,
I use ZP as plug-in to display images on my own site (http://www.zenphoto.org/2008/01/hacks/#zenphoto-as-plugin).

I need to display all items (albums even imgs) from one specific "ALBUM". I used function zp_load_album to access this "ALBUM".
Script displays images only if "ALBUM" has NOT subalbums. If it has, albums are displayed but images NOT. Could u help me please ?

Thx ...

Code:
`

`
.... my page ....

`

...

`

Member
Member
sbillard   03-08-2009, 17:09
#2

Is all this code in the same script?

Are you getting CGI errors? If so what are they?

Member
Member
LQS   03-08-2009, 20:30
#3
  • Yes
  • No errors, just no images displayed (blank html code). If I delete subalbum, images are dispayed >> either albums or images ;-)
Member
Member
sbillard   04-08-2009, 00:47
#4

Just a guess, but maybe the subalbum loop is causing you to loose the context. Try adding an extra zp_load_album() before the image loop. Can't hurt.

Member
Member
LQS   04-08-2009, 14:12
#5

I have already tried it with no effect.

But I think I have solved just now, juhuu
Line zp_load_album('gallery/Greece'); must be BEFORE $firstPageImages = normalizeColumns('2', '6'); and it seems to be working right.

In any case thx a lot for advices and ideas.

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