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: Full image scroll is off the screen...  (Read 3001 times)

0 Members and 1 Guest are viewing this topic.

sgaileach1

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Full image scroll is off the screen...
« on: April 13, 2004, 06:36:15 am »

Can someone please help me?  All I want is to basically remove the rediculously complicated code for popping up the full size image with a simple new browser window popup so that when it pops up it is rezizeable and not closed by clicking.  As it is it causes all sorts of problems for anyone with pictures in their gallery that are larger then the screen resolution they have set, plus it shows my entire website in the background of the picture.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Full image scroll is off the screen...
« Reply #1 on: April 13, 2004, 09:02:23 am »

The code is not complicated (only plain JavaScript), the pop-up window is resizable. The code that opens the pop-up can be found in in displayimage.php, look for
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')\">";
If you want to disable the "close pop-up on click", edit displayimage.php and find
Code: [Select]
       echo "<a href=\"javascript: window.close()\"><img src=\"" . path2url($picname) . "\" $imagesize[3] class=\"image\" border=\"0\" alt=\"\" title=\"$picfile\n" . $lang_fullsize_popup['click_to_close'] . "\"/></a><br />\n";- replace with
Code: [Select]
       echo "<img src=\"" . path2url($picname) . "\" $imagesize[3] class=\"image\" border=\"0\" alt=\"\" title=\"$picfile\"/><br />\n";

GauGau

P.S. If you want to get friends with people around here, telling them their code is "ridiculously complicated" is not a good thing to start with :? ...
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Full image scroll is off the screen...
« Reply #2 on: April 13, 2004, 10:45:10 am »

Having visited your site, I think both your problems are nuke related.

The large windows pop-up right of centre, as they appear to be obeying a command to leave the menu visible, so although they are screen size, they are falling off the right.  Also, you need to adjust the border, as you are getting scroll bars even when the image is smaller than the screen. See this thread for that problem, http://forum.coppermine-gallery.net/index.php?topic=4960

There is also a problem, as you said, with other parts of the page appearing in the pop-up.  This is not normal, but almost certainly nuke related.
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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Full image scroll is off the screen...
« Reply #3 on: April 13, 2004, 10:50:04 am »

James,

you are right - the code between coppermine standalone and coppermine for nuke differs greatly, so this is indeed the wrong place to look for support on nuke questions. Take a look at the whole <html> block within displayimage.php - you can throw the "surrounding" html code over board if you want to display your pic only. You can as well set the dimensions for the pop-up (at least in coppermine standalone), but I'm not sure how this works with nuked coppermine.
I noticed that there's something strange with registration on the nuke board as well, but there's little I can do about it. Maybe you'll want to contact one of the guys who run the nuke support board (gtroll or DJMaze) over pm on this board (not to ask them for support by pm on your pop-up issue, but on the registration issue on their site). After all, this whole pop-up enchilada makes great use of JavaScript (which is something different than Java btw), and generally speaking JavaScript sucks.

GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.