forum.coppermine-gallery.net
Support => cpg1.6 plugins => cpg1.6.x Support => cpg1.6 plugin contributions => Topic started by: ron4mac on February 01, 2020, 02:51:16 am
-
This plugin hides the direct locations of your image files by encoding the links to the files. And the links are only valid for a few seconds. Trying to use the link later will not result in accessing the image file. It is best used with the "transparent overlay" CPG option. It can also inhibit right-clicks on any images.
Configuration options are: whether to inhibit right-click and how many seconds before image links become invalid.
Note: Not compatible with lazy-load plugin unless validity timeout is set to zero.
Update: 19 May 2020, v1.1
Improve compatibility with different PHP configurations
Update: 24 May 2020, v1.1.1
Accommodate systems that may have no PHP encryption extensions installed.
-
An alternate solution:
https://forum.coppermine-gallery.net/index.php/topic,80066.0.html
Fatal error: Call to undefined function random_bytes() in /home/_____/public_html/gallery/plugins/hidemypics/codebase.php on line 61
-
Are you running on PHP7?
-
Are you running on PHP7?
Where can I see that?
-
See updated version (1.1) of the HideMyPics plugin:
https://forum.coppermine-gallery.net/index.php/topic,80066.msg387786.html#msg387786
-
It shows a big "X" in all the pictures. I uninstalled it.
-
It shows a big "X" in all the pictures. I uninstalled it.
Like I had suggested before, I believe you have some configuration issues with your system. It should normally show your images okay and only show the "X" image if someone tries to acquire the image.
Perhaps you have no encryption extensions installed with your PHP. I have updated the plugin to accommodate that situation (v1.1.1).
-
Like I had suggested before, I believe you have some configuration issues with your system. It should normally show your images okay and only show the "X" image if someone tries to acquire the image.
Perhaps you have no encryption extensions installed with your PHP. I have updated the plugin to accommodate that situation (v1.1.1).
It still shows the X and no pictures.
-
Well, if it's not a cache issue, I guess it's just not going to work on whatever setup your gallery is on.
-
Well, if it's not a cache issue, I guess it's just not going to work on whatever setup your gallery is on.
Is there a way just to disable the right click on the pictures? Specially the thumbnails and the normal pictures
Because that seems to work with the plugin.
-
Is there a way just to disable the right click on the pictures?
Comment out line 6 of codebase.php:
// $thisplugin->add_filter('picture_url','hidemypics_url');
But I'd really like to know why the plugin is not working on your gallery? Can you provide me with admin access to the gallery?
Just in case you haven't tried this - could you make the link valid timeout longer (10s) to see if that makes a difference?
-
Comment out line 6 of codebase.php:
// $thisplugin->add_filter('picture_url','hidemypics_url');
I don't understand. I just want to disable the right clicks on the images.
-
I don't understand. I just want to disable the right clicks on the images.
You need to edit the hidemypics/codebase.php file and put 2 forward slashes (//) at the beginning of line #6. Then, just the no-right-click part of the plugin will be active (plugin must be installed and enabled).
Are you by chance using the lazy-load plugin, as well. Lazy-load and HideMyPics are not fully compatible. Scrolling the window would likely reveal "X" images.
-
Thank you very much for your help!