where to find album IDs?

I know that this will end up being something obvious. But I cannot find anywhere the ID numbers for my albums. I know they have them, and I have a Wordpress plug-in that needs them. But no where in the admin do I see them? I'd think that they would be in the EDIT tab, where the albums can be sorted and arranged.
Furthermore, where does one find image IDs as well.

I hope the answer isn't the SQL databases. That would be absurd.

thanks.

Comments

  • acrylian Administrator, Developer
    Well, they are indeed in the database. Normally you don't really need the ids as the "folder name" of albums and the "filename" of images is what is used internally as the unique value within the Zenphoto object model. Zenphoto is filesystem based as you probably know.

    You can however display the ids easily on the theme if you need them. See the documentation. MAybe some info about what your plugin actually is trying to do will help.
  • The plugin is zenphotopress, which has short code for showing the thumbs of an album on a page or post in wordpress. The shorttags go something like so:
    [zenphotopress sort=random number=3 album=0]
    Where the "album" needs an ID number. The name of the album doesn't work. I recognize that this is a shortcoming on ZPP's part if indeed the only place that the ID resides is the SQL. I just can't dive into PHPMyAdmin every time i want to show my thumbnails in Wordpress. And since there are places in ZP where one can sort albums and images by ID, I figured there must be somewhere that we can see (and maybe control) the ID number on the admin interface.

    I don't need them displayed on the user side. Just on the admin side. I've asked the ZPP people the same question. I'm not sure what they were thinking.
  • acrylian Administrator, Developer
    Sorry, except for phpmyadmin the only way is to do it on the theme. But you can easily limit the display to the logged in user using. We probably could add it but it is really rarely needed.

    The id for albums and images is incremented by the db and actually shows the order Zenphoto discovers the images/albums on the filesystem this the sortorder option. Of course the id is also used for image to album relations, tags and this sort of thing but for getting/setting up an album/image object it is not needed.
  • Thanks.
    The file system that ZP uses is actually one of the reasons I like it and use it. I don't really understand why ZPP uses the ID number. It would be easy to figure out except that over the two or so years I've used ZP, I've deleted albums and images. So there is no way to tell by looking at the sort order what is number what. For instance, the first album sorted is number 2, and the second is 28. I have 35 albums so it's just impossible.
    Like I said, I wrote an email to the developer and I hope to get some clarification. There must be more than just me using this darn plug-in.

    Brian
  • acrylian Administrator, Developer
    Btw, ZPP's developer Simbul visits this forum regulary, too. You can also use this long living special thread: http://www.zenphoto.org/support/topic.php?id=1896&page=8
  • Hey thanks.
Sign In or Register to comment.