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: Help needed on "Click to view full size image"  (Read 3115 times)

0 Members and 1 Guest are viewing this topic.

william

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
    • http://www.geocommapping.com/coppermine/
Help needed on "Click to view full size image"
« on: December 16, 2003, 07:56:50 pm »

I'm sorry, I accidentally posted this on the CPG 1.1.XX board! So here it is again on the correct board.

I would like to customize the "Click to view full size image" code so that the new browser window opens with NO Navigation toolbar, Menu bar, Location toolbar, Status bar or Resize handles. However, I would like to retain the Scrollbars as needed.

My images are 1024 X 768 so this feature would allow more of the image to display without the user having to turn off those toolbars manually each time.

I read this post (Posted: Sun Dec 14, 2003 10:36 pm Post subject: hlep me Gaugau) in which Gau Gau recommended editing the displayimage.php file but couldn't figure out what to change!

I'm using the stock, unmodified Standalone version of CPG (1.2.0 final).

If I could figure out how to do this, my life would be complete! CPG is unbelievably cool and awesome in it's depth!

Thank you in advance,

William
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Help needed on "Click to view full size image"
« Reply #1 on: December 17, 2003, 12:05:00 am »

in 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:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=$winsizeX,height=$winsizeY')\">";or add whatever parameters JavaScript can handle to manipulate a window.

GauGau
Logged

william

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
    • http://www.geocommapping.com/coppermine/
It worked...of course
« Reply #2 on: December 17, 2003, 12:26:03 am »

Thanks GauGau!

As usual, your answer was quick, concise and worked like a charm.

Thanks a million!

William
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 18 queries.