Pages (2):    1 2
Member
Member
sbillard   29-09-2008, 01:54
#11

You have to put the name of the image you want loaded. The concept of "fisrt image" is a tricky one because that will depend on the sort order chosen. You can create an album object for the album and use $images = $albumobject->getImages(); to get an array of the image names in the album. Then you could use $images[0] for the image name.

Member
Member
JeffCooper   29-09-2008, 20:55
#12

Hi sbillard/marc_sss. Sorry for jumping in on your thread - I hope I haven't broken any blogging etiquette, I'm new to this. sbillard has been helping me with another problem but having read these comments I would like to bin my original idea and copy your idea of jumping straight to the image.php page. However I can't get it to work - I have replaced the code on theme/index.php with

However I do not understand the instruction: you will have to initialize the state so that zenphoto thinks it is processing an image. I also don't understand how to implement the final instructions - "create an album object for the album and use $images = $albumobject->getImages(); to get an array of the image names in the album. Then you could use $images[0] for the image name."

My site is hedshot.co.uk.

Any chance you could break it down into really simple steps for me? I realise I am taking up a lot of your time - I would be happy to pay you for your services as I really, really appreciate your help.

Member
Member
sbillard   29-09-2008, 22:44
#13

the items within «» are meta items. You need to substitute for them the actual album folder name and image name you want to be displayed.

This is getting into PHP programming, so if you are not comfortable with that, go no further.

`

`

Member
Member
marcy_sss   30-09-2008, 03:22
#14

Thanks for the tips, sbillard. That looks very similar to Actionscript, actually... I love PHP!

Jeff, regarding your question about skipping album.php, in case you still need help here are the links that helped me out! I actually have two different installs on the same site, one that uses the thumbnail on index.php as a link straight to image.php; the other redirects straight to image.php but has the thumbnails on the page. If you already know how to do all this, please disregard! :)

http://www.zenphoto.org/support/topic.php?id=3156
http://www.zenphoto.org/support/topic.php?id=752&replies=10

Pages (2):    1 2
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.