السبت، 16 يناير 2010

كيفية إضافة هاك مواضيع ذات صلة .(دروس بلوجر)

كيفية إضافة هاك مواضيع ذات صلة .(دروس بلوجر)

بسم الله الرحمن الرحيم
وبعد،،،فهذه سلسلة دروس وشروحات التدوين على بلوجر واليوم بإذن الله نتناول درس كيفية إضافة 'مواضيع ذات صلة ' إلى مدونتك. ( كمثال مدونتي).
ماعليك إلا الدخول إلى حسابك ومن ثم التبويب : تخطيط | تحرير ال HTML. قم باختيار توسيع قوالب عناصر واجهة الاستخدام .

 ابحث عن

</head>

ثم ضف الكود التالي قبلها :


<style>

#related-posts {
float : right;
width : 540px;
margin-top:20px;
margin-right : 5px;
margin-bottom:20px;
font : 13px Tahoma;
margin-bottom:10px;
text-align:right;
}
#related-posts .widget {
list-style-type : none;
margin : 5px 0 5px 0;
padding : 0;
}
#related-posts .widget h2, #related-posts h2 {
color : #940f04;
font-size : 20px;
font-weight : normal;
margin : 5px 7px 0;
padding : 0 0 5px;
}
#related-posts a {
color : #054474;
font-size : 11px;
text-decoration : none;
}
#related-posts a:hover {
color : #054474;
text-decoration : none;
}
#related-posts ul {
border : medium none;
margin : 10px;
padding : 0;
}
#related-posts ul li {
display : block;
background : url("http://sites.google.com/site/taliblogsite/img-1/weed-bullet-ar.gif") no-repeat right;
margin : 0;
padding-top : 0;
padding-right : 0;
padding-bottom : 1px;
padding-right : 16px;
margin-bottom : 5px;
line-height : 2em;
border-bottom:1px dotted #cccccc;
}

</style>
<script src='http://sites.google.com/site/taliblogsite/file/Related_posts_hack.txt' type='text/javascript'/>


الآن ابحث عن :


<data:post.body/>

ضف مباشرة بعدها هذا الكود :
<b:if cond='data:blog.pageType == "item"'>
<div id='related-posts'>
<font color='#0025f2' face='Tahoma' size='2'><b>%u0645%u0648%u0627%u0636%u064A%u0639 %u0630%u0627%u062A %u0635%u0644%u0629 : </b></font><font color='#FFFFFF'><b:loop values='data:post.labels' var='label'><data:label.name/><b:if cond='data:label.isLast != "true"'>,</b:if><b:if cond='data:blog.pageType == "item"'>
<script expr:src='"/feeds/posts/default/-/" data:label.name "?alt=json-in-script&amp;callback=related_results_labels&amp;max-results=5"' type='text/javascript'/></b:if></b:loop> </font>
<script type='text/javascript'> removeRelatedDuplicates(); printRelatedLabels();
</script>
</div></b:if>



يمكنك التحكم في عدد المواضيع التي ستظهر في القائمة من خلال تغيير بسيط في قيمة المتغير max-results.


ملحوظة غير الرموز  
%u0645%u0648%u0627%u0636%u064A%u0639 %u0630%u0627%u062A %u0635%u0644%u0629
بين

الى كلمة موضوعات ذات صلة او اى كلمة تريدها

هناك تعليق واحد:

  1. مشكوووووووووووووور يا غالي شرح مياي مياي

    ردحذف