I’ve finished a little code snippet for everyone, I was prompted to create this in regards to a particular individual that posted someone else’s PHPVMS Skin. Well, the only way this person got this, was either through Fire Fox FireBug plugin, or just plain hacked it.
( the code source that is.) Easy to do now a days, so here, this is for Everyone, and is really simple, short and to the point. This will
Protect against a right click to view the page source, if you put this into the —> layout.php page, and/or the ,
frontpage_main.php “Anywhere”, and of course this can be used anywhere you want. And it IS HTML compliant !! Period.
php,htm, html, xml, and xhtml. Bottom line. Photos, YOUR HARD WORK, can’t get skyped right out of the gate. It works for us, hope
ya all can put it to good use. Thanks,
Jim “Jungle”
copy and paste this into the Head of the layout.php of the Skin you are using for phpvms. Again, it can be put all over the place if so
Desired, however, usually the layout.php file is the source of your site, and skin setup you have created.
<!–protect site script , start code–>
<script language=Javascript> var message=“Copyright All Rights Reserved!”; 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>
<!–end protect script–>
Feel free to visit any of my sites, working demos at ; http://heritage-va.net/hva
and as usual, I will be MORE THEN HAPPY to answer you guys with questions. Give me time
though, I am 100% disabled, to answer, sorry, (war vet). But I will answer as quick as possible.
May God Speed, and see ya all in duh Air !