Tuesday, 5 November 2013

Filled Under: , ,

Protect Your Templates With Non-Removable Credits

STEP 1 : Setting Up Javascript 

  • This Javasript will help you protect your credits by directly redirecting to your desired page when someone removes the credits.
  • The Javascript is as follows and should be placed before</head>
<script type='text/javascript'>
//<![CDATA[
$(document).ready(function()
{
var aa=$("#credit4").val();
if (aa == null) {
    window.location.href = "http://www.yourpcgenie.net/";
};
 $("#credit4").attr("href","http://www.yourpcgenie.net/");
 
});
//]]>
</script>
  •  Elements to be studies : 
#credit4 : This is the name of the div class which we will use in our div setup.So if anyone          removes this div class they will be redirected to the link highlighted in blue 

http://www.yourpcgenie.net/ : This is the link where the page will be redirected if the credits are tampered.



STEP 2 : Using Div Structure 

  • Once you have edited the javascript given above you can use the below div structure in correspondence with the above script
<div id='credit4'>
     Designed By <a href='http://www.yourpcgenie.net' id='credit4'>Your Pc Genie</a>
   </div>

  • Make sure all the text highlighted in red are credit4 and text highlighted in blue is http://www.yourpcgenie.net or the same link that you want to redirect to.

Hiding The Javascript In External Host 

  • Authors could find the div id within the template and then revome the javascript.
  • Hence we can hide it by hosting the Javascript files externally.
  • Copy this code in notepad 

$(document).ready(function()
{
var aa=$("#importantlinks").val();
if (aa == null) {
    window.location.href = "http://www.yourpcgenie.net/";
};
 $("#importantlinks").attr("href","http://www.yourpcgenie.net/");
   

});

  • Make necessary changes as suggested in step1 
  • Click on the file menu and click on Save As
  • Navigate to the file saved 
  • Now name your file with .js at end, in Save As type place select 'All Files' and in Encoding select 'UTF8' that is it.
  • See below 

  • Save it and then head over to your browser and go todropbox.com
  • Avoid saving the name as Credit or anything similar as it might help us bluff the copycat.
  • Sign Up or login as per your status 
  • Then upload the file you just created to public folder 
  • Get the link and paste it in this code 
  <script src='LINK' type='text/javascript'/>
  • Replace link with your dropbox link 
  • For example 
 <script src='https://dl.dropboxusercontent.com/u/46317781/yourpcgeniereadmore.js' type='text/javascript'/>
  • Paste this below <head> 
  • That's it ! this should help you hide your javascript.

Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

2 comments:

  1. Replies
    1. I found here better: http://www.bebloggerist.com/forums/

      Delete

© 2013 iPRESS. All rights resevered. Designed by Templateism