Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Pages: 1
Has anybody ever tried disabling right click on jpgs, presenting a message that this image is copyrighted? I know this can be gotten around, but at least it would slow those who would rip you off. I have found javascript online that does so, and I suppose it can be incorporated into the php file, but have not seen anybody actually do it. Except 500px, who does do it.
Randy Hoffner
Last edited by randyhoffner (2017-09-13 17:57:10)
Offline
Offline
Offline
Thanks Matthew and Charlie. I'll give it a go. (I've been a little preoccupied).
Randy
Offline
I wish you wouldn't, but you do you.
Offline
Yes, I get that. Maybe I will just be content with watermarks and metadata. Never really thought of it as purposefully breaking the browser, but I see it.
Offline
I appreciate the reasoning against it but I would also like to disable the context menu. I have followed the instructions in the link above and added the code to a copy of the phplugins-sample.php file which I have renamed to my-phplugins.php and in the Backlight page template I have enable PHPlugins and included my-phplugins.php however, it doesn't appear to work. Is there something else that I need to enable?
My site is http://freshphoto.co.uk
Last edited by deanjm (2018-01-26 01:47:42)
Offline
I don't see the script appearing in the source code of your page.
the code referenced in that article uses a phplugins hook from the CEx days (ttg_body_bottom_) That hook does not exist in Backlight. Use ttg_scripts instead.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Hi Rod , many thanks for the reply that did the trick.
Last edited by deanjm (2018-01-26 05:57:02)
Offline
instead of the ttg_body_bottom hook used in the code from the tutorial, use ttg_scripts instead
Instead of this:
function ttg_body_bottom( $style, $path ) {
Use this:
function ttg_scripts( $style, $path ) {
all the available hooks are listed in any of the phplugins files inside the backlight/custom/phplugins/ folder
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Pages: 1