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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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!