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] 2 3 4 5 ... 7   Go Down

Author Topic: Prevent downloading of pics - transparent gif overlay  (Read 158928 times)

0 Members and 3 Guests are viewing this topic.

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Prevent downloading of pics - transparent gif overlay
« on: July 12, 2006, 09:43:57 am »

That's a lil theme addition. So you won't need to modify core files. This addition puts a transparent gif over the actual intermediate or fullsized image. If a user tries to download the image he only gets the transparent gif. Same if he tries to find out the URL (with tight click -> properties). This is no 100% secure solution but protects against most newbies and lazy users. Also it's 100 times better than blocking the right mouse button (at least I hate sites that use that techniques and leave)

Installation: unzip the attachment and open the txt file. It's contents copy into the theme.php you're actually using or want to use the transparent gif overlay on (right above the final ?>).
In most cases that's it. If however the two included functions are already in your theme.php (function theme_html_picture, function theme_display_fullsize_pic) then please ask here what to modify exactly.

Finally copy the overlay.gif into your coppemine/images directory

the modpack version can be found here
http://forum.coppermine-gallery.net/index.php?topic=32548.0

« Last Edit: October 27, 2006, 12:48:33 pm by Stramm »
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Prevent downloading of pics - transparent gif overlay
« Reply #1 on: July 12, 2006, 10:15:15 am »

What about overlay.gif? Do we need to create that image file or you forgot to attach it to the post?
Logged
Chief Geek at Ranium Systems

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Prevent downloading of pics - transparent gif overlay
« Reply #2 on: July 12, 2006, 10:22:35 am »

thanks for the hint, I've totally forgotten about it

tantley

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 18
    • BayouMX
Re: Prevent downloading of pics - transparent gif overlay
« Reply #3 on: August 13, 2006, 08:17:38 pm »

This is an excellent mod that works instantly.  ;D

I was very impressed that it only took about three minutes to download, install, and check for proper operation.

As a side note for future CPG versions, if this could be implemented (on or off) through the admin config options, it would be a great feature.

Thanks for writing and sharing this great feature!
Logged

xx-07

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Prevent downloading of pics - transparent gif overlay
« Reply #4 on: August 14, 2006, 03:25:03 am »

nifty little tweek...

is there a way to tie this into "members only" and remove this of logged in?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Prevent downloading of pics - transparent gif overlay
« Reply #5 on: August 14, 2006, 08:00:30 am »

This is an excellent mod that works instantly.  ;D

I was very impressed that it only took about three minutes to download, install, and check for proper operation.

As a side note for future CPG versions, if this could be implemented (on or off) through the admin config options, it would be a great feature.

Thanks for writing and sharing this great feature!

Thanks :)
and it's scheduled to be in the next cpg version
http://forum.coppermine-gallery.net/index.php?topic=33176.msg154902#msg154902

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Prevent downloading of pics - transparent gif overlay
« Reply #6 on: August 14, 2006, 08:03:29 am »

of course possible. Basically you compare the modified functions with the original ones. Copy the changes into the original function and pack them in a if/ else clause
if (!USER_ID){...}  //for the not logged in user

xx-07

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Prevent downloading of pics - transparent gif overlay
« Reply #7 on: August 18, 2006, 05:18:18 am »

a thought...

this gif overlay covers tnail and intermediat picture...

does it also cover full size image?

i have looked at this and it seems full size image is not covered... is this correct?

if true, how could we disable, in config, full size view for non registered users?

this way drive-bys could not access images until theytook the time to register...

thoughts?
Logged

xx-07

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Prevent downloading of pics - transparent gif overlay
« Reply #8 on: August 18, 2006, 06:00:59 am »

getting closer...

i have installed Full-Size Photos Access Control
http://forum.coppermine-gallery.net/index.php?topic=25010.msg117873#msg117873

now i am going to try to add this gif thing...
Logged

xx-07

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Prevent downloading of pics - transparent gif overlay
« Reply #9 on: August 18, 2006, 06:20:18 am »

ok added mod as directed...

i have image display problems...

i am using 'rainy day' theme ...

actual images show in the case of no larger size (original load was smaller than intermediate)

i have successfully added the "Full-Size Photos Access Control"

and there must be a conflict...

