![]() |
هاك اظهار لون كاتب الموضوع كما في مجموعته, يظهر اللون في المشاركات نفسها
السلام عليكم
هاك Member Color's in Topic's for IPB2.1 برمجة Waba تعريب etqaan.com وظيفة الهاك اظهار لون اسم العضو في المشاركة كما في لون المجموعة التي ينتمي اليها للإصدار 2.0.1 فما فوق طريقة التركيب التركيب سهل جدا ولا يأخذ أكثر من 5 دقائق افتح ملف sources/action_public/topics.php ابحث عــن كود if ( $poster['id'] ) { $poster['members_display_name'] = "<a href='{$this->base_url}showuser={$poster['id']}'>{$poster['members_display_name']}</a>"; } استبدله بــ كود if ($poster['id']) { if ($this->ipsclass->vars['member_colors']) { if($this->ipsclass->vars['member_colors_style'] == 0){ $Mstyle = "text-decoration: none;"; $Mprefix = ""; $Msuffix = ""; } elseif($this->ipsclass->vars['member_colors_style'] == 1){ $Mstyle = "text-decoration: none;"; $Mprefix = "<b>"; $Msuffix = "</b>"; } elseif($this->ipsclass->vars['member_colors_style'] == 2){ $Mstyle = "text-decoration: none;"; $Mprefix = "<i>"; $Msuffix = "</i>"; } elseif($this->ipsclass->vars['member_colors_style'] == 3){ $Mstyle = "text-decoration: underline;"; $Mprefix = ""; $Msuffix = ""; } elseif($this->ipsclass->vars['member_colors_style'] == 4){ $Mstyle = "text-decoration: overline;"; $Mprefix = ""; $Msuffix = ""; } elseif($this->ipsclass->vars['member_colors_style'] == 5){ $Mstyle = "text-decoration: line-through;"; $Mprefix = ""; $Msuffix = ""; } elseif($this->ipsclass->vars['member_colors_style'] == 6){ $Mstyle = ""; $Mprefix = ""; $Msuffix = ""; } $poster['members_display_name'] = "<a href='{$this->base_url}showuser={$poster['id']}' style=\"".$Mstyle."\">".$Mprefix.$this->ipsclass->cache['group_cache'][$poster['mgroup']]['prefix'].$poster['members_display_name'].$this->ipsclass->cache['group_cache'][$poster['mgroup']]['suffix'].$Msuffix."</a>"; } else { $poster['members_display_name'] = "<a href='{$this->base_url}showuser={$poster['id']}'>".$Mprefix."{$poster['members_display_name']}".$Msuffix."</a>"; } } الآن ادخل على phpMyAdmin ثم حدد قاعدة البيانات الخاصة بالمنتدى ثم من أعلى الصفحة اختر SQL ثم أضف الأمر التالي كود INSERT INTO `ibf_conf_settings` VALUES ('', 'Member Color in topic', 'If this setting is set to yes the name''s of poster''s will have the same color as the member group he is in.\r\nit will show colored in topic''s', '25', 'yes_no', 'member_colors', '1', '', '', '', 0, 34, 'Member name's in topic's', 0, '', 1); INSERT INTO `ibf_conf_settings` VALUES ('', 'Member name style', 'With this setting you can make member name''s in topic view bold/italic/underlined/normal', '25', 'dropdown', 'member_colors_style', '', '6', '0=Normal\r\n1=Bold\r\n2=Italic\r\n3=Underlined\r\ n4=Overlined\r\n5=Line through member name\r\n6=Style Default', '', 0, 35, '', 1, '', 1 لو كانت بادئة الجداول عندك ليس الإفتراضية (ibf) يجب عليك تغييرها في اسم الجدول ibf_conf_settings انتهى التركيب يمكنك التحكم بتفعيل هذه الخاصية أم لا من خلال Admin CP Tools & Settings View all general settings Topics, Posts and Polls ثم Member Color in topic او هذا الكود حسب نسخة السرفر INSERT INTO `ibf_conf_settings` VALUES ('', 'Member Color in topic', 'If this setting is set to yes the name''s of poster''s will have the same color as the member group he is in.\r\nit will show colored in topic''s', '25', 'yes_no', 'member_colors', '1', '', '', '', 0, 34, 'Member name in topic', 0, '', 1); INSERT INTO `ibf_conf_settings` VALUES ('', 'Member name style', 'With this setting you can make member name''s in topic view bold/italic/underlined/normal', '25', 'dropdown', 'member_colors_style', '', '6', '0=Normal\r\n1=Bold\r\n2=Italic\r\n3=Underlined\r\ n4=Overlined\r\n5=Line through member name\r\n6=Style Default', '', 0, 35, '', 1, '', 1 |
جميع الأوقات بتوقيت مكة المكرمة. الساعة الآن » 12:48 AM. |
Powered by vBulletin
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © ArabWebTalk.Com 2004-2012