coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: kweeween on March 25, 2008, 09:07:04 PM

Title: PID...How do I get it???
Post by: kweeween on March 25, 2008, 09:07:04 PM
Hi,

this might be a stupid question since I could not find anywhere in here smething related to my question. So it might be really easy. Maybe I am just to focused on searching that I cannot find the answer...

So:
I would liek to use cpmfetch - specifically the function 'mediabyPID'

My question: How do I know what is the PID since I can only see album number and position number in the url?

Sorry for bothering but maybe someone can help me out here...

Cheers,
-Kweeween
Title: Re: PID...How do I get it???
Post by: Nibbler on March 25, 2008, 11:31:20 PM
If you enable the 'file information' box then you can see the pid in the static link below the image. Post a link to your gallery if you can't see it.
Title: Re: PID...How do I get it???
Post by: kweeween on March 26, 2008, 09:40:54 AM
thanks for replying..
yeah: i found the file information box.
but: in that box I only get see something like that www.domain.com/displayimage.php?pos=-327

so tried comfetch with id=-327 but it did not work.
is this really the pid? it still seems to refer to the pos....

thanks for any advice,
-kweeween
Title: Re: PID...How do I get it???
Post by: kweeween on March 26, 2008, 09:45:34 AM
Quote from: kweeween on March 26, 2008, 09:40:54 AM


so tried comfetch with id=-327 but it did not work.
is this really the pid? it still seems to refer to the pos....


actually i also tried positive numbers....
Title: Re: PID...How do I get it???
Post by: Stramm on March 26, 2008, 12:10:03 PM
In your case the picture id is 327

In displayimage.php the parameter name pos is used in two ways. If the value is positive, it describe the position in an (meta)album, is the value negative the pid (picture id).
Title: Re: PID...How do I get it???
Post by: kweeween on April 06, 2008, 07:49:32 AM
ok thanks but why is it not shown if use the 'PID' with cpmfetch?