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

Title: Hide My Pics - image protection plugin
Post 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.
Title: Re: Hide My Pics - image protection plugin
Post by: tonyyears on May 19, 2020, 01:45:42 am
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
Title: Re: Hide My Pics - image protection plugin
Post by: ron4mac on May 19, 2020, 03:02:57 am
Are you running on PHP7?
Title: Re: Hide My Pics - image protection plugin
Post by: tonyyears on May 19, 2020, 03:23:11 am
Are you running on PHP7?

Where can I see that?
Title: Re: Hide My Pics - image protection plugin
Post by: ron4mac on May 19, 2020, 02:32:30 pm
See updated version (1.1) of the HideMyPics plugin:
https://forum.coppermine-gallery.net/index.php/topic,80066.msg387786.html#msg387786
Title: Re: Hide My Pics - image protection plugin
Post by: tonyyears on May 24, 2020, 06:52:07 am
It shows a big "X" in all the pictures. I uninstalled it.
Title: Re: Hide My Pics - image protection plugin
Post by: ron4mac on May 24, 2020, 02:28:33 pm
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).
Title: Re: Hide My Pics - image protection plugin
Post by: tonyyears on May 25, 2020, 01:49:46 am
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.
Title: Re: Hide My Pics - image protection plugin
Post by: ron4mac on May 25, 2020, 04:13:16 am
Well, if it's not a cache issue, I guess it's just not going to work on whatever setup your gallery is on.
Title: Re: Hide My Pics - image protection plugin
Post by: tonyyears on May 25, 2020, 05:18:56 am
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. 
Title: Re: Hide My Pics - image protection plugin
Post by: ron4mac on May 25, 2020, 03:24:59 pm
Is there a way just to disable the right click on the pictures?

Comment out line 6 of codebase.php:
Code: [Select]
// $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?
Title: Re: Hide My Pics - image protection plugin
Post by: tonyyears on May 27, 2020, 11:48:30 pm
Comment out line 6 of codebase.php:
Code: [Select]
// $thisplugin->add_filter('picture_url','hidemypics_url');

I don't understand. I just want to disable the right clicks on the images.
Title: Re: Hide My Pics - image protection plugin
Post by: ron4mac on May 28, 2020, 12:58:44 am
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.
Title: Re: Hide My Pics - image protection plugin
Post by: tonyyears on May 28, 2020, 05:37:19 pm
Thank you very much for your help!