ZenphotoCMS Forum
ZP as plug-in on own page - diplay problem - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: ZP as plug-in on own page - diplay problem (/thread-5593.html)



ZP as plug-in on own page - diplay problem - LQS - 2009-08-03

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

`

...

`




ZP as plug-in on own page - diplay problem - sbillard - 2009-08-03

Is all this code in the same script?

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




ZP as plug-in on own page - diplay problem - LQS - 2009-08-03

  • Yes
  • No errors, just no images displayed (blank html code). If I delete subalbum, images are dispayed >> either albums or images ;-)



ZP as plug-in on own page - diplay problem - sbillard - 2009-08-04

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.




ZP as plug-in on own page - diplay problem - LQS - 2009-08-04

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.