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

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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