إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...

انضم الينا
استراحات زايد الصفحة الرئيسية


 
 
LinkBack أدوات الموضوع انواع عرض الموضوع
  #1  
قديم 03-24-2010, 10:50 PM
عضو ماسي
بيانات محروم.كوم
 رقم العضوية : 503
 تاريخ التسجيل : Dec 2007
الجنس : female
علم الدوله :
 المشاركات : 2,100,670
عدد الـنقاط :3341
 تقييم المستوى : 2140

Hi
We just up upgraded from 3.8.4 to 3.8.5.

We saw the following error:
Contact Us form had a problem when the Subject radio button was chosen as "Other" even if you do type something in the associated text field. The error message stating that the Subject and Message were not entered even though something was written in the Other text field and a message was written in the Message text area.

Looking at forum/sendmessage.php line 229

// check we have a message and a subject

if ($message == '' OR $subject == ''
OR (
$vbulletin->options['contactusoptions']
AND $subject == 'other'
AND ($vbulletin->GPC['other_subject'] == '' OR !$vbulletin->options['contactusother'])
)
)
{
$errors[] = fetch_error('nosubject');
}

It seems as though $vbulletin->options['contactusother'] is not defined which would make that OR portion always true when the subject is other. We changed that clause to:

// check we have a message and a subject
if ($message == '' OR $subject == ''
OR (
$vbulletin->options['contactusoptions']
AND $subject == 'other'
AND ($vbulletin->GPC['other_subject'] == '')
)
)
{
$errors[] = fetch_error('nosubject');
}

The problem is now gone. Was this an error on our part somehow in the upgrade or is this a bug?

Thanks for your time looking !
Sincerely,
adam7
__DEFINE_LIKE_SHARE__
رد مع اقتباس
 

مواقع النشر (المفضلة)


تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة



الساعة الآن 04:02 AM


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir

RSS RSS 2.0 XML MAP HTML