forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: Cisi on April 06, 2005, 07:21:32 pm

Title: Thumb view : recover pid foreach thumb
Post by: Cisi on April 06, 2005, 07:21:32 pm
Hi all . I tryed to recover pid (for echo) for each thumbnails in thumb view , but had some problem cause of my php inexperience .
So if anyone should post a modification for (i think) function display_thumbnails in function.inc.php i would really appreciate!
I tried to do a myspl_query but something was wrong .

Thanx a lot in advance .
Regards

Mods , i hope this is the right place to post this question .
Title: Re: Thumb view : recover pid foreach thumb
Post by: Cisi on April 07, 2005, 04:36:49 pm
ok , solved ..
in functions.inc.php
after this

Code: [Select]
                        $thumb_list[$i]['aid'] = $row['aid'];
put this

Code: [Select]
$thumb_list[$i]['pid'] = $row['pid'];
Next , i use
Code: [Select]
".$thumb_list[$i]['pid'] = $row['pid']."
to display position of pics (in foreach cycle
Bye !