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

مشاهدة النسخة كاملة : حل مشكلة الستايل فار stylevar في النسخة 4.0.4



Dr.osamA
07-12-2010, 05:51 AM
هنا تجدون حل لمشكلة الستايل فار stylevar في النسخة 4.0.4

حيث انك عند ما تقوم بتغيير مسار اي صورة او مسارات الصور للستايل تجده يعطيك القيمة Array بعد الحفظ

الحل:

في ملف admincp/stylevar.php الموجود في مجلد الادمن طبعا كما هو واضح من المسار

نقوم بالبحث عن الكود التالي:


$vbulletin->input->clean_array_gpc('p', array(
'stylevar' => TYPE_ARRAY_ARRAY,
'original' => TYPE_ARRAY_ARRAY,
));

و نستبدله بالكود التالي:


$vbulletin->input->clean_array_gpc('p', array(
'stylevar' => TYPE_ARRAY_STRING,
'original' => TYPE_ARRAY_STRING,
));

و احفظ العمل و اذهب و حاول التغيير في المسارات بالستايل و جرب

الحل من الشركة الام طبعا و ليس من اختراعي و هو على الربط التالي

Forum Anyone else have titleimage trouble with 4.04? Just goes to Array (http://www.vbulletin.com/forum/showthread.php?354815-Anyone-else-have-titleimage-trouble-with-4.04-Just-goes-to-Array)

و اليكم النص كما هو

السؤال:

Anyone else have titleimage trouble with 4.04? Just goes to Array
I just set up a testforum with 4.04.

The first thing I tried to do was change the titleimage. No matter what I enter, after I hit save it just goes back to Array.

Anyone else have this problem or am I missing a setting somewhere?

Thanks,
JM


الحل :

Bug report: [#VBIV-7479] ImagePath Style variables are shown as "Array" after saving - vBulletin JIRA (http://tracker.vbulletin.com/browse/VBIV-7479)

Fix: In admincp/stylevar.php, change Lines 488-491 from:


$vbulletin->input->clean_array_gpc('p', array(
'stylevar' => TYPE_ARRAY_ARRAY,
'original' => TYPE_ARRAY_ARRAY,
));
to:


$vbulletin->input->clean_array_gpc('p', array(
'stylevar' => TYPE_ARRAY_STRING,
'original' => TYPE_ARRAY_STRING,
));


حياكم الله