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

مشاهدة النسخة كاملة : الطريقه الصحيحه لعمل وصف الموضوع اول سطرين من الموضوع بدون استخدام vbseo


هيلبرنت
11-25-2015, 11:53 PM
كثرة الطلبات اليوم حبيت اني اقدم طريقة الـ VBSEO في جعل وصف الموضوع من محتواه + اضافة الكلمات الاولى من الموضوع بدون الهاك المذكور كل هذا لتقوية الموضوع فى محركات البحث

شاهد العمل قبل الشروع فيه
قبل التعديل يكون الوصف

https://i.imgur.com/g7ckEKC.jpg

وهذي صوره من العم كوكل

https://i.imgur.com/qx5azMu.jpg

بعد التعديل

https://i.imgur.com/mb1mC0g.jpg

طريقة التركيب :

نذهب الى vb >> includes

نرفع ملف functions.php المرفق ونسمح بالاستبدال

في قالب showthread

نبحث عن $navbar

ونضيف اسفله
<!-- Tags -->
<div id="tags">

<h1 align="center">
<a style="text-decoration: none" title="$thread[title]" href="showthread.php?$session[sessionurl]t=$threadid">$thread[title]</a></h1>
<h2 align="center">
<a style="text-decoration: none" title="$foruminfo[title_clean]" href="forumdisplay.php?$session[sessionurl]f=$forumid">$foruminfo[title_clean]</a></h2>
<h2 align="center">
<a style="text-decoration: none" title="$thread[title]">$threadinfo[prefix_plain_html] $threadinfo[preview]</a></h2>
</div>
<!-- // Tags -->



في قالب headinclude

نبحث عن



<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[prefix_plain_html] $threadinfo[title] $foruminfo[title_clean]" />


نستبدله بــ




<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[prefix_plain_html] $threadinfo[title] $threadinfo[preview] $foruminfo[title_clean]" />
تم بحمد الله

ahmed200
11-26-2015, 11:28 PM
جميل جدا اخى

عبدالله الوكيل
09-25-2016, 10:49 AM
جميل لاكن فين المرفق

هيلبرنت
09-25-2016, 10:29 PM
جميل لاكن فين المرفق
معك حق تمت الاضافة

~ GOOGLE ~
10-21-2016, 03:12 PM
هل هذا شرح مطبق على هلبرنت

mohamed73
10-25-2016, 03:45 AM
بارك الله فيك اخي
هل هذا شرح مطبق على هلبرنت

هيلبرنت
10-08-2018, 10:58 AM
تم اعادة رفع الصور

هيلبرنت
10-10-2018, 03:31 PM
شباب ملف functions المرفق تم تحديثه لحذف جميع انواع الروابط ( بما فيها الصور واليوتيوب والخ )
=============
بالنسبه للتعديل يدويا على ملف functions نبحث عن
SELECT IF(visible = 2, 1, 0) AS isdeleted,
نستبدله بــ
SELECT IF(thread.visible = 2, 1, 0) AS isdeleted,
ثم نبحث عن
thread.*
واضف اعلاه
" . iif($vbulletin->options['threadpreview'] > 0 AND THIS_SCRIPT == 'showthread', 'post.pagetext AS preview, ') . "
ثم ابحث عن
$tachyjoin
اضف اعلاه
" . iif($vbulletin->options['threadpreview'] > 0 AND THIS_SCRIPT == 'showthread', "LEFT JOIN " . TABLE_PREFIX . "post AS post ON(post.postid = thread.firstpostid)") . "
ثم ابحث عن
WHERE thread.threadid = $threadid
");
اضف بعده
if($vbulletin->options['threadpreview'] > 0 AND THIS_SCRIPT == 'showthread')
{
$threadcache["$threadid"]['preview'] = strip_quotes($threadcache["$threadid"]['preview']);
$threadcache["$threadid"]['preview'] = preg_replace ('/\n(\s*)/', " ", $threadcache["$threadid"]['preview']);
$threadcache["$threadid"]['preview'] = preg_replace ('/\r(\s*)/', " ", $threadcache["$threadid"]['preview']);
$threadcache["$threadid"]['preview'] = str_replace(" ", " ", $threadcache["$threadid"]['preview']);
$threadcache["$threadid"]['preview'] = preg_replace('/http:\/\/(.*)/', '', $threadcache["$threadid"]['preview']);
$threadcache["$threadid"]['preview'] = htmlspecialchars_uni(fetch_censored_text(fetch_tri mmed_title(strip_bbcode($threadcache["$threadid"]['preview'], false, true), $vbulletin->options['threadpreview'])));
}
انتهى