Page 1 of 1

Tip to hide "save as" not working

Posted: 28 Jan 2012, 19:46
by phidias81
Hello, I tried to use the tip from the guide to disable the "save as" function on right click, but it's not working. Is it only my problem?
I have joomla 2.5 and Phoca gallery 3.1.2

Re: Tip to hide "save as" not working

Posted: 30 Jan 2012, 23:48
by Jan
Hi, did you set the right jquery library: jquery-1.6.4.min.js
Do you get some javascript error message on your site?
Jan

Re: Tip to hide "save as" not working

Posted: 07 Feb 2012, 00:07
by phidias81
I meant the tip written in this guide is not working for me

viewtopic.php?f=1&t=60

BEFORE

Code: Select all

<?php defined('_JEXEC') or die('Restricted access');

echo '<div id="phocagallery">';
if ($this->tmpl['backbutton'] != '') {
	echo $this->tmpl['backbutton'];
}
AFTER

Code: Select all

<?php defined('_JEXEC') or die('Restricted access');
echo '<script language=JavaScript>
<!--
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(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=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// --> 
</script>';

echo '<div id="phocagallery">';
if ($this->tmpl['backbutton'] != '') {
	echo $this->tmpl['backbutton'];
}

Re: Tip to hide "save as" not working

Posted: 10 Feb 2012, 23:02
by Jan
Hi, didn't test it, so cannot give any advice there :-(

Jan