Advanced search  

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

Pages: [1]   Go Down

Author Topic: Hide My Pics - image protection plugin  (Read 11325 times)

0 Members and 1 Guest are viewing this topic.

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Hide My Pics - image protection plugin
« 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.
« Last Edit: May 28, 2020, 01:01:59 am by ron4mac »
Logged

tonyyears

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Hide My Pics - image protection plugin
« Reply #1 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
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Hide My Pics - image protection plugin
« Reply #2 on: May 19, 2020, 03:02:57 am »

Are you running on PHP7?
Logged

tonyyears

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Hide My Pics - image protection plugin
« Reply #3 on: May 19, 2020, 03:23:11 am »

Are you running on PHP7?

Where can I see that?
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Hide My Pics - image protection plugin
« Reply #4 on: May 19, 2020, 02:32:30 pm »

Logged

tonyyears

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Hide My Pics - image protection plugin
« Reply #5 on: May 24, 2020, 06:52:07 am »

It shows a big "X" in all the pictures. I uninstalled it.
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Hide My Pics - image protection plugin
« Reply #6 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).
« Last Edit: May 24, 2020, 04:02:29 pm by ron4mac »
Logged

tonyyears

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Hide My Pics - image protection plugin
« Reply #7 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.
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Hide My Pics - image protection plugin
« Reply #8 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.
Logged

tonyyears

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Hide My Pics - image protection plugin
« Reply #9 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. 
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Hide My Pics - image protection plugin
« Reply #10 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?
« Last Edit: May 25, 2020, 03:37:31 pm by ron4mac »
Logged

tonyyears

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Hide My Pics - image protection plugin
« Reply #11 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.
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Hide My Pics - image protection plugin
« Reply #12 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.
Logged

tonyyears

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Hide My Pics - image protection plugin
« Reply #13 on: May 28, 2020, 05:37:19 pm »

Thank you very much for your help!
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 22 queries.