[SOLVED] Where script should be place
nogates
Joined: 2011-04-13
Posts: 26 |
Posted: Wed, 2011-04-13 17:17 |
I whant to put "no save as or right click" in gallery,where the script should be place. //Disable right mouse click Script var message="Function Disabled!"; /////////////////////////////////// function clickNS4(e){ if (document.layers){ document.oncontextmenu=new Function("alert(message);return false") // --> From that page of gallery 1. http://codex.gallery2.org/Gallery1:Securing#Other_Methods |
|
Posts: 16504
First that doesn't provide any security at all.
Try this module:
http://codex.gallery2.org/Gallery3:Modules:norightclick
I can still download your photos with that installed though....
____________________________________________
Like Gallery? Like the support? Donate now!
Posts: 26
I know all about cache screanshot and all.But it prevent a basic windows user from getting it.
Thanks will try.
Posts: 26
Well don't seem to be working,i did install it an activate it in gallery.
gallery 3.0.1,Grey Dragon Theme
Missing something here.
thanks for the quick answer
Posts: 2466
yes, you are missing something
have installed, activated and tested - works just fine
check that you have unpacked module correctly
please note that Zip file is somewhat confusing - there are module.info in the root and inside norightclick folder
you need to copy norightclick folder from the zip into modules folder and not a whole ZIP content
Posts: 26
I try what you said because before i copy the hole file but not zip one.
now i get the green bar saying it's activate but there no mark beside norightclick (in the small square)
Did remove and refresh page and upload back,it stop showing if i remoove and back.
Posts: 26
Maybe now i screw something because before whit the full file it was able to install and was on top of the list.
now it's where it should be in list but the square don't stay green.
Posts: 2466
ok, let's start from scratch
Posts: 26
Thanks.
Work fine now,had to uncheck all module then reselect all to activate it.
nice support thanks again.