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 ... 3 4 5 6 [7] 8 9 10
 61 
 on: June 20, 2019, 06:50:58 pm 
Started by Hanna. - Last post by Hanna.
I'm trying to include different sections into template.html from other files (with content). You are saying I cannot do that?

 62 
 on: June 20, 2019, 06:46:58 pm 
Started by Hanna. - Last post by ron4mac
You can not include a PHP file in a .html file.

Describe fully what you are trying to achieve.

 63 
 on: June 20, 2019, 06:02:54 pm 
Started by Hanna. - Last post by Hanna.
Gotcha - it did not do anything in Mozilla though. Thanks! But I will definitely await for your plugins!

 64 
 on: June 20, 2019, 05:56:13 pm 
Started by Hanna. - Last post by Hanna.
Hey guys - I am trying to make things easier for myself (with many coppermine installations) to now start using PHP include so I can finally have "flat" template.html's and edit the php files for manual corrections.

However, the general code for PHP include that I am trying to set up is:
Code: [Select]
<?php include("disclaimer.php"); ?>
The file is online and ready to be picked up (see link)

The template.html and disclaimer.php are located in the theme folder together.

disclaimer.php inside looks like this: (if relevant to fix this issue)

Code: [Select]
<!DOCTYPE html>
<html>
<body>

<h1>My first PHP page</h1>

<?php
echo "Hello World!";
?>


</body>
</html>

If I am missing something please tell me.

 65 
 on: June 20, 2019, 05:49:30 pm 
Started by Hanna. - Last post by 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:

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>


 66 
 on: June 20, 2019, 04:49:57 pm 
Started by Hanna. - Last post by ron4mac
Missed the second part of above ...

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

 67 
 on: June 20, 2019, 04:43:15 pm 
Started by Hanna. - Last post by ron4mac
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>

 68 
 on: June 20, 2019, 04:34:32 pm 
Started by Hanna. - Last post by Hanna.
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.

 69 
 on: June 20, 2019, 03:26:56 pm 
Started by Hanna. - Last post by ron4mac
Did you get this resolved? If so, it would have been nice for you to share with the community.

Was there maybe a CloudFlare proxy?

 70 
 on: June 20, 2019, 02:21:45 pm 
Started by nowordneeded - Last post by ron4mac
For any older plugins that aren't compatible with CPG 1.6.x, change any coding occurrences of mysql_xxx_xxx to cpg_db_xxx_xxx.

Pages: 1 ... 3 4 5 6 [7] 8 9 10

Page created in 0.043 seconds with 17 queries.