forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: april on December 02, 2004, 12:52:43 am

Title: From thumbmails to displayimage.php pop up.
Post by: april on December 02, 2004, 12:52:43 am
Hi - It's been racking me all day! I can get it to pop up - but I cant get it to display the right pic. Someone sent me this mod.

1. In theme.php find:
            } else {
                $params = array('{CELL_WIDTH}' => $cell_width,
                    '{LINK_TGT}' => "displayimage.php?album=$aid$cat_link&pos={$thumb['pos']}",
                    '{THUMB}' => $thumb['image'],
                    '{CAPTION}' => $thumb['caption'],
                    '{ADMIN_MENU}' => $thumb['admin_menu']
                    );
            }
2. Replace with:
            } else {
                $params = array('{CELL_WIDTH}' => $cell_width,
                    '{LINK_TGT}' => "displayimage.php?pid={$thumb['pid']}&fullsize=1",
                    '{THUMB}' => $thumb['image'],
                    '{CAPTION}' => $thumb['caption'],
                    '{ADMIN_MENU}' => $thumb['admin_menu']
                    );
            }


But I cant find where im going wrong.... becasue all the links are now "http://www.menasuvarifan.com/images/displayimage.php?pid=&fullsize=1" - so i guess im missing somewhere the picture id number... if anyone can help em it would be great!!!! :-D

Title: Re: From thumbmails to displayimage.php pop up.
Post by: april on December 02, 2004, 12:58:55 am
Ops. I think  i was meant to put this in the mod forum. Could an admin please move it - sorry!
Title: Re: From thumbmails to displayimage.php pop up.
Post by: april on December 02, 2004, 06:33:35 am
Ah never mind - fixed it! :) The thread can clsoe now LOL
Title: Re: From thumbmails to displayimage.php pop up.
Post by: Casper on December 02, 2004, 02:43:53 pm
first, this is in the correct place.  The mods board is for completed mods, not for help on creating them.

second, can you post how you solved this, as several others have asked in the past, and it would help others searching in the future.
Title: Re: From thumbmails to displayimage.php pop up.
Post by: april on December 02, 2004, 10:56:36 pm
In the "include" folder in Coppermine there's a file named "functions.inc.php"
 
Find:
 
$thumb_list[$i]['aid'] = $row['aid'];
 
And below, add:
 
$thumb_list[$i]['pid'] = $row['pid'];


------------------

The only probelm with it change is it now doesnt count the picture views - who knows how to change it or what i should fiddle at ? Thanks!