Can u help me this function?

Copy protection, I want the function of this forum: [noparse]http://diendanlequydon.com/viewtopic.php?p=1920896#p1920896[/noparse] … Can u help me ?

Before Copy

/To all: sorry moi nguoi. Hien tai Co hoi ban, bay gio Co chi beta thoi, nhung Co se co gang nho Soc edit 1 tuan/ 3 hoặc 4 chuong. Cam on moi nguoi da theo doi.

After Copy and Paste:

/To 76all: sorry 5moi nguoi. ca © DiendanLeQuyDon.comHien tai Co a2hoi ban, bay 86gio Co chi 3fbeta thoi, 18nhung Co se aco gang nho 9Soc edit 1 98tuan/ 3 hoặc f24 chuong. 02 © DiendanLeQuyDon.comCam on moi abnguoi da theo 85doi.

Hi cafe02xh, welcome to the forums.

If you look at the page’s view-source you’ll see the function in it.

function autoAddCopyright() {
    var bodyElement = document.getElementsByTagName('body')[0];
    //var selection;
    var selectionArea = window.getSelection();
    var pageLink = "<br />Xem thêm: <a href='http://diendanlequydon.com/viewtopic.php?f=142&t=296514'>http://diendanlequydon.com/viewtopic.php?f=142&t=296514</a>";
    var copyText = selectionArea + pageLink;
    var newDiv = document.createElement('div');
    newDiv.style.position='absolute';
    newDiv.style.left='-99999px';
    bodyElement.appendChild(newDiv);
    newDiv.innerHTML = copyText;
    selectionArea.selectAllChildren(newDiv);
    window.setTimeout(function() {
        bodyElement.removeChild(newDiv);
    },0);
}
document.oncopy = autoAddCopyright;

Unless you mean this that looks to be done server-side prior to page rendering.

.....
<span style="font-size: 99.69%; color: #0f000e">Cam on moi </span>
<span style="font-size: 2.7px; letter-spacing: -2.7px; color: #ebf6ff">4f</span>
<span style="font-size: 99.79%; color: #01000e">
<script language="javascript"> ttdecode('6e'); </script>
guoi da theo </span>
......

Yes, thank you

Can you write css and java for that function? Can u help me >_<

I’m fairly certain it’s a WordPress plugin. Do you have WordPress?

Yes, I am using Wordpress and Vbb

It’s Easter today and I don’t have the time to check code to find if any of these are the same one being used by that site, but it could be one of these

http://wordpress.org/plugins/wp-copyprotect/
http://wordpress.org/plugins/wp-copy-data-protector/
http://wordpress.org/plugins/wp-content-copy-protector/
http://wordpress.org/plugins/mhr-custom-anti-copy/
http://wordpress.org/plugins/jcwp-copy-paste-blocker/
http://wordpress.org/plugins/digiproveblog/
http://wordpress.org/plugins/append-link-on-copy/
http://wordpress.org/plugins/copy-protect/

Thank you so much

But … i want to use that function for php or vbb.

Do you know how to copy protection as that forum >_<

This is a JavaScript, it is rendered in your browser (not on the server).
Check this tutorial, it explains how to add it:
http://www.hypergurl.com/norightclick.html

Note : I really think it’s a bad idea and a waste of time to try to add that kind of feature to a web site. Why? Somebody finds your text interesting and wants to copy it and send it to his email or paste it somewhere to promote something on your site and he’ll get a message that feels like “Hey, I don’t trust you”.

Second, it’s so easy to disable JavaScript or just show the source of a page and copy the text from there that this method would only prevent people that knows almost nothing about the Internet to copy the text. And, this is often the people that just wants to send the text to themselves or their friends. If somebody copies content of other websites to put it on its own site, I’m sure he’ll be able to disable that “child lock”.

Thank xMog

But I’ve followed your instructions and I still can’t T__T

Have you video tutorials?

Have you tried all the plugins and not one works?
Did the tutorial xMog suggested not help? What error messages do you get?

Reason: URL delinked, I send that url*again: http://diendanlequydon.com/viewtopic.php?p=1920896#p1920896


