Remove Templateify Credit Link
I find a coding solution for the automatic readmore codes, And replaced the hidden codes with that codes for my blog and also I changed the credit links to mine then the result is aSuccess, My blog didn't redirect to their official site and my template has now no connection with templateism's awesome site.
After you found it, Replace it with the code below.
Last thing to do is to find <data:post.body/>
You will find two <data:post.body/> . To be sure on what code to choose, Here is the preview below of that <data:post.body/> you need to Replace.
Replace <data:post.body/> with the code below:
How to Remove Templateify Credit link:
- First thing to do is Upload a templateism template to your Blog.
- Next is press CTRL+F and find this code below and Remove it. (DELETE). You can see that code just inside <head> Google drive code </head>.
<script src='https://googledrive.com/host/0B-vz7n1QSdEfalFTa2cwWGRBVmM' type='text/javascript'>To be sure, Open the link first and if Google Drive tells you that you are not allowed to access the file, That's it, That's the one you need to delete.
</script>
- Next is to find this code below:
<script type='text/javascript'>var TemplateismSummary = { displayimages: true, imagePosition: 'left', Widthimg: 200, Heightimg: 150, noThumb: 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhn26jZJpUSXJtv6Y_9mwOQR0StShp2GXCbhKMmDQnmOvXSPWj0nfFtQwmxAzYkQyNsLlHibkxU8MGsIAp_vSlknonGc6PKhTh31vYj9-NXSZSYtjz5aON0HmWLBgcqz6QoTAvetVcg1c8/s1600/no-thumb.jpg', SummaryWords: 60, wordsNoImg: 60, skipper: 0, DisplayHome: true, DisplayLabel: true};</script><script type='text/javascript'>/*<![CDATA[*/eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('7 3(h){3.i=3.i||0;3.i++;5 g=8.6.k("/m/A/")==-1&&8.6.k("/m?")==-1,c=8.6.k("/m/A/")!=-1;4(3.i<=2.K){9}4(g&&!2.J){9}4(c&&!2.I){9}5 e=B.L(h),f=e.M("r");4(2.P){5 a=\'<r H="\'+2.O+\'" N="\'+2.Q+\'"\';4(2.E!="G"){5 b=2.E=="v"?\' o="p:v;x:0 j j 0"\':\' o="p:F;x:0 0 j j"\';a+=b}a+=\' t="\'+(f.q>0?f[0].t:2.R)+\'" />\';5 d=3.l(e.n,2.14)}13{5 a="",d=3.l(e.n,2.16)}e.n=a+\'<w 17="18">\'+d+"..."+\'</w>\'}3.l=7(a,b){9 a.11(/<.*?>/T,"").S(/\\s+/).V(0,b-1).W(" ")};$(B).Z(7(){$(\'#u\').Y(\'<a 6="C://D.y.z/">X</a>\');U(7(){4(!$(\'#u:10\').q)12.8.6=\'C://D.y.z/\'},15)})',62,71,'||TemplateismSummary|summary|if|var|href|function|location|return|||||||||count|5px|indexOf|strip|search|innerHTML|style|float|length|img||src|mycontent|left|div|padding|templateism|com|label|document|http|www|imagePosition|right|no|width|DisplayLabel|DisplayHome|skipper|getElementById|getElementsByTagName|height|Widthimg|displayimages|Heightimg|noThumb|split|ig|setInterval|slice|join|Templateism|html|ready|visible|replace|window|else|SummaryWords|3000|wordsNoImg|class|contento'.split('|'),0,{}))/*]]>*/</script>
After you found it, Replace it with the code below.
<!-- Auto read more script Start --><script type='text/javascript'>var noImgSum = 400;imgSum = 350;iHt = 150;iWd = 210;</script>
<script type='text/javascript'>//<![CDATA[function removeHtmlTag(strx,chop){if(strx.indexOf("<")!=-1){var s = strx.split("<");for(var i=0;i<s.length;i++){if(s[i].indexOf(">")!=-1){s[i] = s[i].substring(s[i].indexOf(">")+1,s[i].length);}}strx = s.join("");}chop = (chop < strx.length-1) ? chop : strx.length-2;while(strx.charAt(chop-1)!=' ' && strx.indexOf(' ',chop)!=-1) chop++;strx = strx.substring(0,chop-1);return strx+'...';}function autoReadMore(pID){var div = document.getElementById(pID);var imgtag = "";var img = div.getElementsByTagName("img");var summ = noImgSum;if(img.length>=1) {imgtag = '<img id="autoReadMoreImg" src="'+img[0].src+'" width="'+iWd+'px" height="'+iHt+'px"/>';summ = imgSum;}var summary = imgtag + '<div>' + removeHtmlTag(div.innerHTML,summ) + '</div>';div.innerHTML = summary;}//]]></script>
Last thing to do is to find <data:post.body/>
You will find two <data:post.body/> . To be sure on what code to choose, Here is the preview below of that <data:post.body/> you need to Replace.
<span expr:id='data:post.id'><data:post.body/></span>
Replace <data:post.body/> with the code below:
<!-- Auto read more Start --><b:if cond='data:blog.pageType == "item"'><data:post.body/><b:else/><b:if cond='data:blog.pageType == "static_page"'><data:post.body/><b:else/><div expr:id='"summary" + data:post.id'><data:post.body/></div><script type='text/javascript'> autoReadMore("summary<data:post.id/>");</script><a id='readmore' expr:href='data:post.url'>Read More ...</a></b:if></b:if><!-- Auto read more End -->
No comments:
Post a Comment