![]() |
[ مشكله ] : مشكله في هاك الصلاحيات السلام عليكم اخواني عندي هاك Cyb - Advanced Permissions Based on Post Count توجد مشكلة في خاصيه الرسائل الخاصة بلوقن Cyb - APBOUPC - P5 (PI) الكود رمز PHP: if ($vbulletin->options['apboupc_global_enable'] AND ($vbulletin->options['apboupc_pm_amount']>0)) { if (!is_member_of($vbulletin->userinfo, split(',', $vbulletin->options['apboupc_pm_excludedgroups'])) AND ($vbulletin->options['apboupc_pm_amount'] !='0') AND ($vbulletin->userinfo[posts] options['apboupc_pm_amount'])) { $db->hide_errors(); $apboupc_get_allowedrecs = $vbulletin->db->query_read("SELECT userid, username, usergroupid FROM `" . TABLE_PREFIX . "user` AS user WHERE `usergroupid` IN (".$vbulletin->options['apboupc_pm_allowed'].") "); while ($apboupc_allowedrecs = $vbulletin->db->fetch_array($apboupc_get_allowedrecs)) { $apboupc_allowedrec[] = $apboupc_allowedrecs['username']; $allowed_recipients .= ', '.fetch_musername($apboupc_allowedrecs).''; } $db->show_errors(); $allowed_recipients = substr($allowed_recipients, 1); $apboupc_recipients = &$pmdm->info['recipients']; foreach ($apboupc_recipients AS $recipient) { if (trim($recipient) == '') { continue; } if (!in_array(trim($recipient), $apboupc_allowedrec)) { standard_error(fetch_error('error_postcount_too_low_pm', $vbulletin->options['apboupc_pm_amount'], $vbulletin->userinfo[posts], $allowed_recipients)); } } } } المشكلة في هذا الكود رمز PHP: $apboupc_recipients = &$pmdm->info['recipients']; يعطيني خطا رمز PHP: PHP User Warning: trim() expects parameter 1 to be string, array given in ..../private.php(1172) : eval()'d code on line 20 الكود الاصلي رمز PHP: $apboupc_recipients = explode(';', $pm['recipients']); ولكنه يجل خاصيه التحكم بالرسائل الخاصة لا تعمل بالشكل المطلوب طبعا الكود رمز PHP: $apboupc_recipients = &$pmdm->info['recipients']; اخذته من نفس الهاك ولكنه للجيل الرابع واستخدمته للجيل الثالث ويعمل بشكل جيد ولكن تظهر رساله الخطا التي بالاعلى هل من مساعدة |
| الساعة الآن 07:53 AM |
Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir