‏إظهار الرسائل ذات التسميات بلوجر. إظهار كافة الرسائل
‏إظهار الرسائل ذات التسميات بلوجر. إظهار كافة الرسائل

2014/05/15

كود اظهار المصدر عند النسخ من مدونة البلوجر

 كود اظهار المصدر عند النسخ من مدونة البلوجر

 السلام عليكم   أخوتي   

هذا  الكود  تضعه  مباشرة  بعد
<head>
و قم   بتغير   اسم  الموقع  و رابطه   

<script type='text/javascript'> 
function addLink() { 
var body_element = document.getElementsByTagName(&#39;body')[0]; 
var selection; 
selection = window.getSelection(); 
var pagelink = &quot;<br/><br/> المصدر : http://benkhadra-mourad.blogspot.com/<br/>مدينة التدوين بن خضرة مراد سامح&quot;; // change this if you want 
var copytext = selection + pagelink; 
var newdiv = document.createElement(&#39;div'); 
newdiv.style.position=&#39;absolute'; 
newdiv.style.left=&#39;-99999px'; 
body_element.appendChild(newdiv); 
newdiv.innerHTML = copytext; 
selection.selectAllChildren(newdiv); 
window.setTimeout(function() { 
body_element.removeChild(newdiv); 
},0); 
}document.oncopy = addLink; 
</script>‏

 و مبروك  عليك  الاظافة  

2013/06/15

طريقة أضافة زر الانتقال إلى الأعلى في مدونات بلوجر و وورد برس

إذا كانت الصفحة الرئيسية لمدونتك تحتوي على الكثير من التدوينات أو أن تدويناتك طويلة نوعا ما و تريد أن تجعل الزائر يرتاح و يستطيع أن ينتقل لأعلى المدونة بكل سهولة فمبتغاك سهل فأكمل معنا المقالة لتتعرف على طريقة إضافة زر أنيق جدا لا يختفي و فور الضغط عليه ينقل إلى أعلى الصفحة خلال ثانية واحدة.
أولا : نتوجه إلى التخطيط ثم أضف أداة فنختار Html/javascript .ثانيا : نضع هذا الكود و نعمل حفظ.الكود :


<a style="display:scroll;position:fixed;bottom:5px;right:5px;" href="#" title="Back to Top"><img src="http://img119.imageshack.us/img119/8589/arrowupcx2.gif" /></a>



سيظهر الكود في أسقل الصفحة و يتبعك أينما ذهبت و تستطيع رؤية النتيجة في مدونتي هذه.
إذا أردت تغيير شكل السهم , فإستبدل رابط الصورة التالي برابط الصورة التي تريدها:

http://img119.imageshack.us/img119/8589/arrowupcx2.gifشكرا لك على وقتك , دمت بخير.


(blogger) Setup Custom Permalink for a new Blog Post

A permalink (or permanent link) is a URL that points to a specific blog entry after it has passed from the front page to the archives.Blogger generates this permanent link based on your post title(If the title is in English). For example if your post title is “Hello World”, the blog post’s permalink would be something like http://yourblog.blogspot.com/2012/06/hello-world.html   Till date Blogger never allowed the user to control what the permalink should be but it rather assigned a permalink on it’s own.
This has now changed and Blogger now allows you to decide what the permalink of your new post should be.

Setup Custom Permalink for a new Blog Post

  1. Login to your Blogger account and compose a new post. On the Right side of the post editor, you will have a Post Settings Section. Click on the Permlink sub-section
    image
  2. If you select the “Automatic URL” (the default option), then Blogger will generate the permalink on it’s own. If you want to specify a custom URL, opt for the “Custom URL” option and you can enter your custom post permalink over there. It will allow you to enter alphabets, hyphens and underscores. It will just ignore underscores. So I just used a combination of hyphens and alphabets to create my post permalink
    image
  3.  
  4. The Final Permalink will be something like 
    http://yourblogaddress/yyyy/mm/the custom URL that you specified
    In my case it came to something like 
    http://myblog.blogspot.com/yyyy/mm/custom-permanent-link.html
  5. Now just publish the post like how you normally do




Can I alter Permalinks of Old Posts?

Blogger doesn’t allow you to modify the Permalinks of old posts but you can make use of this new feature on your new posts  There seems to be no limit to the length of this Custom URL at the moment but Blogger might impose some length limit in future.

2013/06/13

طريقة تركيب إضافة تعريف كاتب الموضوع في مدونات بلوجر Blogger


بسم الله الرحمن الرحيم
والصلاة والسلام على أشرف المرسلين سيدنا محمد النبي الأمين وعلى من سار الى هديه واستن بسنته الى يوم الدين أما بعد ,
 السلام عليكم ورحمة الله وبركاته , اعتقد بأنك قد شاهدت مدونات منصة wordpress ، وكيف تكون كل تدوينة متبوعة بصندوق يظهر بعض المعلومات التي يكتبها المؤلف عن نفسه مع صورة له ، والكثير منا تمنى ان يحصل على هذه الاضافة في مدونات blogspot ، في هذه التدوينة سأبين بأذن الله طريقة اضافة هذا الصندوق الجميل في مدونات بلوجر , طريقة إضافة تعريف للكاتب أسفل موضوعه لكل من المدونات الشخصية ذات الكاتب الوحيد و كذلك المدونات التي تعدد كتابها .


1 . طريقة تركيب إضافة تعريف الكاتب في مدونات بلوجر الشخصية



هذه الطريقة سوف تهم المدونات الشخصية التي يكتب فيها كاتب وحيد، و ستظهر نبذة عنه في أسفل كل مواضيع مدونته.
من لوح تحكم مدونتك توجه إلى تصميم ثم تحرير HTML  و قبل البدء في التعديل احفظ نسخة احتياطية من قالبك على حاسوبكضع علامة في خانة توسيع القوالب.
الخطوة الأولى (*) : ابحث عن ]]></b:skin>  و قبله مباشرة ضع كود CSS الآتي :
/* Author Bio */
.postauthor {
background: #F5F5F5;
border-top: 1px solid #e1e1e0;
border-bottom: 1px solid #e1e1e0;
overflow: hidden;
padding: 0.7em;
}
.postauthor img {
border: 5px solid #e2dede;
float: right;
margin-left: 1em;
}
.postauthor h3 {
color: #666;
font-size: 1.2em;
margin-bottom: 5px;
margin-top: 0;
}
.postauthor p {
color: #515151;
font-size: 12px;
margin-bottom: 10px;
margin-top: 0;
}
/* Author Bio End */
الخطوة الثانية :  ابحث عن <data:post.body/> (إن وجدت ثنتين فالثانية هي المقصودة)  ثم مباشرة بعدها ضع الكود الآتي:
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div class='postauthor'>
<img alt='' height='80' src='رابط الصورة الشخصية' width='80'/>
<h3>بقلم <a href='Blog Link'> اسم الكاتب </a></h3>
<p> فقرة تضم نبذة عن الكاتب </p>
</div>
</b:if>
غير ما لون بالأحمر ثم احفظ القالب، و بهذا تكون قد أنهيت المهمة بنجاح، حيث سيمكنك معاينة صنيعك عبر التوجه لصفحة موضوع ما على مدونتك.

