forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 themes (visuals) => Topic started by: Hanna. on June 20, 2019, 04:25:41 am

Title: Set scrollers in popup fullsize
Post by: Hanna. 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?
Title: Re: Set scrollers in popup fullsize
Post by: ron4mac 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.
Title: Re: Set scrollers in popup fullsize
Post by: Hanna. 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 (https://bit.ly/2ZF5zr1)

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.
Title: Re: Set scrollers in popup fullsize
Post by: ron4mac 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>
Title: Re: Set scrollers in popup fullsize
Post by: ron4mac 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)
Title: Re: Set scrollers in popup fullsize
Post by: ron4mac 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>

Title: Re: Set scrollers in popup fullsize
Post by: Hanna. 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!