0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

Re: Only Print Images?

    • Robert W's Avatar
    • Robert W
    • Elite Rocketeer
    • Posts: 815
    • Thanks: 0
    • IT

    Re: Only Print Images?

    Posted 17 years 3 months ago
    • 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: 17 years 3 months ago by Chris S.
    • Joe K's Avatar
    • Joe K
    • Elite Rocketeer
    • Posts: 902
    • Thanks: 0

    Re: Re: Only Print Images?

    Posted 17 years 3 months ago
    • 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.
    • Robert W's Avatar
    • Robert W
    • Elite Rocketeer
    • Posts: 815
    • Thanks: 0
    • IT

    Re: Re: Only Print Images?

    Posted 17 years 3 months ago
    • 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! :)
    • Bob Ateah's Avatar
    • Bob Ateah
    • Elite Rocketeer
    • Posts: 4521
    • Thanks: 0

    Re: Re: Only Print Images?

    Posted 17 years 3 months ago
    • 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).
    • The member formerly known as Roland Deschain
      After your question is solved, please Edit your original post and choose the Solved message icon, thank you!
    • Robert W's Avatar
    • Robert W
    • Elite Rocketeer
    • Posts: 815
    • Thanks: 0
    • IT

    Re: Re: Only Print Images?

    Posted 17 years 3 months ago
    • I'm ok w/ that Roland. This is what I would need to add to utilize the blank.gif correct?
      <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: 17 years 3 months ago by Robert W.
    • Chris S's Avatar
    • Chris S
    • Hero Rocketeer
    • Posts: 292
    • Thanks: 0

    Re: Re: Only Print Images?

    Posted 17 years 3 months ago
    • 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 ;)
    • Joe K's Avatar
    • Joe K
    • Elite Rocketeer
    • Posts: 902
    • Thanks: 0

    Re: Re: Only Print Images?

    Posted 17 years 3 months ago
    • It is already the afternoon, you got that mambot done yet? Don't slack and let us down. ;D
    • Robert W's Avatar
    • Robert W
    • Elite Rocketeer
    • Posts: 815
    • Thanks: 0
    • IT

    Re: Re: Only Print Images?

    Posted 17 years 3 months ago
    • 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.
    • Chris S's Avatar
    • Chris S
    • Hero Rocketeer
    • Posts: 292
    • Thanks: 0

    Re: Re: Only Print Images?

    Posted 17 years 3 months ago
    • Believe it or not, I just finished the J!1.5-Version :P

      And since the idea is born here, it's called RokCloak! :D

      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: test.gameguide.cc/index.php/rt-tutorial/...ng-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 ;)
    • Bob Ateah's Avatar
    • Bob Ateah
    • Elite Rocketeer
    • Posts: 4521
    • Thanks: 0

    Re: Re: Only Print Images?

    Posted 17 years 3 months ago
    • Hey Chris, just in case no one has told you in the last 5 minutes or so, you rock dude! :D

      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. ;)
    • The member formerly known as Roland Deschain
      After your question is solved, please Edit your original post and choose the Solved message icon, thank you!

Time to create page: 0.082 seconds