link to image with no large size in db:  http://www.wireservicefree.net/florist_image_exchange/displayimage.php?album=topn&cat=0&pos=17

link to image with large size in db: http://www.wireservicefree.net/florist_image_exchange/displayimage.php?album=random&cat=0&pos=-125

many thanks
Logged

xx-07

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Prevent downloading of pics - transparent gif overlay
« Reply #10 on: August 18, 2006, 06:28:12 am »

footnote:

images all work if logged in....

the blank images only seem to effect not logged in users...

also....

Quote
This addition puts a transparent gif over the actual intermediate or fullsized image.

how do we switch between 'intermediate or fullsized'?

my goal is to have fullsized unrestrictes (no overlay.gif)

many thanks
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Prevent downloading of pics - transparent gif overlay
« Reply #11 on: August 18, 2006, 08:41:23 am »

As said, the gif overlay covers the intermediate and fullsize image. If you want to exclude one, then you don't copy the function in question to your theme.php (function theme_html_picture, function theme_display_fullsize_pic).

The fullsize access control plugin I'd say modifies one of the two functions (the one for the fullsize popup) as well - > again, either don't copy the fullsize popup function from the zip to your theme.php, modify it to include the plugins changes or modify the plugin. This is what I meant in my first post
Quote
If however the two included functions are already in your theme.php
A plugin may add that function without you seeing it in the theme.php

edit: I've just tried the fullsize acvcess control plugin with 4 more other plugins and the transparent gif overlay.. all working smooth as butter
« Last Edit: August 18, 2006, 08:56:13 am by Stramm »
Logged

dragonwolf

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Prevent downloading of pics - transparent gif overlay
« Reply #12 on: August 18, 2006, 10:33:01 am »

I got the mod working for an admin user just fine, but all I get for normal users is a white image. I'm using the eyeball theme. Anyone got any ideas?
Logged

xx-07

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Prevent downloading of pics - transparent gif overlay
« Reply #13 on: August 18, 2006, 04:58:52 pm »

--->normal users is a white image

this is what i have...

hmmm
Logged

xx-07

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Prevent downloading of pics - transparent gif overlay
« Reply #14 on: August 18, 2006, 05:20:39 pm »

hey dragonwolf ...

try loadig an image that is smaller than your 'intermediate' as defined in config - i bet the image will show!

seems the intermediate sized images are getting lost...

i think the overlay mod somehow is not looking for 'intermediate sized images'...

Logged

dragonwolf

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Prevent downloading of pics - transparent gif overlay
« Reply #15 on: August 18, 2006, 07:39:11 pm »

I uploaded a thumbnail image and it can be viewed. My intermediate size is set to 600. The uploaded images are 1800 x 1197 at full size. I also have the Full-Size Access control and I have full-size disabled for all users so I didn't put the function

theme_display_fullsize_pic()

into the theme.php

That didn't seem to make a difference.
Logged

xx-07

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Prevent downloading of pics - transparent gif overlay
« Reply #16 on: August 18, 2006, 08:15:10 pm »

try to load a pic that is smaller than 600

i bet it will work -
Logged

dragonwolf

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Prevent downloading of pics - transparent gif overlay
« Reply #17 on: August 18, 2006, 08:23:24 pm »

I set one to exactly 600 and it worked. If I have to, I can resize all pics 600, but if there's a code mod I can do that would be better.
Logged

xx-07

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Prevent downloading of pics - transparent gif overlay
« Reply #18 on: August 18, 2006, 10:23:04 pm »

U and Me - seem to have the same problem...

this tweek is not looking for intermediate images for guest level perms...

please ntoe we are bidge phpBB 2.0.13

thoughts?
Logged

Fudgemaster

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 45
    • Trackdays, Car shows, Nature and some misc photos
Re: Prevent downloading of pics - transparent gif overlay
« Reply #19 on: August 20, 2006, 05:03:57 pm »

Thanks Stramm, works like a charm.
If I only knew how to edit the code to make this overlay thingamajigger to work
with this -> http://forum.coppermine-gallery.net/index.php?topic=33581
Logged
--
It's an insane world.. But I'm proud to be a part of it.
Pages: [1] 2 3 4 5 ... 7   Go Up
 

Page created in 0.036 seconds with 19 queries.