discuz x1.5 帖子复制帖子加来源的修改方法
路径:templates/你的风格/viewthread_node.htm搜索:<tr><td class="postcontent postbottom">
在下面添加:<!--// 帖子防复制自动加版权代码开始-->
<script type="text/javascript">
document.body.oncopy = function () {
setTimeout( function () {
var text = clipboardData.getData("text");
if (text) {
text = text + "\r\n本文来自: {$bbname}({$boardurl}) 详细文章参考:"+location.href;
clipboardData.setData("text", text);
}
}, 100 )
}
</script>
<!--// 帖子防复制自动加版权代码结束-->
页:
[1]