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

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

0 Members and 1 Guest are viewing this topic.

Hayvosh

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 11
Re: Prevent downloading of pics - transparent gif overlay
« Reply #100 on: December 29, 2007, 02:02:05 pm »

Here's my theme.php zipped.
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 #101 on: December 29, 2007, 02:17:26 pm »

You have a modded function theme_html_picture... looks like a lightbox addition.

As I don't us such a mod I can't help you that much here. But with a diff viewer like winmerge you can compare the code of this mod with the original code and the lightbox code. Then it should be possible (with some try and fail) to merge everything.

knaphih

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Prevent downloading of pics - transparent gif overlay
« Reply #102 on: February 15, 2008, 04:08:49 pm »

the theme I'm using doesn't have 'function theme_display_fullsize_pic' or 'function theme_html_picture'.... and when i put the code in theme.php... intermediate images become unclickable.... anyway to fix this? or am i doing something wrong?
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 #103 on: February 15, 2008, 05:32:44 pm »

post a link to your site and zip your theme.php and attach it to your next post

knaphih

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Prevent downloading of pics - transparent gif overlay
« Reply #104 on: February 16, 2008, 05:41:36 am »

Here u go Stramm ... its www.fotodeck.com/gallery [Edit GauGau] Warning: link not safe for work [/Edit]

Ive attached the zipped theme.php.....
« Last Edit: February 16, 2008, 02:38:57 pm by Joachim Müller »
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 #105 on: February 16, 2008, 08:29:42 am »

of course a usr/ pass with permissions to at least view images would be useful.

knaphih

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Prevent downloading of pics - transparent gif overlay
« Reply #106 on: February 16, 2008, 08:57:32 am »

user: tempo
pass: 123456
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 #107 on: February 16, 2008, 09:18:53 am »

The mod isn't running on your site, therfore I can't see any issues... what should I advise you?

knaphih

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Prevent downloading of pics - transparent gif overlay
« Reply #108 on: February 16, 2008, 09:33:02 am »

I was if you could put in the code for me....anyways.... ive installed the code....n its running.... i cant even view the intermediate images now... :( ... i have attached the theme.php file
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 #109 on: February 16, 2008, 09:54:42 am »

For me it works (both with ie7 and firefox). Maybe you have installed other mods/ plugins that prevent you (as admin) to open the fullsized image.

knaphih

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Prevent downloading of pics - transparent gif overlay
« Reply #110 on: February 16, 2008, 10:06:40 am »

i don knw.... somehow its working for me too now..... :)....cool mod btw....thnx... :D :D
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Prevent downloading of pics - transparent gif overlay
« Reply #111 on: February 16, 2008, 02:39:37 pm »

@knaphih: you're hiding the "Powered by Coppermine" tag. Restore it immediately!
Logged

noviar

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Prevent downloading of pics - transparent gif overlay
« Reply #112 on: March 29, 2008, 04:50:03 am »

Hallo stramm

I'm a newbie and don't know any knowledge about php. I tried to put your code by trial and error, because I don't know where to put your code.

I have some questions to ask do you mind?

first, could you teach me one more time, in what folder and file should I put your code to make overlay works?

then, when user try to click the intermediate picture, full size picture appears and if user try to save the picture, they will get overlay.gif, but If user maximizes the window, the overlay just cover some part of the picture, not the entire picture, If they move the cursor closer to right, they will be able to save the image. there is litle line that show the border between the overlay and the real image.


please help me with your tutor for dummy

thanks stramm
Logged

traypup

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Prevent downloading of pics - transparent gif overlay
« Reply #113 on: June 13, 2008, 12:51:58 am »

Thank you --- this worked great on the first try. I appreciate it!
Logged

SIM-R

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Prevent downloading of pics - transparent gif overlay
« Reply #114 on: June 13, 2008, 03:51:39 am »

Ok - I know the moderators will behead me for this ......but at this point ...

I really like the idea of this mod . I love cpg but if I can't get this to work I may have to switch to some lame flash based gallery.....ugh .
I spent a few hours trying to figure this out . I'm using eyeball theme on the latest version which was installed server side .

I came to this post from strams previous post regarding this subject where it provided a link to the files . That link brought me here .
I click on the link on the first post here and I'm brought back there . I went to strams website and downloaded the modpack and can not seem to find the invisible gif mod within .
I don't need the rest of his mods  just the inv gif mod ( excellent and well thought out as they are  - thanks for the hard work in helping codeless hacks like myself ).
I have scoured the web, the forum and my limited brain trying to find out how to get these files . I saw that this option was to be include in future updates and indeed when reading the instructions for older versions it seems it was there . But not now ?It still works with 4.18??

Can someone please give me a link to download the two pieces of code and the gif . I saw mention of the zipped files but no download link .
I can then put the files and code in  the appropriate places .

Am I even CLOSE to solving this ?

Apologies all round for failure and needing of hand holding .
 Am I even CLOSE to solving this ?.
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 #115 on: June 13, 2008, 08:04:26 am »

Code and gif are attached to the first post of this thread.

SIM-R

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Prevent downloading of pics - transparent gif overlay
« Reply #116 on: June 13, 2008, 06:52:34 pm »

Ok - now I know I am mentally challenged . :)

Sorry Stramm - I had been to the post and did not see it .
I did not know I had to be logged in to see the attachment . :-[
Could have saved hours of lameness ........

Makes sense now I think of it .

Thanks a million  ;)




Logged

ohyoukrissie

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Prevent downloading of pics - transparent gif overlay
« Reply #117 on: June 29, 2008, 02:52:43 am »

I'm a total newbie at modifying this code, and I've attempted it twice and keep getting syntax errors. I'm not entirely sure I've put the code in the correct place.

This is the error I got the second time :
"Parse error: syntax error, unexpected $end in /home/rachrorg/public_html/gallery/themes/Rachel/theme.php on line 2665"

My theme is located at www.rachel-tucker.org/gallery/themes/Rachel/theme.php

Hopefully someone can point me in the right direction!
Logged

nyfalls

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Prevent downloading of pics - transparent gif overlay
« Reply #118 on: December 23, 2008, 04:08:26 am »

First of all, I love this mod.  Thank you!   ;D
Without it my users would not use my gallery (copyright freaks)
I'm a newb and I installed it the first time without problems.
I disabled the full size image with a simple javascript/void- my users don't need to see it.
I do have some requests to help close some (newb) security holes- perhaps it would be easy to apply this mod to these cases (?):
The slideshow and the e-card- you can still right-click and save as the image. Can a variation of this code be applied to those?

Logged

wpamungkas

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Prevent downloading of pics - transparent gif overlay
« Reply #119 on: February 24, 2009, 02:03:18 pm »


I have the following message with installing the file to theme.php. Can help?

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /hermes/bosweb/web056/b565/sl.iaspemne/public_html/yudcom/fotos/themes/rainy_day/theme.php on line 54
Logged
Pages: 1 2 3 4 5 [6] 7   Go Up
 

Page created in 0.023 seconds with 19 queries.