[PGTheme] Disabling right click for guests

greencardigan

Joined: 2006-03-01
Posts: 2
Posted: Thu, 2006-03-02 00:29

Hi,
With the PG Theme, is it possible to disable right clicking for guests only?

Thanks,
GC

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2006-03-02 01:49

This will work for all themes. but disabling right click will not stop anybody from taking your images.
If they are on the page they can be taken.

http://gallery.menalto.com/node/12622#comment-44355 will give you the code and expanation.
then wrap that bit of code with a check to see if that code is loaded for a guest:
http://codex.gallery2.org/index.php/Gallery2:Tpl_Reference#User_Information

Dave

____________________________________________________
Gallery Frames / Mods || G1 Test Gallery

 
greencardigan

Joined: 2006-03-01
Posts: 2
Posted: Fri, 2006-03-03 02:34

Yes, I realise that.

Thanks for the the links.