Member
Member
PierreSnugg   28-04-2008, 10:23
#1

Hy, is there a possibility to create a folder in zenphoto, which is only shown at the startpage (i use that random image function) BUT not in zenphotos library at all?

that would be cool ;-)

I have this question, b´cause i got problems with vertical and horizontal images, on the startpage only landscape images should be shown. So i thought i could create a folder where i just put some images in, that contain only these specific parameters.

Administrator
Administrator
acrylian   28-04-2008, 10:25
#2

Create an unpublished album and write a custom function that gets its the data directly from the db.

Member
Member
PierreSnugg   28-04-2008, 10:42
#3

puh, sounds complicated. but of course i got to figure out by myself...

any tip?

Member
Member
PierreSnugg   28-04-2008, 14:09
#4

How can i connect to the database?

Administrator
Administrator
acrylian   28-04-2008, 14:32
#5

The database is already connected, take a look at function within template-function.php as a guide

Member
Member
PierreSnugg   28-04-2008, 15:41
#6

oky! but before i go to the hills:

--> getAlbumId [line 3222]

am i right with that?

Member
Member
PierreSnugg   28-04-2008, 16:00
#7

I tried, but got an error showing up:

`

Administrator
Administrator
acrylian   28-04-2008, 16:07
#8

That would not work. Please take the time to read what is written in the functions guide.
You should use this function instead if you want to show random images of a specific album: http://www.zenphoto.org/documentation-official/zenphoto/_template-functions.php.html#functionprintRandomImages (the above one shows only a random image of the currently selected album).

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