How to get the ids of the albums in the gallery? How to get the ids of the albums in the gallery?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

How to get the ids of the albums in the gallery?

Started by brem, September 07, 2006, 11:21:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

brem

coppermine embarked system integrator
birdietechnologies.com
martinbreton.com

vuud

Quote from: brem on September 07, 2006, 11:21:13 PM
Well, title says it all.

thansk :P


What, you mean the album id's?  Like just a list...

1
2
3
4
5
6

etc?

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

brem

Yes.

Because I can't (we can't) assume that all indexes are used. Some of them could have been erased during the lifetime of the gallery.


coppermine embarked system integrator
birdietechnologies.com
martinbreton.com

Nibbler

Is this related to cpmFetch?

Just run an sql query to collect them all:

SELECT aid FROM {$CONFIG['TABLE_ALBUMS']}

brem

True that. I just thought cmpfetch would have a ready function for that... since you can use indexes in parameters... i don't know... I guess I don't yet have set my mind on how I should be using coppermine / cmpfetch yet.

Basically, I want to be able to use coppermine, as a easy and ready mean to add, remove albums and media (pitures and video, sounds), but I want to use this content outside of coppermine, in a web application.

So I want the users of my application to be able to parse through albums and medias therein.
I know I can do it all by sql queries, but I'm lazy (a programmer quality), and I was hoping there would be an api to make it easier to retrieve information.

There. You have my story now. :)
coppermine embarked system integrator
birdietechnologies.com
martinbreton.com

Joachim Müller


brem

coppermine embarked system integrator
birdietechnologies.com
martinbreton.com

Joachim Müller


brem

GauGau, the API you are referring to, is it the "main" php files of coppermine or another package?

thanks...
coppermine embarked system integrator
birdietechnologies.com
martinbreton.com

Joachim Müller


vuud

Quote from: brem on September 08, 2006, 04:20:41 PM
Yes.
Because I can't (we can't) assume that all indexes are used. Some of them could have been erased during the lifetime of the gallery.

Brem, I answered another question that could easily be modified to collect all of the Album Id's.  Not as good as a cpmFetch built in function, but it would work...

http://forum.coppermine-gallery.net/index.php?topic=36045.msg169416#msg169416
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

brem

Muchos gracias, as they say in Mexico to both of you vudd and Gaugau. :)
coppermine embarked system integrator
birdietechnologies.com
martinbreton.com