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

مشاهدة النسخة كاملة : ترقيع vBulletin 4.0.2 PL1


خ ــادم الإسلام
26-02-2010, 04:10 صباحاً
بسم الله الرحمن الرحيم

السلام عليكم اعضاء المرسى الكرام

قامت الشركة الام بإصدار ترقيع للنسخه 4.0.2 بعد نزولها رسمياً بيومين او ثلاثة ايام

لمن يريد متابعة اخبار النسخه على الرابط التالي
http://www.mrsavb.com/vb/showthread.php?t=9322

لمن يريد تحميل النسخه على الرابط التالي
http://www.mrsavb.com/vb/showthread.php?t=9426

بالنسبة للترقيع vBulletin 4.0.2 PL1

رابط الموضوع بالشركة الام

http://www.vbulletin.com/forum/showthread.php?342962-vBulletin-4.0.2-Patch-Level-1-Released&p=1933600#post1933600

الملفات التي سيتم التعديل عليها 5


includes/class_core.php
includes/functions_forumdisplay.php
includes/functions.php
includes/version_vbulletin.php
vb/legacy/thread.php
بسم الله نبدا التعديل

1/ افتح ملف includes/class_core.php

ابحث عن :

$relpath = $vbulletin->input->fetch_relpath();
إستبدله بالتالي

$relpath = htmlspecialchars($vbulletin->input->fetch_relpath());
2 / إفتح ملف includes/functions_forumdisplay.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_tri mmed_title(
strip_bbcode($thread['preview'], false, true),
$vbulletin->options['threadpreview']
)));
}
إستبدله بالتالي :


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']);
}
} 3 / إفتح ملف includes/functions.php

إبحث عن :

<a href="" . ($vbulletin->scriptpath) . (strpos($vbulletin->scriptpath, '?') === false ? '?' : '&amp;') . "explain=1\" target=\"_blank\" title=\"Explain Queries\">(?)</a>

إستبدله بالتالي

<a href="" . (htmlspecialchars($vbulletin->scriptpath)) . (strpos($vbulletin->scriptpath, '?') === false ? '?' : '&amp;') . "explain=1\" target=\"_blank\" title=\"Explain Queries\">(?)</a>
4 / إفتح ملف vb/legacy/thread.php

إبحث عن :

$select[] = "post.pagetext AS preview";
$joins['threadpreview'] = "LEFT JOIN " . TABLE_PREFIX . "post AS post ON(post.postid = thread.firstpostid)";إستبدله بالتالي :

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";
} 5 / إفتح ملف includes/version_vbulletin.php

إستبدل كل ما بداخله بالتالي

<?php

define('FILE_VERSION_VBULLETIN', '4.0.2 Patch Level 1');

?>

لا تنسونا من صالح الدعاء

محبتي وتقديري , ابو حنين

والسلام عليكم