From thumbmails to displayimage.php pop up. From thumbmails to displayimage.php pop up.
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

From thumbmails to displayimage.php pop up.

Started by april, December 02, 2004, 12:52:43 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

april

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


april

Ops. I think  i was meant to put this in the mod forum. Could an admin please move it - sorry!

april

Ah never mind - fixed it! :) The thread can clsoe now LOL

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

april

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!