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: Set scrollers in popup fullsize  (Read 3245 times)

0 Members and 1 Guest are viewing this topic.

Hanna.

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 180
  • webstar
Set scrollers in popup fullsize
« on: June 20, 2019, 04:25:41 am »

I'm trying to insert scrollers (bottom and right, y, x) to the full-size popup window. How can I do this the best?
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1344
Re: Set scrollers in popup fullsize
« Reply #1 on: June 20, 2019, 02:14:29 pm »

Somewhere in your theme (probably theme.php), it is hard coded to include jquery-1.3.2.js
Change it to jquery-1.7.2.js

Better yet, change that line to:
Code: [Select]
        <script type="text/javascript" src="{$jquery_path}"></script>

That should correct your full-size popup window.

BTW: I'll soon be posting a plugin to replace that popup window with something that has better aesthetics.
Logged

Hanna.

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 180
  • webstar
Re: Set scrollers in popup fullsize
« Reply #2 on: June 20, 2019, 04:34:32 pm »

I replaced that line completely:

Code: [Select]
        <script type="text/javascript" src="{$jquery_path}"></script>
        <script type="text/javascript" src="{$jquery_path}/jquery.dimensions.pack.js"></script>
        <script type="text/javascript" src="{$jquery_path}/displayimage.fullsize.js"></script>

But no change for my case at all actually. Cannot scroll at all. LINK

It does not seem to recognize the image size. The pop up window used to shrink the image but that was even worse. I'd like to have it to when you get the popup you can scroll around inside but the image always remains in full-size, no shrinking or cropping of any kind.
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1344
Re: Set scrollers in popup fullsize
« Reply #3 on: June 20, 2019, 04:43:15 pm »

You did a tad more than what I had said ...

It should be:
Code: [Select]
        <script type="text/javascript" src="{$jquery_path}"></script>
        <script type="text/javascript" src="js/jquery.dimensions.pack.js"></script>
        <script type="text/javascript" src="js/displayimage.fullsize.js"></script>
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1344
Re: Set scrollers in popup fullsize
« Reply #4 on: June 20, 2019, 04:49:57 pm »

Missed the second part of above ...

I have no problems scrolling the large image (Mac OS, Safari and Chrome)
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1344
Re: Set scrollers in popup fullsize
« Reply #5 on: June 20, 2019, 05:49:30 pm »

You will have to not do (or undo) the above to cause the normal behavior (resize image to window) to NOT occur.
Then in your theme's template.html file, just before the </head> line, insert:

Code: [Select]
<script>
var old_mmpop = window.MM_openBrWindow;
window.MM_openBrWindow = function (u,i,f) {
        old_mmpop(u,i,f.replace("scrollbars=no","scrollbars=yes"));
    };
</script>

Logged

Hanna.

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 180
  • webstar
Re: Set scrollers in popup fullsize
« Reply #6 on: June 20, 2019, 06:02:54 pm »

Gotcha - it did not do anything in Mozilla though. Thanks! But I will definitely await for your plugins!
Logged
Pages: [1]   Go Up
 

Page created in 0.045 seconds with 20 queries.