Help needed on "Click to view full size image" Help needed on "Click to view full size image"
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Help needed on "Click to view full size image"

Started by william, December 16, 2003, 07:56:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

william

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

Joachim Müller

in 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:;\" 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

william

Thanks GauGau!

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

Thanks a million!

William