خطوات ترقيع النسخة 4.0.2 PL1
http://www.dzbatna.com/images/icons/icon30.gif ط®ط·ظˆط§طھ طھط±ظ‚ظٹط¹ ط§ظ„ظ†ط³ط®ط© 4.0.2 PL1
السلام عليكم ورحمة الله وبركاته
خطوات الترقيع للنسخه : 4.0.2 PL1
الترقيع فقط بأربع ملفات ,,
##################################################
نبدأ بسم الله :
الملف vb/thread.php
ابحث داخله عن :
رمز PHP:
$select[] = "post.pagetext AS preview";
$joins['threadpreview'] = "LEFT JOIN " . TABLE_PREFIX . "post AS post ON(post.postid = thread.firstpostid)";
استبدله بـ :
رمز PHP:
if($vbulletin->options['threadpreview'] > 0)
{
$select[] = "post.pagetext AS preview";
$joins['threadpreview'] = "LEFT JOIN " . TABLE_PREFIX . "post AS post ON(post.postid = thread.firstpostid)";
}
else
{
//being a chicken here and making sure we don't remove the preview item
//from the array in case it matters
$select[] = "'' as preview";
}
##################################################
الملف includes/class_core.php
ابحث داخله عن :
رمز PHP:
$relpath = $vbulletin->input->fetch_relpath();
استبدله بـ :
رمز PHP:
$relpath = htmlspecialchars($vbulletin->input->fetch_relpath());
##################################################
الملف includes/functions_forumdisplay.php
ابحث داخله عن :
رمز PHP:
if ($ignore["$thread[postuserid]"])
{
$thread['preview'] = '';
}
else if (isset($thread['preview']) AND $vbulletin->options['threadpreview'] > 0)
{
$thread['preview'] = strip_quotes($thread['preview']);
$thread['preview'] = htmlspecialchars_uni(fetch_censored_text(fetch_trimmed_title(
strip_bbcode($thread['preview'], false, true),
$vbulletin->options['threadpreview']
)));
}
استبدله بـ :
رمز PHP:
if ($ignore["$thread[postuserid]"])
{
$thread['preview'] = '';
}
else if (isset($thread['preview']))
{
if($vbulletin->options['threadpreview'] > 0)
{
$thread['preview'] = strip_quotes($thread['preview']);
$thread['preview'] = htmlspecialchars_uni(fetch_censored_text(
fetch_trimmed_title(strip_bbcode($thread['preview'], false, true),
$vbulletin->options['threadpreview'])
));
}
//if the preview text is disabled, then make sure that we don't leave this function
//with it set.
else
{
unset($thread['preview']);
}
}
##################################################
الملف includes/functions.php
ابحث داخله عن :
رمز Code:
scriptpath) . (strpos($vbulletin->scriptpath, '?') === false ? '?' : '&') . "explain=1\" target=\"_blank\" title=\"Explain Queries\">(?)
استبدله بـ :
رمز Code:
scriptpath)) . (strpos($vbulletin->scriptpath, '?') === false ? '?' : '&') . "explain=1\" target=\"_blank\" title=\"Explain Queries\">(?)
##################################################
الملف includes/version_vbulletin.php
لغير المرخصين يبقى كما هو
اما المرخصين يحذف كل مابداخله ويضع
رمز PHP:
define('FILE_VERSION_VBULLETIN', '4.0.2 Patch Level 1');
?>
##################################################
هذا والله اعلم.
تحياتي ..
https://fbcdn-sphotos-d-a.akamaihd.n...93518507_n.png
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى©