السلام عليكم
Disallow HTML code in Thread Titles v1.01
تعطيل ميزة كود الاتش تي ام ال في عنوان المواضيع ،
By Jason Williams/Andrew Calderbank
03/09/2006
في ملف ابحث :
postings.php :
( في السطر تقريبا 1330)
إبحث عن
كود PHP:
// check if there is a forum password and if so, ensure the user has it set
verify_forum_password($foruminfo['forumid'], $foruminfo['password']);
if ($vbulletin->GPC['title'] == '')
{
eval(standard_error(fetch_error('notitle')));
}
أضف تحتها:
( في السطر1337 تقريبا )
كود PHP:
elseif (preg_match('/<|>/',$vbulletin->GPC['title']))
eval(standard_error(fetch_error('nohtml')));
ثانيا --------------------
في ملف
includes/functions_newpost.php:
ابحث عن
( في السطر تقريبا 376 )
إبحث عن
كود PHP:
$errors[] = fetch_error('register_imagecheck');
}
}
أضف تحتها:
( في السطر تقريبا 380 )
أضف التالي
كود PHP:
if (preg_match('/<|>/',$post['title']))
$errors[] = fetch_error('nohtml');
ثالثا -------------------------------
من لوحة التحكم اضف عبارة جديدة
In the AdminCP -> Language & Phrases -> Phrase Manager -> Add New Phrase
Phrase Type : Front-End Error Messages
Product : VBulletin
Varname : nohtml
Text English :Sorry, you are not allowed to post HTML in Thread titles, please go back and change it
Text Arabic :عذراً غير مسموح لك بإستخدام هذه اللغة
هذا كل شيء ،