Was Posting by Slushiie™ -- Today at 1:52amThis will stop people copying and pasting from the posts on your board...
Put it in your Global Footer....
<script ltype="text/javascript">
<!--
/*
Stop copying and pasting posts
Copyright © Chase 2007-2008
Please keep this header intact
*/
if(location.href.match('action=display'))
{
var posts = document.getElementsByTagName('font');
for(t=0; t<posts.length; t++)
{
if(posts[t].innerHTML.match('google_ad_section_start'))
{
posts[t].parentNode.onmouseup = function(){this.onmousemove = '';}
posts[t].parentNode.onmousedown = function(){var c = 0;var post = this.innerHTML;this.onmousemove = function(){c++;if(c<2){alert('No copying please');this.innerHTML = post;}}}
}}}
// -->
</script>
Was posted by WrightyThis code wont work on vF.
--
I had tested this code on my test board, and it worked perfectly. Yes, it does work with vForums.
I see no reason whatsoever as to why this would work on VF; no URL on VF uses "action=display", it would be "/action/view_topic/".![]()
Also, the code seems to be in there twice. There's a few spelling errors, too.![]()
Can I get a link to the test board where this works?
Note: In the future, to link to a user's profile, simply use [user][/user] tags.![]()
Ross
Marc
Samoht™
![]()
Yes..I accidently put the code twice.![]()
Test Board... Also, when I first put in the code it worked, for some odd reason, then it quite working...So it doesn't work now..Im pretty sure it was small glitch in the system.![]()
Anyway, to fix it:
Fix the URL check, for starters.![]()
Rather than looking for a font tag, just look for a TD.
Rather than checking for the "google_ad_section_start", simply look for a TD with a className of "post".
That's all I can spot off the bat that needs to be changed, so try that and we'll see if it works.![]()
Mkay..Thanks Crow, I'll get on that right away.
No worries.![]()