wurm123 Posted December 12, 2015 Share Posted December 12, 2015 work this with 4.1? Link to comment Share on other sites More sharing options...
cometchat Posted February 23, 2016 Share Posted February 23, 2016 On 12/12/2015 at 1:13 AM, wurm123 said: work this with 4.1? To use this with 4.1 you have to add the code in the pageHeader instead. <if test="IPSMember::isInGroup( $this->memberData, array(2) )"> <script language=JavaScript> var message="You Must Log-in before you can use Right Click!"; function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") </script> </if> Link to comment Share on other sites More sharing options...
DarKMaSk Posted February 28, 2016 Share Posted February 28, 2016 I want no one except admins would be able to right click on any page in the entire forum. Please guide me where and what I have to change in the above mentioned script and where I have to put this script in which page? Please help. Link to comment Share on other sites More sharing options...
mathiasmm Posted March 28, 2016 Share Posted March 28, 2016 On 27.02.2016 at 10:18 AM, DarKMaSk said: I want no one except admins would be able to right click on any page in the entire forum. Please guide me where and what I have to change in the above mentioned script and where I have to put this script in which page? Please help. if ($this->memberData['member_id'] != 4) Link to comment Share on other sites More sharing options...
Crospa91 Posted April 11, 2016 Share Posted April 11, 2016 Thanks! Link to comment Share on other sites More sharing options...
WiiMnNos Posted June 30, 2016 Share Posted June 30, 2016 works for me thank you Link to comment Share on other sites More sharing options...
xSonia Posted September 17, 2016 Share Posted September 17, 2016 thank you Link to comment Share on other sites More sharing options...
ExoSan Posted November 8, 2016 Share Posted November 8, 2016 I added it to "pageHeader" but it is also showing to me (forum admin). Any guess? Link to comment Share on other sites More sharing options...
Recommended Posts