2 . طريقة تركيب إضافة تعريف الكاتب في مدونات بلوجر الجماعية متعددة الكتاب

كثير من المدونات في الآونة الأخيرة بدأت تعتمد على أقلام كاتبين أو أكثر، و الطريقة التي كان ينهجها أصحابها لوضع تعريف للكاتب تكون عبر تضمينه داخل جسم التدوينة و يتكرر الأمر مع كل موضوع. الآن سنضع تعريفات الكتاب في القالب و سيظهر كل تعريف موافقا لموضوع كاتبه.
أولا ستتبع نفس الخطوة الأولى (*)  كما في المدونات الشخصية أي نفس كود CSS ستضعه كما ذكر سابقا.
ثم تبحث عن <data:post.body/> (إن وجدت ثنتين فالثانية هي المقصودة)  و مباشرة بعدها ضع الكود الآتي:
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<!-- تعريف الكاتب الأول -->
<b:if cond='data:post.author == &quot;أحمد&quot;'>
<div class='postauthor'>
<img alt='' height='80' src='رابط الصورة الشخصية' width='80'/>
<h3>بقلم <a href='Blog Link'> أحمد </a></h3>
<p> فقرة تضم نبذة عن الكاتب </p>
</div>
</b:if>
<!-- تعريف الكاتب الثاني -->
<b:if cond='data:post.author == &quot;جواد&quot;'>
<div class='postauthor'>
<img alt='' height='80' src='رابط الصورة الشخصية' width='80'/>
<h3>بقلم <a href='Blog Link'> جواد </a></h3>
<p> فقرة تضم نبذة عن الكاتب </p>
</div>
</b:if>

</b:if>
قبل الحفظ غير ما لون بالأحمر، و كرر كود تعريف الكاتب الثاني إن كنتم أكثر من كاتبين، و كذلك افعل عند الحاجة.
كذلك يمكن تعديل كود CSS لتعدل خلفية و حدود مستطيل تعريف الكاتب .