Pusat bantuan pencarian singkat masukan kata kunci yang ingin anda pada kolom dibawah lalu klik search
Supported by : Google

Domain Gratis silakan cari nama domain yang akan anda gunakan misal Namablog.co.cc tersebut kemudian daftarkan disini.
Masukan Namablog.co.cc Pada kotak diatas lalu Check availability.

How to easily create Read More automatic with the "Thumbnails"

Selasa, Februari 22, 2011

Automatic Read More Hack For Blogger With Thumbnails i.e expandable post hack for blogger with thumbnail of image used in blogger posts and all this work is done by the script automatically,you just dont need to locate your image the script will do all work for you automatically.Just you have to write your post and publish it with one image in post related to post.

If you dont want to add thumbnail image in post summary then i had an post previously on automatic read more hack for blogger, read this.

Now how to install Automatic Read More Hack For Blogger With Thumbnails Demo snapshot is below.

Lets start with its installation :

Now Login to Blogger Go to Layout > Edit HTML in your Blogger dashboard and check the "expand widget templates" box. (
Don't forget to backup your templates )

Find the closing tag in your blog template, and paste the following section of code immediately before it :

<script type="text/javascript">var thumbnail_mode = "no-float" ;<br />summary_noimg = 430;<br />summary_img = 340;<br />img_thumb_height = 100;<br />img_thumb_width = 120;<br /></script>
<script type="text/javascript"><br />//<![CDATA[ function removeHtmlTag(strx,chop){ if(strx.indexOf("<")!=-1) { var s = strx.split("<"); for(var i=0;i<s.length;i++){>")!=-1){<br />s[i] = s[i].substring(s[i].indexOf(">")+1,s[i].length);<br />}<br />}<br />strx = s.join("");<br />}<br />chop = (chop < strx =" strx.substring(0,chop-1);" div =" document.getElementById(pID);" imgtag = "" img =" div.getElementsByTagName(" summ =" summary_noimg;">=1) {<br />imgtag = '<span style="float:left; padding:0px 10px 5px 0px;"><img src="'+img[0].src+'" width="'+img_thumb_width+'px" height="'+img_thumb_height+'px" /></span>';<br />summ = summary_img;<br />}<br /><br />var summary = imgtag + '<div>' + removeHtmlTag(div.innerHTML,summ) + '</div>';<br />div.innerHTML = summary;<br />}<br /><br /><br />//]]><br /></script>

Note in above codes we can change the numeric numbers according to our need

summary_noimg = 430; is post cut height without image
summary_img = 340; is post cut height with image
img_thumb_height = 100; is thumbnail image height
img_thumb_width = 120; is thumbnail image width

Now find this code <data:post.body> in your template and replace it with below codes.

<b:if cond="data:blog.pageType == &quot;static_page&quot;">


<b:if cond="data:blog.pageType != &quot;item&quot;">

</b:if></b:else></data:post.body></b:if></data:post.body></span><div id="&quot;summary&quot; + data:post.id"><data:post.body></data:post.body></div><span class="fullpost">
<script type="text/javascript">createSummaryAndThumb("summary<data:post.id/>");<br /></script> <span class="rmlink" style="float: right; padding-top: 20px;"><a href="data:post.url"> read more "<data:post.title>"</data:post.title></a></span>

<b:if cond="data:blog.pageType == &quot;item&quot;"><data:post.body></data:post.body>

Preview Your template if its showing thumbnail with read more hack Save it.

To show thumbnail it should have one image in your blogger posts and please upload the .js file to your server and dont forget to change the link with yours in codes to make this hack work.

  • Share
Upload 100%, Free Unlimited Disk Space, Up to 200 MB per Upload. Makanya segera buruan daftar disini, Gratis!!!


Posting Komentar