This topic was locked 24th Mar 08 at 10:42pm by Michael |
Samoht™ New Member

![[Avatar]](http://i123.photobucket.com/albums/o299/Tealo/Red-Hat-cropped.jpg) Posts: 30 Status: Offline Gender: Male Location: USA Joined:
pmwww | [F] Sopt Copying and Pasting[Support] (23rd Mar 08 at 2:48am UTC) Resolved | | Was Posting by Slushiie™ -- Today at 1:52am
Quote: This 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 Wrighty
Quote: This code wont work on vF.
-- I had tested this code on my test board, and it worked perfectly. Yes, it does work with vForums. | |
|
|
Marc vChat Developer
     I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 33 Joined:
Additional Groups: Coding Team
  
pmwww | Re: Sopt Copying and Pasting[Support] (23rd Mar 08 at 2:50am UTC) | | 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™
| |
rroll.to— Shorten a link, rickroll your friends. |
|
Samoht™ New Member

![[Avatar]](http://i123.photobucket.com/albums/o299/Tealo/Red-Hat-cropped.jpg) Posts: 30 Status: Offline Gender: Male Location: USA Joined:
pmwww | Re: Sopt Copying and Pasting[Support] (23rd Mar 08 at 2:54am UTC) | | 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. | |
|
|
Marc vChat Developer
     I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 33 Joined:
Additional Groups: Coding Team
  
pmwww | Re: Sopt Copying and Pasting[Support] (23rd Mar 08 at 2:59am UTC) | | 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. | |
rroll.to— Shorten a link, rickroll your friends. |
|
Samoht™ New Member

![[Avatar]](http://i123.photobucket.com/albums/o299/Tealo/Red-Hat-cropped.jpg) Posts: 30 Status: Offline Gender: Male Location: USA Joined:
pmwww | Re: Sopt Copying and Pasting[Support] (23rd Mar 08 at 3:19am UTC) | | Mkay..Thanks Crow, I'll get on that right away.  | |
|
|
Marc vChat Developer
     I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 33 Joined:
Additional Groups: Coding Team
  
pmwww | Re: Sopt Copying and Pasting[Support] (23rd Mar 08 at 3:23am UTC) | | No worries. | |
rroll.to— Shorten a link, rickroll your friends. |
|