Here's a quite smart trick for today: Add a Copyright Notice to Copied Text.
What it does is that when someone copies text from your blog or website, this script ensures that once the text is pasted, it adds the URL of your post (on a blog) or page (on a website for example) and a copyright notice to the end of the pasted text. How awesome is that, right? :)
webeno's tutorials for beginner website designers, bloggers and internet marketers
Saturday, February 22, 2014
Add a copyright notice to text copied on your website or blog
Labels:
copy,
copyright,
copyright notice,
javascript,
paste,
text
AboutMe
I'm a talented website designer with the main goal of satisfying the customer. I'm precise, easy-going, simple, solution-driven and kind. Other than websites, I'm happy to provide any kind of picture editing to make sure your website looks the way you want it to be; to create a logo or even an animated banner.
Nothing is impossible and everything is manageable!ContactMe
I'm a talented website designer with the main goal of satisfying the customer. I'm precise, easy-going, simple, solution-driven and kind. Other than websites, I'm happy to provide any kind of picture editing to make sure your website looks the way you want it to be; to create a logo or even an animated banner.
Nothing is impossible and everything is manageable!ContactMe
6 comments:
Dear legitimate commenters, please post your comments below. I'd be happy to receive your feedback; helps me a lot improving, or getting reassurance that I'm doing something really great here.
IMPORTANT! A note to commenters planning on advertising their business in comments: please be informed that I'm NOT going to post your comments but will ALWAYS mark them as SPAM.
Subscribe to:
Post Comments (Atom)
Hi there, do you happen to know if this is just a Wordpress thing? I've tried it with my Blogger blog with no luck, even after tweaking the copyright symbol (©) which Blogger doesn't seem to like in the header. Suggestions?
ReplyDeleteHi Kelly, good that you commented on this, as it looks like my implementation of this script was lost in translation when I applied this new, temporary template. I have now added it back and it works like a charm (you may want to give it a try), so not sure why it's breaking for you.
DeleteAs to the copyright symbol in the header, do you mean you believe that's what's causing the snippet to fail? Generally speaking I don't think it's Blogger that doesn't like the copyright symbol, it's rather the different interpretation of the different fonts and maybe even database entries, so you're better off using the HTML entity equivalents of special characters (© in case of the copyright symbol).
What have you tried to implement this code on your Blogger blog?
Thanks for your quick reply! When I try to save the template changes, I get this error:
ReplyDeleteError parsing XML, line 1059, column 134: The entity "copy" was referenced, but not declared.
I've tried using © instead of ©, which gets rid of the error, but still no luck.
Ah, I just noticed, when I go back in, Blogger changes all of my " to "e;. Maybe I'll try in a different browser (using Chrome currently).
A different browser won't help you in there. What you're facing is probably caused by the way quotes are used in your code. Here is what I suggest you have (mind the quotes and the other characters, very important that you keep them this way):
Deletevar pagelink = "<br/><br/> Read more at: <a href='"+document.location.href+"'>"+document.location.href+"</a><br/>Copyright &copy; webeno - webdesign, webhosting";
Of course, replace the last part with the name of your side ;) Let me know if this works.
Actually, that does not paste very well into Blogger, so let me email you with the exact code...
DeleteThanks!!
ReplyDelete