Prevent right click on an image

nedret

Joined: 2005-07-06
Posts: 17
Posted: Thu, 2006-02-02 16:17

Hi there,

Is it possible to prevent right click on an intermediate size image?

Actually I did it in G1, but here I have difficulty doing within a template code.

Thanks,
nedret

 
arkam

Joined: 2003-08-04
Posts: 12
Posted: Thu, 2006-02-02 16:26
 
nedret

Joined: 2005-07-06
Posts: 17
Posted: Thu, 2006-02-02 16:43

Hi arkam,

I know how to disable right-click.

I just need help finding out where in the gallery code to do it.

 
arkam

Joined: 2003-08-04
Posts: 12
Posted: Thu, 2006-02-02 22:58

Sorry, i answered too fast.

You may add the javascript code into the gallery/templates/global.tpl file

 
arkam

Joined: 2003-08-04
Posts: 12
Posted: Thu, 2006-02-02 23:20

and maybe the best way is to create the folder
gallery/templates/local in which you copy the templates/* files then modify the local/global.tpl file

Doing so, your modifications won't be erased if you install a new or upgrade gallery

 
sunkit

Joined: 2005-08-02
Posts: 23
Posted: Mon, 2006-02-13 06:34

Hi arkam,

I am using G2, and I cannot find this file gallery/templates/global.tpl,

would you mind to told me where to add those code for G2?

THX!