coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: ruckerz on April 26, 2006, 04:03:46 AM

Title: Why can't displayimage.php just be called with pid?
Post by: ruckerz on April 26, 2006, 04:03:46 AM
Why doesn't the following work? http://blah.blah.blah/gallery/displayimage.php?pid=XXX ? The offending code is in

if (!isset($_GET['pos'])) cpg_die(ERROR, $lang_errors['non_exist_ap'], __FILE__, __LINE__);

in displayimage.php line 308.

Sure pos is missing, but if pid is defined you have everything you need to pull a picture.  The current method requires fullsize,slideshow, or pos to be defined. $pos was defined back around 261 (using only pid)

FR

Title: Re: Why can't displayimage.php just be called with pid?
Post by: Stramm on April 26, 2006, 08:33:15 AM
that's not the intended usage of pid
try to add &fullsize=1
Title: Re: Why can't displayimage.php just be called with pid?
Post by: Joachim Müller on April 27, 2006, 09:05:55 AM
...or use pos=-[pid]
Title: Re: Why can't displayimage.php just be called with pid?
Post by: Abbas Ali on April 27, 2006, 12:31:46 PM
....or wait for future release in which pid will replace pos ;)