forum.coppermine-gallery.net
Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: Rheinland 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
-
edit displayimage.php, find
$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 $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: $pic_html = "<a href=\"thumbnails.php?album=$album\" title=\"back to thumbnail overview\">";
(not tested though).
Joachim
-
Thank you for the fast help.