Prevent downloading of pics - transparent gif overlay - Page 6 Prevent downloading of pics - transparent gif overlay - Page 6
 

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

Main Menu

Prevent downloading of pics - transparent gif overlay

Started by Stramm, July 12, 2006, 09:43:57 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Hayvosh


Stramm

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

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?

Stramm

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

knaphih

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

Ive attached the zipped theme.php.....

Stramm

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

knaphih


Stramm

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

knaphih

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

Stramm

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

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

Joachim Müller

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

noviar

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

traypup

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

SIM-R

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 ?.

Stramm

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

SIM-R

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  ;)





ohyoukrissie

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!

nyfalls

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?


wpamungkas


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