المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : اجعل منتداك متوافقا مع محركات البحث



romaissa
11-01-2013, بتوقيت غرينيتش 05:15 PM
هذا الشرح طريقة خاص بمنتديات الفي بي vbulletin.





للمبتدئين، وصف الصفحة لا يتغير من صفحة إلى أخرى. لذا وصف جميع المواضيع و الردود هي نفسها. و هذا لا يساعد محركات البحث لمعرفة محتويات الصفحة. لذا يجب أن يكونلدينا عنوان و ووصف و كلمات مفتاحية keywords لكل صفحة في المنتدى forum.


للقيام بذلك سنقوم ببعض التغييرات :


افتح ملف headinclude ثم احذف التالي :
رمز Code:
<if condition=&quot;$show['threadinfo']&quot;> <meta name=&quot;keywords&quot; content=&quot;$threadinfo[title], $vboptions[keywords]&quot; /> <meta name=&quot;description&quot; content=&quot;<if condition=&quot;$pagenumber>1&quot;><phrase 1=&quot;$pagenumber&quot;>$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title_clean]&quot; /> <else /> <if condition=&quot;$show['foruminfo']&quot;> <meta name=&quot;keywords&quot; content=&quot;$foruminfo[title_clean], $vboptions[keywords]&quot; /> <meta name=&quot;description&quot; content=&quot;<if condition=&quot;$pagenumber>1&quot;><phrase 1=&quot;$pagenumber&quot;>$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]&quot; /> <else /> <meta name=&quot;keywords&quot; content=&quot;$vboptions[keywords]&quot; /> <meta name=&quot;description&quot; content=&quot;$vboptions[description]&quot; /> </if> </if>

هذا سيقوم بحذف الوقف و الkeywords من الheadinclude.


الآن، سنقوم بإرجاعهم بطريقة أفضل للحصول على أفضل أرشفة indexation.


افتح ملف forumhome :
إبحث عن :
رمز Code:
$headinclude <title><phrase 1=&quot;$vboptions[bbtitle]&quot;>$vbphrase[x_powered_by_vbulletin]</phrase></title>

غيرها إلى :

رمز Code:
<title><phrase 1=&quot;$vboptions[bbtitle]&quot;>$vbphrase[x_powered_by_vbulletin]</phrase></title> <meta name=&quot;keywords&quot; content=&quot;$vboptions[keywords]&quot; /> <meta name=&quot;description&quot; content=&quot;$vboptions[description]&quot; /> $headinclude

في forumdisplay أبحث عن :

رمز Code:
$headinclude <title>$foruminfo[title_clean]<if condition=&quot;$pagenumber>1&quot;> - <phrase 1=&quot;$pagenumber&quot;>$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>

و غيرها إلى التالي :

رمز Code:
<title>$foruminfo[title_clean]<if condition=&quot;$pagenumber>1&quot;> - <phrase 1=&quot;$pagenumber&quot;>$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title> <meta name=&quot;keywords&quot; content=&quot;$foruminfo[title] $vboptions[keywords]&quot; /> <meta name=&quot;description&quot; content=&quot;$foruminfo[description] $foruminfo[title]&quot; /> $headinclude

بهذه الطريقة نكون قد وضعنا الkeywords الموجودة في خيارات المنتدى forum، و أضفنا اسم المنتدى forum في الkeywords ثم أصبح لدينا وصف خاص بكل قسم.


الآن نفتح ملف Showthread


إبحث عن :

رمز Code:
$headinclude <title>$thread[title]<if condition=&quot;$pagenumber>1&quot;> - <phrase 1=&quot;$pagenumber&quot;>$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>

و نغيرها إلى التالي :


رمز Code:
<title>$thread[title]<if condition=&quot;$pagenumber>1&quot;> - <phrase 1=&quot;$pagenumber&quot;>$vbphrase[page_x]</phrase></if> - $foruminfo[title]</title> <meta name=&quot;description&quot; content=&quot;$thread[title] .:: منتديات شبكة رعدى ::. - $foruminfo[title]&quot; /> <meta name=&quot;keywords&quot; content=&quot;$thread[title] $vboptions[keywords]&quot; /> $headinclude




قم بتغيير منتدى ماكسي سيو بأي نص يتماشى مع موقعك مثلا شعار أو غير ذلك ..


افتح Showthread_showpost


ابحث عن :

رمز Code:
$headinclude <title>$vboptions[bbtitle] - $vbphrase[view_single_post] - $threadinfo[title]</title>

غيرها إلى :


رمز Code:
<title>$vboptions[bbtitle] - $vbphrase[view_single_post] - $threadinfo[title]</title> <meta name=&quot;keywords&quot; content=&quot;$thread[title] $vboptions[keywords]&quot; /> <meta name=&quot;description&quot; content=&quot;$thread[title] $foruminfo[title] $foruminfo[description] &quot; /> $headinclude



الآن يمكنك مشاهدة مصدر كل صفحة source لمشاهدة التغييرات التي قمنا بها .. حظا طيبا للجميع ..


الموضوع الاصلى هنا


http://www.r3dy.com/vb/showthread.php?p=1359#post1359






https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©

استعمل مربع البحث في الاسفل لمزيد من المواضيع


سريع للبحث عن مواضيع في المنتدى