Log in

View Full Version : Plz help me find this hack


zellvnn
08-04-2006, 08:08 AM
there are 2 different hacks
1 PPl are unable to right-click to any media files in ur forum. It happens like u try Right-click on any youtube videos

2 Ppl are unable to do right-click. They can go to " properties". However, the URL dont show the location of the files. So ppl can't steal that files.
For example, normally, 2 years ago, it will be www.yourdomain.com/forum/music.mp3

Now ppl can hide it.. It becomes... www.yourdomain.com/asdfasdfasdfsda/asdfasd (something else to prevent stealing)

DavutPasha
08-04-2006, 09:45 AM
(before it, you can see my website; http://forum.davutpasha.com, ideas is this; "members able to right-click but unregistereds unable to right-cick")

you can do this exactly, here is some examples;

Open your header template, and add this code where do you want;

ADMINS CAN ABLE TO RIGHT-CLICK BUT MEMBERS ARE UNABLE;

<if condition="$show['admincplink']">
<!-- RIGHT-CLICK IS ACTIVATED -->
<else />
<BODY onselectstart="return false" ondragstart="return false">
<SCRIPT language=JavaScript>
function openWin( windowURL, windowName, windowFeatures )
{ window.open( windowURL, windowName, windowFeatures ) ; }
</SCRIPT>
<script language=JavaScript>
<!--
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document. onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontext menu=clickIE;}

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


MEMBERS ABLE RIGHT-CLICK BUT UNREGISTEREDS UNABLE;

<if condition="$show['guest']">
<BODY onselectstart="return false" ondragstart="return false">
<SCRIPT language=JavaScript>
function openWin( windowURL, windowName, windowFeatures )
{ window.open( windowURL, windowName, windowFeatures ) ; }
</SCRIPT>
<script language=JavaScript>
<!--
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document. onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontext menu=clickIE;}

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


I hope, you will do this, if you don't you can ask, feel to free.
Caw..

zellvnn
08-04-2006, 09:05 PM
It would be wonderful if i can hide the URL from source too...........:rolleyes:

Stanley Steamer
08-07-2006, 09:32 PM
This works really good to prevent guests from stealing image bandwidth from the forum members.
How do you script it to disable right hand clicking for users awaiting E-mail confirmation too?

zellvnn
08-09-2006, 03:49 PM
It worked but.......it's a bit annoying for ppl who want to copy some text.....

Stanley Steamer
08-10-2006, 12:01 PM
If you paste this under it you will get the little message pop up window, but this disables right hand clicking for everyone including the administrator.
This isn't a good hack to use if you have a long complex password that you copy and paste from your note pad.


<SCRIPT LANGUAGE="JavaScript">
<!--
if (document.layers) {n=1;ie=0}
if (document.all) {n=0;ie=1}

function clickEvent(e) {
if(e.which ==3)
alert("Type your message here.")
return false
}

function click() {
if(event.button ==2)
alert("Type your message here")
}

if (n)
document.onmousedown = clickEvent;
if (ie)
document.onmousedown = click
//-->
</SCRIPT>

</style>
<script language=JavaScript>
<!--