RocketTheme members please login below:
Username:
Password:
Forgot your password?
Joomla
Forum
RocketWerx
Tutorials
Blog
Labs
Shop
Contact
Home
Help
Rules
Search
Profile
Find out more about the “
Show Off Your Avatar Campaign
”
Search:
Advanced search
218908
Posts in
41067
Topics - Latest Member:
Søren Weiss Hansen
RocketTheme
|
General
|
General Discussion
| Topic:
Protect Images from being downloaded
« previous
next »
Pages:
[
1
]
2
Author
Topic: Protect Images from being downloaded (Read 8582 times)
Robert Wade
Professional
Hero Rocketteer
Offline
Posts: 551
Protect Images from being downloaded
«
on:
February 25, 2008, 06:59:38 PM »
I have a client who wants users to be able to only print individual images on the page and not be able to download them. I've looked around and havent really come up with a solid solution just yet so I was hoping to get some input or feedback from others who may have run across this issue. I know I could use a javascript to disable right-clicking however I really dont want to do that nor does my client. Any ideas or suggestions? Is it possible to have a print icon for each image I choose, mambot, etc?
Thanks
«
Last Edit: February 28, 2008, 09:08:24 AM by Chris S
»
Logged
Not sure which file to edit or what code to change? Check out
Firebug
Joe K
Hero Rocketteer
Offline
Posts: 865
Re: Only Print Images?
«
Reply #1 on:
February 25, 2008, 08:31:32 PM »
Can you do like Andy does with logos on the templates and cover them with a blank image?
Example: Right click on the logo in the HiveMind Template and all it lets you view is a blank.
Logged
Robert Wade
Professional
Hero Rocketteer
Offline
Posts: 551
Re: Only Print Images?
«
Reply #2 on:
February 25, 2008, 08:44:38 PM »
hmmmm....I think that might work! Is there a mambot or something or do I just need to insert code?
Thanks for the tip Joe!
Logged
Not sure which file to edit or what code to change? Check out
Firebug
Roland Deschain
RT Gunslinger
RocketTheme
Hero Rocketteer
Offline
Posts: 3508
Rok My World!
Re: Only Print Images?
«
Reply #3 on:
February 25, 2008, 10:33:49 PM »
No matter what you do, there will be a way to get the images, as far as I know.
Watermarking may be a solution (kind of).
Logged
"The man in black fled across the desert, and the gunslinger followed."
Robert Wade
Professional
Hero Rocketteer
Offline
Posts: 551
Re: Only Print Images?
«
Reply #4 on:
February 26, 2008, 11:16:27 AM »
I'm ok w/ that Roland. This is what I would need to add to utilize the blank.gif correct?
Quote
<img src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/blank.gif"
Add the above code to my image(s) and of course upload a blank.gif image to my images dir correct? Does it matter what size the blank.gif file is? Can I make it a 1x1?
«
Last Edit: February 26, 2008, 07:22:45 PM by Robert Wade
»
Logged
Not sure which file to edit or what code to change? Check out
Firebug
Chris S
Global Moderator
Hero Rocketteer
Offline
Posts: 293
Re: Only Print Images?
«
Reply #5 on:
February 27, 2008, 09:49:20 AM »
Just as an Example for an Image called "mypic.jpg" (residing in /images/stories/) with the dimensions 200x150, you would need:
<img src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/blank.gif" class="mypic" />
and in your css
.mypic {
background: url(/images/stories/mypic.jpg);
width: 200 px;
height: 150 px;
}
This will effectively keep Mr. StandardJoe from rightclick-saving your pics, since the only thing, he will get, is blank.gif.
However, you'll have to create a CSS Class for every single image...
Maybe I'll write a Mambot one day
Logged
Joe K
Hero Rocketteer
Offline
Posts: 865
Re: Only Print Images?
«
Reply #6 on:
February 27, 2008, 09:50:43 AM »
It is already the afternoon, you got that mambot done yet? Don't slack and let us down.
Logged
Robert Wade
Professional
Hero Rocketteer
Offline
Posts: 551
Re: Only Print Images?
«
Reply #7 on:
February 27, 2008, 02:28:06 PM »
Chris - you rock! Thanks for the info.
If I knew how, I'd write the dang Mambot. Maybe I'll figure that out one day.
Logged
Not sure which file to edit or what code to change? Check out
Firebug
Chris S
Global Moderator
Hero Rocketteer
Offline
Posts: 293
Re: Only Print Images?
«
Reply #8 on:
February 27, 2008, 05:21:44 PM »
Believe it or not, I just finished the J!1.5-Version
And since the idea is born here, it's called
RokCloak
!
The Syntax is {rokcloak}path/to/image.jpg{/rokcloak}
Possible Arguments are:
title - sets the spacer's ALT-Tag
align - set Image-Alignment
vspace - set vertical spacing
hspace - set horizontal spacing
css - add additional CSS
{rokcloak vspace=|10| hspace=|10| align=|left| title=|my rokcloak sample image| css=|border: 1 px solid black; |}images/stories/fruit/pears.jpg{/rokcloak}
You can see a Sample here:
http://test.gameguide.cc/index.php/rt-tutorial/pc-gaming-blog/pc-news-blog
This is kind of an RT-exclusive Alpha-Release... Everything should work fine, but there might be some changes still
However - Updating is not a problem.
Have Fun
The 1.0.x-Version will be finished by tomorrow, I guess
Logged
Roland Deschain
RT Gunslinger
RocketTheme
Hero Rocketteer
Offline
Posts: 3508
Rok My World!
Re: Only Print Images?
«
Reply #9 on:
February 27, 2008, 05:29:26 PM »
Hey Chris, just in case no one has told you in the last 5 minutes or so, you rock dude!
Folks can always take a sceenshot, but using smaller, less quality images can prevent damage done by that, and a watermark helps in some situations.
Logged
"The man in black fled across the desert, and the gunslinger followed."
Chris S
Global Moderator
Hero Rocketteer
Offline
Posts: 293
Re: Only Print Images?
«
Reply #10 on:
February 27, 2008, 06:23:23 PM »
Thanks, Roland
Yeah, there are still ways to bypass this, that just can't be prevented (like screenshots), but they all include some "work" and people tend to be lazy, so most will just give up
By the way - the Plugin can also be used for "Watermarking" - you can replace the spacer.gif with a transparent image holding your Watermark (just keep the name spacer.gif) - however, you will then be bound to it's dimensions.
Nice idea anyway - I'll probably implement a "Watermark"-Argument in the next release
Logged
Robert Wade
Professional
Hero Rocketteer
Offline
Posts: 551
Re: Only Print Images?
«
Reply #11 on:
February 27, 2008, 06:43:19 PM »
Chris - I 2nd Rolands comment, you do ROCK! Many thanks for putting this together. Look'n forward to testing the J1.0.x version tomorrow. D
Logged
Not sure which file to edit or what code to change? Check out
Firebug
Joe K
Hero Rocketteer
Offline
Posts: 865
Re: Only Print Images?
«
Reply #12 on:
February 27, 2008, 07:04:26 PM »
Wow, fantastic Two thumbs up!
Logged
Chris S
Global Moderator
Hero Rocketteer
Offline
Posts: 293
Re: Only Print Images?
«
Reply #13 on:
February 28, 2008, 09:07:14 AM »
There we go with the J!1.0-Version
Have fun, using it
p.s.: since this might be interesting for many users, I made it sticky and changed the Topic
«
Last Edit: February 28, 2008, 09:09:12 AM by Chris S
»
Logged
Robert Wade
Professional
Hero Rocketteer
Offline
Posts: 551
Re: Protect Images from being downloaded
«
Reply #14 on:
February 28, 2008, 10:56:35 AM »
Whoohooo! My first RT sticky post!
Logged
Not sure which file to edit or what code to change? Check out
Firebug
Pages:
[
1
]
2
RocketTheme
|
General
|
General Discussion
| Topic:
Protect Images from being downloaded
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Announcements
-----------------------------
General
-----------------------------
=> General Discussion
=> The Water Cooler
=> Member Sites
=> Apple/Mac
=> Free/GPL/Tutorials Discussions
=> FAQs
===> General FAQs
===> Joomla Club FAQs