Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: nikan on May 06, 2013, 06:33:58 PM

Title: FixCopy
Post by: nikan on May 06, 2013, 06:33:58 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3694)

Introduction
The FixCopy mod adds your site link at the end of anything copied from your site.

Features
* Adds your site link at the end of the copied content
* Admins don't have their site link in the copied content

History
Upgraded version:
2.0 - Moved the code to external file
      - When you press copy, the selected content stays selected
      - The copied content keeps alignment of code and tabs

Previous version:
1.1 - Removed the language string
      - XHTML Valid
1.0 - Initial release
Title: Re: FixCopy
Post by: Arantor on May 06, 2013, 06:43:02 PM
This could get old fast for people like me who copy the text to make quotes with it, but interesting idea otherwise.
Title: Re: FixCopy
Post by: Shambles on May 07, 2013, 03:59:23 AM
It's a highly entertaining idea and it works fine, well done.

I would just amend your mod description slightly to account for the fact it doesn't actually affect "anything copied from your site", just text blocks.
Title: Re: FixCopy
Post by: Colin on May 19, 2013, 02:08:48 AM
Just a brief idea maybe to add the ability to disable this for members or admins. Nice work, nikan.
Title: Re: FixCopy
Post by: nikan on June 03, 2013, 02:20:13 PM
Thank you all.
It's already disabled for admins. Members are also a reason for this mod.
Title: Re: FixCopy
Post by: Burke ♞ Knight on June 03, 2013, 02:47:19 PM
Quote from: nikan on June 03, 2013, 02:20:13 PM
Thank you all.
It's already disabled for admins. Members are also a reason for this mod.

I tend to agree with that. Members are at least 60% of the ones copying from sites.
I like this mod idea. Great job on it. :)
Title: Re: FixCopy
Post by: Hristo on June 15, 2013, 07:54:44 PM
Thanks for the mod, really good idea!

Just for the record - seems it does not work in Opera 12.15 and IE8.
Title: Re: FixCopy
Post by: Biology Forums on June 17, 2013, 12:05:01 AM
Excellent mod. I think it's lacking permissions. For example, admin chooses which member-groups are exempt from it.
Title: Re: FixCopy
Post by: Colin on June 17, 2013, 05:27:32 AM
Quote from: Liam_michael on June 17, 2013, 12:05:01 AM
Excellent mod. I think it's lacking permissions. For example, admin chooses which member-groups are exempt from it.

I agree that would be huge.
Title: Re: FixCopy
Post by: lurkalot on September 09, 2013, 04:39:15 PM
Quote from: Liam_michael on June 17, 2013, 12:05:01 AM
Excellent mod. I think it's lacking permissions. For example, admin chooses which member-groups are exempt from it.

I also think this would be a great idea. 

Mod looks great, always nice to get free backlinks from people stealing your content.  I'm guessing it works a bit like the Tynt mod, but less hassle?
Title: Re: FixCopy
Post by: luuuciano on October 27, 2013, 07:57:35 PM
Thanks, nice mod...

BTW, it would be nice a customizable string before the link, like the "Information from: "
(I have added by hand, editing the file... I like to do it that way anyway... but maybe other admins do not, or do not know how)


  oDiv.innerHTML += "<br />\n<br />\nInformation from: <a href=" + document.location.href + ">" + document.location.href + "</a>";


Or at least handled by an item on language files, Modifications.whatever.php
Title: Re: FixCopy
Post by: nikan on October 28, 2013, 03:49:49 AM
Thanks, but I found that it is preferable to have only the link, so i removed the language string.
Title: Re: FixCopy
Post by: luuuciano on November 02, 2013, 01:52:17 PM
It would be nice a function, to make it work only when copying inside the forumposts ID (posts/topics content)