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

مشاهدة النسخة كاملة : الدرس مفصل الثاني : تهيئة المنتدى forum لمحركات البحث (1)



salima
11-01-2013, بتوقيت غرينيتش 10:25 PM
السلام عليكم ورحمة الله وبركاته

تحية طيبة وبعد..

نرحب فيكم جميعا في معهد (http://www.lifevb.com/vb) لايف (http://www.lifevb.com/vb) في بي (http://www.lifevb.com/) التطويري (http://www.lifevb.com/vb/showthread.php?t=87) ..

طبعا الدرس مفصل الاول (http://www.lifevb.com/vb/showthread.php?t=87)عرفنا محركات البحث .. وكيفية عملها .. ومعنى الـ SEO

الدرس مفصل الثاني: وهو تهيئة المنتدى forum لمحركات البحث (1) (http://www.lifevb.com/vb/showthread.php?t=94)

طيب اللحين نبدا الدرس مفصل .. الي بنسويه .. بنعدل على قوال الاستايل style ..

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

يعني لارشفة indexation افضل .. بنحذف بعض الاكواد ونضيف غيرها http://www.lifevb.com/vb/images/smilies/smile.gif

او شيء .. حذف اسم المنتدى forum من جانب اسم الموضوع

ندخل على لوحة التحكم > الاستايل styleات والقوالب > البحث في القوالب

نبحث عن هذا القالب template SHOWTHREAD

نفتح القالب template ونبحث بداخلة عن رمز PHP:

<code style="white-space:nowrap"> <code> <title>$thread&#91;prefix_plain_html&#93; $thread&#91;title&#93;<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase&#91;page_x&#93;</phrase></if> - $vboptions&#91;bbtitle&#93;</title>
</code> </code>

استبدله بـ

رمز PHP:

<code style="white-space:nowrap"> <code> <title>$thread&#91;prefix_plain_html&#93; $thread&#91;title&#93;</title>
</code> </code>

ونحفظ القالب template ...

سنكرر العملية على عدة قوالب

نبحث في القوالب عن FORUMDISPLAY

افتح القالب template وابحث عن
رمز PHP:

<code style="white-space:nowrap"> <code> <title>$foruminfo&#91;title_clean&#93;<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase&#91;page_x&#93;</phrase></if> - $vboptions&#91;bbtitle&#93;</title>
</code> </code>

استبدله بـ
رمز PHP:

<code style="white-space:nowrap"> <code> <title>$foruminfo&#91;title_clean&#93;</title>
</code> </code>

ونحفظ القالب template..

نبحث في القوالب عن MEMBERINFO

افتح القالب template وابحث عن
رمز PHP:

<code style="white-space:nowrap"> <code> <title>$vboptions&#91;bbtitle&#93; - $vbphrase&#91;view_profile&#93;: $userinfo&#91;username&#93;</title>
</code> </code>

استبدله بـ
رمز PHP:

<code style="white-space:nowrap"> <code> <title>$vbphrase&#91;view_profile&#93;: $userinfo&#91;username&#93;</title>
</code> </code>

احفظ القالب template




الان نضيف اسم الموضوع في قوالب مهمة لتقويته في قوقل google

نبحث بالقوالب عنshowthread_similarthreads

افتح القالب template وابحث عن
رمز PHP:

<code style="white-space:nowrap"> <code> $vbphrase&#91;similar_threads&#93;
</code> </code>

استبدله بـ
رمز PHP:

<code style="white-space:nowrap"> <code> $vbphrase&#91;similar_threads&#93; للموضوع: $thread&#91;title&#93;
</code> </code>

احفظ القالب template

الحين كذا نكون جهزنا قوالب الاستايل style لمحركات البحث لكن يبقى عندنا اشياء مهمة جدا

تابع معي


اضافة وسوم h1 و h2 للاقسام والمواضيع

للاقسام :

نبحث بالقوالب عن FORUMDISPLAY

افتح القالب template وابحث عن
$navbar

نضيف اسفلها مباشرة

رمز PHP:

<code style="white-space:nowrap"> <code> <!--- Tags ---> <div id="tags"> <h1 align="center"> <a style="text-decoration: none" title="$thread&#91;title&#93;" href="showthread.php?$session&#91;sessionurl&#93;t=$threadid">$thread&#91;title&#93;</a></h1> <h2 align="center"> <a style="text-decoration: none" title="$foruminfo&#91;title_clean&#93;" href="forumdisplay.php?$session&#91;sessionurl&#93;f=$forumid">$foruminfo&#91;title_clean&#93;</a></h2> </div> <!--- // Tags --->
</code> </code>

واحفظ القالب template ..


للمواضيع

نبحث بالقوالب عن SHOWTHREAD

افتح القالب template وابحث عن
رمز PHP:

<code style="white-space:nowrap"> <code> $navbar
</code> </code>

ضيف اسفله مباشرة

رمز PHP:

<code style="white-space:nowrap"> <code> <!-- Tags --> <div id="tags"> <h1 align="center"> <a style="text-decoration: none" title="$thread&#91;title&#93;" href="showthread.php?$session&#91;sessionurl&#93;t=$threadid">$thread&#91;title&#93;</a></h1> <h2 align="center"> <a style="text-decoration: none" title="$foruminfo&#91;title_clean&#93;" href="forumdisplay.php?$session&#91;sessionurl&#93;f=$forumid">$foruminfo&#91;title_clean&#93;</a></h2> </div> <!-- // Tags -->
</code> </code>

احفظ القالب template ..




عارف انكم تعبتوا من التعديل بالقوالب باقي اخر قالب template نعدل عليه
طبعا على شان اخفف عليكم يابعدي

ارفقتلكم القالب template بالكامل ..

ابحث عن القالب template tag_search

امسحة بالكامل

وضع بداله هذا القالب template

رمز PHP:

<code style="white-space:nowrap"> <code> $stylevar&#91;htmldoctype&#93; <html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar&#91;textdirection&#93;" lang="$stylevar&#91;languagecode&#93;"> <head> $headinclude <title>$tag&#91;tagtext&#93; </title> <if condition="$show&#91;'inlinemod'&#93;"> <meta name="keywords" content="$tag&#91;tagtext&#93;"> <meta name="description" content="$tag&#91;tagtext&#93;"> <script type="text/javascript" src="clientscript/vbulletin_inlinemod.js?v=$vboptions&#91;simpleversion&#93;"></script></if> </head> <body> $header $navbar <if condition="$pagenav"> <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px"> <tr valign="bottom"> <td align="$stylevar&#91;right&#93;">$pagenav</td> </tr> </table> <p><h1 align="center">$tag&#91;tagtext&#93;</h1></p> </if> <form action="inlinemod.php" method="post" id="inlinemodform"> <input type="hidden" name="url" value="$url" /> <input type="hidden" name="s" value="$session&#91;sessionhash&#93;" /> <input type="hidden" name="securitytoken" value="$bbuserinfo&#91;securitytoken&#93;" /> <table class="tborder" cellpadding="$stylevar&#91;cellpadding&#93;" cellspacing="$stylevar&#91;cellspacing&#93;" border="0" width="100%" align="center" id="threadslist"> <tr> <td class="tcat" colspan="$columncount"><phrase 1="$tag&#91;tagtext&#93;">$vbphrase&#91;threads_tagged_with_x&#93;</phrase></td> </tr> <tr> <if condition="$show&#91;'threadicons'&#93;"> <td class="thead" colspan="2">&nbsp;</td> <else /> <td class="thead">&nbsp;</td> </if> <td class="thead" width="75%">$vbphrase&#91;thread&#93; / $vbphrase&#91;thread_starter&#93;</td> <td class="thead" width="150" align="center" nowrap="nowrap">$vbphrase&#91;last_post&#93;</td> <td class="thead" align="center" nowrap="nowrap">$vbphrase&#91;replies&#93;</td> <td class="thead" align="center" nowrap="nowrap">$vbphrase&#91;views&#93;</td> <td class="thead" width="25%">$vbphrase&#91;forum&#93;</td> <if condition="$show&#91;'inlinemod'&#93;"> <if condition="$show&#91;'popups'&#93;"> <td class="vbmenu_control" id="imod" align="center" title="$vbphrase&#91;moderation&#93;"> <script type="text/javascript"> vbmenu_register('imod'); </script> </td> <else /> <td class="thead" align="center"> <input type="checkbox" name="allbox" id="checkall_all" title="$vbphrase&#91;check_uncheck_all&#93;" onclick="inlineMod.check_all()" /> </td> </if> </if> </tr> $threadbits </table> <if condition="$show&#91;'ajax_js'&#93;"> <script type="text/javascript" src="clientscript/vbulletin_ajax_threadslist.js?v=$vboptions&#91;simplev ersion&#93;"></script> <script type="text/javascript"> <!-- في بي vB_AJAX_Threadlist_Init('threadslist'); var titlemaxchars = parseInt("$vboptions&#91;titlemaxchars&#93;"); //--> </script> </if> <if condition="$pagenav"> <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:3px"> <tr valign="top"> <if condition="$pagenav"><td align="$stylevar&#91;right&#93;">$pagenav</td></if> </tr> </table> </if> <if condition="$show&#91;'inlinemod'&#93;"> <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:3px"> <tr valign="top"> <td align="$stylevar&#91;right&#93;"> <div class="smallfont" style="text-align:$stylevar&#91;left&#93;; white-space:nowrap; float:$stylevar&#91;right&#93;"> <strong>$vbphrase&#91;moderation&#93;</strong><br /> <select name="do"> <if condition="$show&#91;'deletethread'&#93; OR $show&#91;'spamctrls'&#93; OR $show&#91;'openthread'&#93; OR $show&#91;'approvethread'&#93; OR $show&#91;'movethread'&#93; OR $template_hook&#91;'inlinemod_thread_bottom'&#93;"> <optgroup label="$vbphrase&#91;option&#93;"> <if condition="$show&#91;'deletethread'&#93;"> <option value="deletethread">$vbphrase&#91;delete_threads&#93;</option> <option value="undeletethread">$vbphrase&#91;undelete_threads&#93;</option> </if> <if condition="$show&#91;'spamctrls'&#93;"> <option value="spamthread">$vbphrase&#91;delete_threads_as_spam&#93;</option> </if> <if condition="$show&#91;'openthread'&#93;"> <option value="open">$vbphrase&#91;open_threads&#93;</option> <option value="close">$vbphrase&#91;close_threads&#93;</option> </if> <if condition="$show&#91;'approvethread'&#93;"> <option value="approvethread">$vbphrase&#91;approve_threads&#93;</option> <option value="unapprovethread">$vbphrase&#91;unapprove_threads&#93;</option> </if> <if condition="$show&#91;'movethread'&#93;"> <option value="stick">$vbphrase&#91;stick_threads&#93;</option> <option value="unstick">$vbphrase&#91;unstick_threads&#93;</option> <option value="movethread">$vbphrase&#91;move_threads&#93;</option> <option value="mergethread">$vbphrase&#91;merge_threads&#93;</option> </if> $template_hook&#91;inlinemod_thread_bottom&#93; </optgroup> </if> <optgroup label="____________________"> <option value="viewthread">$vbphrase&#91;view_selected_threads&#93;</option> <option value="clearthread">$vbphrase&#91;clear_thread_list&#93;</option> </optgroup> </select><input type="submit" class="button" id="inlinego" value="$vbphrase&#91;go&#93;" /> <script type="text/javascript"> <!-- inlineMod = new في بي vB_Inline_Mod('inlineMod', 'thread', 'inlinemodform', '$vbphrase&#91;go_x&#93;'); //--> </script> </div> </td> </tr> </table> </if> </form> <if condition="$show&#91;'inlinemod'&#93; AND $show&#91;'popups'&#93;"> <div class="vbmenu_popup" id="imod_menu" style="display:none" align="$stylevar&#91;left&#93;"> $threadadmin_imod_menu </div> </if> $footer </body> </html>
</code> </code>

الحمدلله

بعد تعب وجهد انتهينا من الدرس مفصل الثاني الجزء الاول باقي جزء ثاني http://www.lifevb.com/vb/images/smilies/biggrin.gif

طبعا هذا الدرس مفصل (http://www.lifevb.com/)مهم جدا للارشفة indexation المنتدى forum والمواضيع بمحركات البحث خاصة حبيب القلب قوقل google


ولا تنسوا موضوع الإستفسارات الخاص بالدرس مفصل

استفسارات الدرس مفصل الثاني (http://www.lifevb.com/vb/showthread.php?p=249#post249)

بإنتظار تفاعلكم http://www.lifevb.com/vb/images/smilies/smile.gif

والله الموفق

اخوكم : كــ ش ــكــوولــ (http://www.d-shr.con/vb)

من فضلكم ممنوع النقل إلا بعد ذكر المصدر (http://www.lifevb.com/vb/showthread.php?t=87)
معهد لايف فى بى (http://www.lifevb.com/)








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

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


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