Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Change the Link  (Read 2765 times)

0 Members and 1 Guest are viewing this topic.

Rheinland

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Change the Link
« on: February 26, 2005, 12:48:44 pm »

Hello,
sorry for my bad english. i will test coppermin for my webprojekt. And now i have a problem. If you in the gallerie and show a photo and you click on the photo then a new window open with the photo. How can i change it that if you click on the photo you come back to the last thumbnail overview.

http://www.lev-rheinland.de/include.php?src=http://web86.server14.webserver-projekt.de/cpg132/thumbnails.php?album=1&nornav=1

Thank you for your help.

regards

Andreas
http://www.lev-rheinland.de
« Last Edit: February 26, 2005, 07:06:12 pm by TranzNDance »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Change the Link
« Reply #1 on: February 26, 2005, 01:59:24 pm »

edit displayimage.php, find
Code: [Select]
            $pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";and replace with
Code: [Select]
            $pic_html = "<a href=\"javascript:history.back();\" title=\"back to previous page\">";to return to the previous page. To return to the thumbnail page, do this instead:
Code: [Select]
            $pic_html = "<a href=\"thumbnails.php?album=$album\" title=\"back to thumbnail overview\">";(not tested though).

Joachim
Logged

Rheinland

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Change the Link
« Reply #2 on: February 26, 2005, 03:08:18 pm »

Thank you for the fast help.

Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.