Advertisement:

Author Topic: FixCopy  (Read 7806 times)

Offline nikan

  • Jr. Member
  • **
  • Posts: 390
FixCopy
« on: May 06, 2013, 06:33:58 PM »
Link to Mod

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
« Last Edit: December 19, 2013, 09:43:42 PM by nikan »

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: FixCopy
« Reply #1 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.
No good deed goes unpunished
All helpful urges should be circumvented

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,610
  • Gender: Male
    • i30 Owners Club
Re: FixCopy
« Reply #2 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.

Offline Colin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,892
  • Gender: Male
  • SMF Developer
    • colinschoen on GitHub
Re: FixCopy
« Reply #3 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.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Offline nikan

  • Jr. Member
  • **
  • Posts: 390
Re: FixCopy
« Reply #4 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.

Offline Burke ♞ Knight

  • SMF Hero
  • ******
  • Posts: 3,534
Re: FixCopy
« Reply #5 on: June 03, 2013, 02:47:19 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. :)

Offline Hristo

  • Jr. Member
  • **
  • Posts: 319
  • Gender: Male
Re: FixCopy
« Reply #6 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.

Offline Biology Forums

  • SMF Hero
  • ******
  • Posts: 3,778
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: FixCopy
« Reply #7 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.

Offline Colin

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,892
  • Gender: Male
  • SMF Developer
    • colinschoen on GitHub
Re: FixCopy
« Reply #8 on: June 17, 2013, 05:27:32 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.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Offline lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,763
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: FixCopy
« Reply #9 on: September 09, 2013, 04:39:15 PM »
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?

Offline luuuciano

  • SMF Hero
  • ******
  • Posts: 2,979
    • http://cbasites.net/
Re: FixCopy
« Reply #10 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)

Code: [Select]
  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
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

Offline nikan

  • Jr. Member
  • **
  • Posts: 390
Re: FixCopy
« Reply #11 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.

Offline luuuciano

  • SMF Hero
  • ******
  • Posts: 2,979
    • http://cbasites.net/
Re: FixCopy
« Reply #12 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)
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).