vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Code Requests & Support :: [F] Sopt Copying and Pasting[Support] - View Topic
Topic Rating: *****
Printable View
This topic was locked 24th Mar 08 at 10:42pm by Michael
Samoht™
New Member
*

[Avatar]

Posts: 30
Status: Offline
Gender: Male
Location: USA
Joined:  
Reputation: 0%  


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.


Image

Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


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/". {Wink}

Also, the code seems to be in there twice. There's a few spelling errors, too. {Wink}

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. {Wink}

Ross
Marc
Samoht™

{Smile}

rroll.to— Shorten a link, rickroll your friends.
Samoht™
New Member
*

[Avatar]

Posts: 30
Status: Offline
Gender: Male
Location: USA
Joined:  
Reputation: 0%  


pmwww
Re: Sopt Copying and Pasting[Support] (23rd Mar 08 at 2:54am UTC)
Yes..I accidently put the code twice. {Rolleyes}
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. {Tongue Out}


Image

Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Sopt Copying and Pasting[Support] (23rd Mar 08 at 2:59am UTC)
Anyway, to fix it:

Fix the URL check, for starters. {Wink}

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. {Smile}

rroll.to— Shorten a link, rickroll your friends.
Samoht™
New Member
*

[Avatar]

Posts: 30
Status: Offline
Gender: Male
Location: USA
Joined:  
Reputation: 0%  


pmwww
Re: Sopt Copying and Pasting[Support] (23rd Mar 08 at 3:19am UTC)
Mkay..Thanks Crow, I'll get on that right away. Smiley


Image

Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Sopt Copying and Pasting[Support] (23rd Mar 08 at 3:23am UTC)
No worries. {Smile}

rroll.to— Shorten a link, rickroll your friends.
 Printable View

All times are GMT+0 :: The current time is 3:37am
Page generated in 0.9424 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums