عرض مشاركة واحدة
قديم 10-10-2018, 03:31 PM
المشاركة 8
هيلبرنت
.:: رفيق درب ::.
  • هيلبرنت غير متواجد حالياً
افتراضي رد: الطريقه الصحيحه لعمل وصف الموضوع اول سطرين من الموضوع بدون استخدام vbseo
شباب ملف 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_trimmed_title(strip_bbcode($threadcache["$threadid"]['preview'], false, true), $vbulletin->options['threadpreview'])));
}
انتهى