Member
Member
mrbiggs   25-01-2010, 06:29
#1

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.

Administrator
Administrator
acrylian   25-01-2010, 10:41
#2

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.

Member
Member
mrbiggs   25-01-2010, 15:29
#3

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.

Administrator
Administrator
acrylian   25-01-2010, 15:54
#4

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.

Member
Member
mrbiggs   25-01-2010, 16:54
#5

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

Administrator
Administrator
acrylian   25-01-2010, 17:59
#6

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

Member
Member
mrbiggs   25-01-2010, 19:51
#7

Hey thanks.

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