Set scrollers in popup fullsize Set scrollers in popup fullsize
 

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

Main Menu

Set scrollers in popup fullsize

Started by Hanna., June 20, 2019, 04:25:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hanna.

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

ron4mac

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:

        <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.

Hanna.

I replaced that line completely:


        <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.

ron4mac

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

It should be:

        <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>


ron4mac

Missed the second part of above ...

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

ron4mac

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:

<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>



Hanna.

Gotcha - it did not do anything in Mozilla though. Thanks! But I will definitely await for your plugins!