Advanced search  

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

Pages: [1]   Go Down

Author Topic: From thumbmails to displayimage.php pop up.  (Read 2905 times)

0 Members and 1 Guest are viewing this topic.

april

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
From thumbmails to displayimage.php pop up.
« 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

Logged

april

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: From thumbmails to displayimage.php pop up.
« Reply #1 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!
Logged

april

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: From thumbmails to displayimage.php pop up.
« Reply #2 on: December 02, 2004, 06:33:35 am »

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

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: From thumbmails to displayimage.php pop up.
« Reply #3 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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: From thumbmails to displayimage.php pop up.
« Reply #4 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!
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.