إضافة مواضيع ذات الصلة للبلوجر بالطريقة الحديثة
مواضيع ذات الصلة, مقالات ذات الصلة, مواضيع تهمك, مشاركات مماثلة, أوصت لك, كلها تحمل نفس المعنى مقالات ذات الصلة لمدونات بلوجر أداة رئيسية لكسب المزيد من الزوار يُمكن مشاهدة المقال التالي لمزيد من المعلومات
معاينة (صورة تجريبية)
طريقة إضافة مواضيع ذات الصلة بلوجر
1. الدخول للوحة تحكم مدونتك النقر على القالب ثم انقر على تحرير html
2. انقر نقرة على أكواد مدونتك ثم بإستخدام إختصار البحث ctrl+f البحث عن الرمز </head> وإضافة الكود التالي فوّقه مباشرةً
<style type='text/css'>
#related-posts{float:right;width:auto;}
#related-posts a{}
#related-posts h2{margin-top: 10px;background:none;font:18px Oswald;padding:3px;color:#999999; text-transform:uppercase;}
#related-posts .related_img {margin:5px;border:4px solid #f2f2f2;width:270px;height:185px;transition:all 300ms ease-in-out;-webkit-transition:all 300ms ease-in-out;-moz-transition:all 300ms ease-in-out;-o-transition:all 300ms ease-in-out;-ms-transition:all 300ms ease-in-out;}
#related-title {color:#000;text-align:right;padding: 0 10px;font-family: 'Oswald',sans-serif;font-size: 18px; line-height:23px;height:35px;width:270px;}
#related-posts .related_img:hover{opacity:.7;filter:alpha(opacity=70);-moz-opacity:.7;-khtml-opacity:.7}
</style>
<script type='text/javascript'>
var _0x7fa2=["x68x74x74x70x3Ax2Fx2Fx32x2Ex62x70x2Ex62x6Cx6Fx67x73x70x6Fx74x2Ex63x6Fx6Dx2Fx2Dx65x78x33x56x38x36x66x6Ax34x64x51x2Fx55x72x43x51x51x61x34x63x4Cx73x49x2Fx41x41x41x41x41x41x41x41x46x64x41x2Fx6Ax32x46x43x54x6Dx47x4Fx72x6Fx67x2Fx73x31x36x30x30x2Fx6Ex6Fx2Dx74x68x75x6Dx62x6Ex61x69x6Cx2Ex70x6Ex67","x3C","x73x70x6Cx69x74","x6Cx65x6Ex67x74x68","x3E","x69x6Ex64x65x78x4Fx66","x73x75x62x73x74x72x69x6Ex67","","x6Ax6Fx69x6E","x72x61x6Ex64x6Fx6D","x66x6Cx6Fx6Fx72","x65x6Ex74x72x79","x66x65x65x64","x24x74","x74x69x74x6Cx65","x6Cx69x6Ex6B","x72x65x6C","x61x6Cx74x65x72x6Ex61x74x65","x68x72x65x66","x72x65x70x6Cx69x65x73","x74x79x70x65","x74x65x78x74x2Fx68x74x6Dx6C","x20","x63x6Fx6Ex74x65x6Ex74","x73x75x6Dx6Dx61x72x79","x70x75x62x6Cx69x73x68x65x64","x3Cx69x6Dx67","x73x72x63x3Dx22","x22","x73x75x62x73x74x72","x4Ax61x6E","x46x65x62","x4Dx61x72","x41x70x72","x4Dx61x79","x4Ax75x6E","x4Ax75x6C","x41x75x67","x53x65x70","x4Fx63x74","x4Ex6Fx76","x44x65x63","x2D","x3Cx61x20x68x72x65x66x3Dx22","x22x3E","x20x63x6Fx6Dx6Dx65x6Ex74x73x3Cx2Fx61x3E","x3Cx64x69x76x20x63x6Cx61x73x73x3Dx22x63x6Fx6Cx5Fx6Dx61x73x6Bx6Fx6Cx69x73x22x3Ex3Cx68x32x20x63x6Cx61x73x73x3Dx22x70x6Fx73x74x74x69x74x6Cx65x22x3Ex3Cx61x20x68x72x65x66x3Dx22","x3Cx2Fx61x3Ex3Cx2Fx68x32x3Ex3Cx61x20x68x72x65x66x3Dx22","x22x3Ex3Cx69x6Dx67x20x63x6Cx61x73x73x3Dx22x72x65x6Cx61x74x65x64x5Fx69x6Dx67x22x20x73x72x63x3Dx22","x22x2Fx3Ex3Cx2Fx61x3Ex3Cx64x69x76x20x63x6Cx61x73x73x3Dx22x63x6Cx65x61x72x22x3Ex3Cx2Fx64x69x76x3Ex3Cx2Fx64x69x76x3E","x77x72x69x74x65","x75x72x6C","x67x66x6Fx72x6Dx5Fx66x6Fx6Fx74","x2Ex2Ex2E","x73x70x6Cx69x63x65","x3Cx68x32x3E","x3Cx2Fx68x32x3E","x3Cx64x69x76x20x73x74x79x6Cx65x3Dx22x63x6Cx65x61x72x3Ax20x62x6Fx74x68x3Bx22x2Fx3E","x3Cx61x20x73x74x79x6Cx65x3Dx22x74x65x78x74x2Dx64x65x63x6Fx72x61x74x69x6Fx6Ex3Ax6Ex6Fx6Ex65x3Bx6Dx61x72x67x69x6Ex3Ax30x20x34x70x78x20x31x30x70x78x20x30x3Bx66x6Cx6Fx61x74x3Ax6Cx65x66x74x3B","x20x68x72x65x66x3Dx22","x22x2Fx3Ex3Cx62x72x2Fx3Ex3Cx64x69x76x20x69x64x3Dx22x72x65x6Cx61x74x65x64x2Dx74x69x74x6Cx65x22x3E","x3Cx2Fx64x69x76x3Ex3Cx2Fx61x3E","x3Cx2Fx64x69x76x3E"];imgr= new Array();imgr[0]=_0x7fa2[0];showRandomImg=true;aBold=true;summaryPost=400;summaryTitle=20;numposts1=12;numposts2=4;function removeHtmlTag(_0x5abbx2,_0x5abbx3){var _0x5abbx4=_0x5abbx2[_0x7fa2[2]](_0x7fa2[1]);for(var _0x5abbx5=0;_0x5abbx5<_0x5abbx4[_0x7fa2[3]];_0x5abbx5++){if(_0x5abbx4[_0x5abbx5][_0x7fa2[5]](_0x7fa2[4])!=-1){_0x5abbx4[_0x5abbx5]=_0x5abbx4[_0x5abbx5][_0x7fa2[6]](_0x5abbx4[_0x5abbx5][_0x7fa2[5]](_0x7fa2[4])+1,_0x5abbx4[_0x5abbx5][_0x7fa2[3]]);} ;} ;_0x5abbx4=_0x5abbx4[_0x7fa2[8]](_0x7fa2[7]);_0x5abbx4=_0x5abbx4[_0x7fa2[6]](0,_0x5abbx3-1);return _0x5abbx4;} ;function showrecentposts1(_0x5abbx7){j=(showRandomImg)?Math[_0x7fa2[10]]((imgr[_0x7fa2[3]]+1)*Math[_0x7fa2[9]]()):0;img= new Array();if(numposts2<=_0x5abbx7[_0x7fa2[12]][_0x7fa2[11]][_0x7fa2[3]]){maxpost=numposts2;} else {maxpost=_0x5abbx7[_0x7fa2[12]][_0x7fa2[11]][_0x7fa2[3]];} ;for(var _0x5abbx5=0;_0x5abbx5<maxpost;_0x5abbx5++){var _0x5abbx8=_0x5abbx7[_0x7fa2[12]][_0x7fa2[11]][_0x5abbx5];var _0x5abbx9=_0x5abbx8[_0x7fa2[14]][_0x7fa2[13]];var _0x5abbxa;var _0x5abbxb;if(_0x5abbx5==_0x5abbx7[_0x7fa2[12]][_0x7fa2[11]][_0x7fa2[3]]){break ;} ;for(var _0x5abbxc=0;_0x5abbxc<_0x5abbx8[_0x7fa2[15]][_0x7fa2[3]];_0x5abbxc++){if(_0x5abbx8[_0x7fa2[15]][_0x5abbxc][_0x7fa2[16]]==_0x7fa2[17]){_0x5abbxb=_0x5abbx8[_0x7fa2[15]][_0x5abbxc][_0x7fa2[18]];break ;} ;} ;for(var _0x5abbxc=0;_0x5abbxc<_0x5abbx8[_0x7fa2[15]][_0x7fa2[3]];_0x5abbxc++){if(_0x5abbx8[_0x7fa2[15]][_0x5abbxc][_0x7fa2[16]]==_0x7fa2[19]&&_0x5abbx8[_0x7fa2[15]][_0x5abbxc][_0x7fa2[20]]==_0x7fa2[21]){_0x5abbxa=_0x5abbx8[_0x7fa2[15]][_0x5abbxc][_0x7fa2[14]][_0x7fa2[2]](_0x7fa2[22])[0];break ;} ;} ;if(_0x7fa2[23] in _0x5abbx8){var _0x5abbxd=_0x5abbx8[_0x7fa2[23]][_0x7fa2[13]];} else {if(_0x7fa2[24] in _0x5abbx8){var _0x5abbxd=_0x5abbx8[_0x7fa2[24]][_0x7fa2[13]];} else {var _0x5abbxd=_0x7fa2[7];} ;} ;postdate=_0x5abbx8[_0x7fa2[25]][_0x7fa2[13]];if(j>imgr[_0x7fa2[3]]-1){j=0;} ;img[_0x5abbx5]=imgr[j];s=_0x5abbxd;a=s[_0x7fa2[5]](_0x7fa2[26]);b=s[_0x7fa2[5]](_0x7fa2[27],a);c=s[_0x7fa2[5]](_0x7fa2[28],b+5);d=s[_0x7fa2[29]](b+5,c-b-5);if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!=_0x7fa2[7])){img[_0x5abbx5]=d;} ;var _0x5abbxe=[1,2,3,4,5,6,7,8,9,10,11,12];var _0x5abbxf=[_0x7fa2[30],_0x7fa2[31],_0x7fa2[32],_0x7fa2[33],_0x7fa2[34],_0x7fa2[35],_0x7fa2[36],_0x7fa2[37],_0x7fa2[38],_0x7fa2[39],_0x7fa2[40],_0x7fa2[41]];var _0x5abbx10=postdate[_0x7fa2[2]](_0x7fa2[42])[2][_0x7fa2[6]](0,2);var _0x5abbx11=postdate[_0x7fa2[2]](_0x7fa2[42])[1];var _0x5abbx12=postdate[_0x7fa2[2]](_0x7fa2[42])[0];for(var _0x5abbx13=0;_0x5abbx13<_0x5abbxe[_0x7fa2[3]];_0x5abbx13++){if(parseInt(_0x5abbx11)==_0x5abbxe[_0x5abbx13]){_0x5abbx11=_0x5abbxf[_0x5abbx13];break ;} ;} ;var _0x5abbx14=_0x5abbx10+_0x7fa2[22]+_0x5abbx11+_0x7fa2[22]+_0x5abbx12;_0x5abbxa=_0x7fa2[43]+_0x5abbxb+_0x7fa2[44]+_0x5abbxa+_0x7fa2[45];var _0x5abbx15=_0x7fa2[46]+_0x5abbxb+_0x7fa2[44]+_0x5abbx9+_0x7fa2[47]+_0x5abbxb+_0x7fa2[48]+img[_0x5abbx5]+_0x7fa2[49];document[_0x7fa2[50]](_0x5abbx15);j++;} ;} ;var relatedTitles= new Array();var relatedTitlesNum=0;var relatedUrls= new Array();var thumburl= new Array();function related_results_labels_thumbs(_0x5abbx7){for(var _0x5abbx5=0;_0x5abbx5<_0x5abbx7[_0x7fa2[12]][_0x7fa2[11]][_0x7fa2[3]];_0x5abbx5++){var _0x5abbx8=_0x5abbx7[_0x7fa2[12]][_0x7fa2[11]][_0x5abbx5];relatedTitles[relatedTitlesNum]=_0x5abbx8[_0x7fa2[14]][_0x7fa2[13]];try{thumburl[relatedTitlesNum]=_0x5abbx8[_0x7fa2[52]][_0x7fa2[51]];} catch(error){s=_0x5abbx8[_0x7fa2[23]][_0x7fa2[13]];a=s[_0x7fa2[5]](_0x7fa2[26]);b=s[_0x7fa2[5]](_0x7fa2[27],a);c=s[_0x7fa2[5]](_0x7fa2[28],b+5);d=s[_0x7fa2[29]](b+5,c-b-5);if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!=_0x7fa2[7])){thumburl[relatedTitlesNum]=d;} else {thumburl[relatedTitlesNum]=_0x7fa2[0];} ;} ;if(relatedTitles[relatedTitlesNum][_0x7fa2[3]]>35){relatedTitles[relatedTitlesNum]=relatedTitles[relatedTitlesNum][_0x7fa2[6]](0,35)+_0x7fa2[53];} ;for(var _0x5abbxc=0;_0x5abbxc<_0x5abbx8[_0x7fa2[15]][_0x7fa2[3]];_0x5abbxc++){if(_0x5abbx8[_0x7fa2[15]][_0x5abbxc][_0x7fa2[16]]==_0x7fa2[17]){relatedUrls[relatedTitlesNum]=_0x5abbx8[_0x7fa2[15]][_0x5abbxc][_0x7fa2[18]];relatedTitlesNum++;} ;} ;} ;} ;function removeRelatedDuplicates_thumbs(){var _0x5abbx1c= new Array(0);var _0x5abbx1d= new Array(0);var _0x5abbx1e= new Array(0);for(var _0x5abbx5=0;_0x5abbx5<relatedUrls[_0x7fa2[3]];_0x5abbx5++){if(!contains_thumbs(_0x5abbx1c,relatedUrls[_0x5abbx5])){_0x5abbx1c[_0x7fa2[3]]+=1;_0x5abbx1c[_0x5abbx1c[_0x7fa2[3]]-1]=relatedUrls[_0x5abbx5];_0x5abbx1d[_0x7fa2[3]]+=1;_0x5abbx1e[_0x7fa2[3]]+=1;_0x5abbx1d[_0x5abbx1d[_0x7fa2[3]]-1]=relatedTitles[_0x5abbx5];_0x5abbx1e[_0x5abbx1e[_0x7fa2[3]]-1]=thumburl[_0x5abbx5];} ;} ;relatedTitles=_0x5abbx1d;relatedUrls=_0x5abbx1c;thumburl=_0x5abbx1e;} ;function contains_thumbs(_0x5abbx20,_0x5abbx21){for(var _0x5abbx22=0;_0x5abbx22<_0x5abbx20[_0x7fa2[3]];_0x5abbx22++){if(_0x5abbx20[_0x5abbx22]==_0x5abbx21){return true;} ;} ;return false;} ;function printRelatedLabels_thumbs(){for(var _0x5abbx5=0;_0x5abbx5<relatedUrls[_0x7fa2[3]];_0x5abbx5++){if((relatedUrls[_0x5abbx5]==currentposturl)||(!(relatedTitles[_0x5abbx5]))){relatedUrls[_0x7fa2[54]](_0x5abbx5,1);relatedTitles[_0x7fa2[54]](_0x5abbx5,1);thumburl[_0x7fa2[54]](_0x5abbx5,1);_0x5abbx5--;} ;} ;var _0x5abbx24=Math[_0x7fa2[10]]((relatedTitles[_0x7fa2[3]]-1)*Math[_0x7fa2[9]]());var _0x5abbx5=0;if(relatedTitles[_0x7fa2[3]]>0){document[_0x7fa2[50]](_0x7fa2[55]+relatedpoststitle+_0x7fa2[56]);} ;document[_0x7fa2[50]](_0x7fa2[57]);while(_0x5abbx5<relatedTitles[_0x7fa2[3]]&&_0x5abbx5<20&&_0x5abbx5<maxresults){document[_0x7fa2[50]](_0x7fa2[58]);if(_0x5abbx5!=0){document[_0x7fa2[50]](_0x7fa2[28]);} else {document[_0x7fa2[50]](_0x7fa2[28]);} ;document[_0x7fa2[50]](_0x7fa2[59]+relatedUrls[_0x5abbx24]+_0x7fa2[48]+thumburl[_0x5abbx24]+_0x7fa2[60]+relatedTitles[_0x5abbx24]+_0x7fa2[61]);if(_0x5abbx24<relatedTitles[_0x7fa2[3]]-1){_0x5abbx24++;} else {_0x5abbx24=0;} ;_0x5abbx5++;} ;document[_0x7fa2[50]](_0x7fa2[62]);relatedUrls[_0x7fa2[54]](0,relatedUrls[_0x7fa2[3]]);thumburl[_0x7fa2[54]](0,thumburl[_0x7fa2[3]]);relatedTitles[_0x7fa2[54]](0,relatedTitles[_0x7fa2[3]]);} ;
</script>
3. الخطوة الأخيرة! والأهم هي البحث عن الرمز <data:post.body/> غالباً ستجد منه 3 أو أربعة رموز متشابهة منه أختر الأخير ثم ألصق الكود التالي أسفله مباشرةً أو في المكان الذي ترغب بأن تظهر فيه المواضيع ذات الصلة
ملاحظة قد لا تعمل على الأخير بحسب كل قالب إن لم تعمل إختر القبله إلى أن تراها ظهرت
<b:if cond='data:blog.pageType == "item"'>
<div id='related-posts'>
<b:loop values='data:post.labels' var='label'>
<b:if cond='data:label.isLast != "true"'>
</b:if>
<script expr:src='"/feeds/posts/default/-/" + data:label.name + "?alt=json-in-script&callback=related_results_labels_thumbs&max-results=5"' type='text/javascript'/></b:loop>
<script type='text/javascript'>
var currentposturl="<data:post.url/>";
var maxresults=4;
var relatedpoststitle="<b>شاهد <span>أيصـــــاً</span>:</b>";
removeRelatedDuplicates_thumbs();
printRelatedLabels_thumbs();
</script>
</div>
</b:if>
الآن إحفظ القالب لتشاهد النتائج!.