Thumb view : recover pid foreach thumb Thumb view : recover pid foreach thumb
 

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

Thumb view : recover pid foreach thumb

Started by Cisi, April 06, 2005, 07:21:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Cisi

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 .

Cisi

ok , solved ..
in functions.inc.php
after this

                        $thumb_list[$i]['aid'] = $row['aid'];

put this

$thumb_list[$i]['pid'] = $row['pid'];

Next , i use
".$thumb_list[$i]['pid'] = $row['pid']."

to display position of pics (in foreach cycle
Bye !