Hi Mitt

This is link’s xMog: http://www.hypergurl.com/norightclick.html but i can’t do it


Then i check that 4rum’s css: http://diendanlequydon.com/styles/hestia_blue_pink/theme/stylesheet.css

[COLOR=“#008000”].copyright {
color: #ccc;
font-weight: normal;
font-size: 10px;
line-height: 1.2em;
}
.copyright a, .copyright a:visited {
color: #ccc;
text-decoration: none;
}
.copyright a:hover { color: #0094FF; }

.copyprotect, a.copyprotect, a.copyprotect:visited { font-size: 0.01px; color: #ffffff; letter-spacing: -1px; text-decoration: none; }[/COLOR]

And I copy that css in my stylesheet.css, but the function not work.

I want copy this text but i can’t. Can anybody help me?

Link: http://cungquanghang.com/threads/b%C3%B9i-s%C6%A1-%E1%BA%A2nh-l%E1%BB%A5c-xu.17866/page-3#post-22056


Before Copy:

Chương 11

Sơ Ảnh vừa mới về tới nhà riêng đã nhận được điện thoại của La Hinh hỏi thăm tình hình của Cố Diễn Trạch. Cô không dám nói hai người không về cùng nhau, chỉ có thể nói Cố Diễn Trạch bị thương nhẹ, không có gì nguy hiểm để trấn an bà. La Hinh nghe vậy mới nhẹ nhõm, dặn dò vài câu rồi cúp máy.

Trong nhà lại chỉ còn mình cô. Xung quanh yên tĩnh đến mức Sơ Ảnh có thể nghe được tiếng thở của chính mình. Cô xoa ngực, vì sao ở nơi này lại đau đến thế? Cô chợt cảm thấy đói cồn cào, đã lâu lắm rồi mới xuất hiện cảm giác muốn nhét thật nhiều thứ vào dạ dày. Sơ Ảnh vội đứng dậy đi tìm thứ gì đó để ăn, những nơi trước kia cô từng giấu rất nhiều đồ ăn vặt vẫn còn nguyên. Cô lôi ra rất nhiều đồ ăn vặt, nhưng khi nghe tiếng sột soạt của nilon, cô lại cố gắng kiềm chế bản thân.

After Copy and Paste:

Chương 11

Sơ Ảnh vừa mới về tới nhà riêng đã nhận được điện thoại của La Hinh hỏi thăm tình hình của Cố Diễn Trạch. Cô @Copyright of CungQuangHang.Com (Do not Copy, pls!!)9 ?. [* f$ b" `3 ?0 Z không dám nói hai @Copyright of CungQuangHang.Com (Do not Copy, pls!!)K Q R S T người @Copyright of CungQuangHang.Com (Do not Copy, pls!!)9 ?. [* f$ b" `3 ?0 Z không về cùng nhau, chỉ có thể nói Cố Diễn Trạch bị thương nhẹ, @Copyright of CungQuangHang.Com (Do not Copy, pls!!)9 ?. [* f$ b" `3 ?0 Z không có gì nguy hiểm để trấn an bà. La Hinh nghe vậy mới nhẹ nhõm, dặn dò vài câu rồi cúp máy.

Trong nhà lại chỉ còn mình cô. Xung quanh yên tĩnh đến mức Sơ Ảnh có thể nghe được tiếng thở của chính mình. Cô xoa ngực, vì sao ở nơi này lại đau đến thế? Cô chợt cảm thấy đói cồn cào, đã lâu lắm rồi mới xuất hiện cảm giác muốn nhét thật nhiều thứ vào dạ dày. Sơ Ảnh vội đứng dậy đi tìm thứ gì đó để ăn, những nơi trước kia cô từng giấu rất nhiều đồ ăn vặt vẫn còn nguyên. Cô lôi ra rất nhiều đồ ăn vặt, @Copyright of CungQuangHang.Com (Do not Copy, pls!!)8 K AN IDF nhưng khi nghe tiếng sột soạt của nilon, cô lại cố gắng kiềm chế bản thân.


Thank you so much