logo

أهلا وسهلا بك زائرنا الكريم في منتدى دعم PBBoard الرسمي، لكي تتمكن من المشاركة ومشاهدة جميع أقسام المنتدى وكافة الميزات ، يجب عليك إنشاء حساب جديد بالتسجيل بالضغط هنا أو تسجيل الدخول اضغط هنا إذا كنت عضواً .

طلب تطوير المراقب الخاص بالفئة حسنا سأعطيك التعديلات البرمجية الازمة لفصل مشرفي الأقسام ال

حسنا سأعطيك التعديلات البرمجية الازمة لفصل مشرفي الأقسام الرئيسية عن مشرفي المنتديات افتح ملفي : includes/functions.class.php modules/forum.modul





look/images/icons/i1.gif [مجابه] طلب تطوير المراقب الخاص بالفئة للنسخة 3.0.1 مثل ستار تايمز
  26-04-2015 04:23 مساءً  
معلومات الكاتب ▼
تاريخ الإنضمام : 18-07-2009
رقم العضوية : 1
المشاركات : 12526
الدولة : KSA
الجنس :
الدعوات : 52
قوة السمعة : 73776
موقعي : زيارة موقعي
حسنا سأعطيك التعديلات البرمجية الازمة لفصل مشرفي الأقسام الرئيسية عن مشرفي المنتديات

افتح ملفي :
includes/functions.class.php
modules/forum.module.php

ثم ابحث بداية السطر 326 في ملف functions.class.php وفي السطر 678 في ملف forum.module.php عن :
يفضل ان تبحث عن اول سطر لكي وليس عن الكود كاملاً
CODE

if ($PowerBB->_CONF['info_row']['rewriterule'] == '1')
{
$forum['moderators_list'] .= '<a href="u' . $moderator['member_id'] . '.html">' . $PowerBB->functions->GetUsernameStyle($moderator['username']) . '</a> , ';
}
else
{
$forum['moderators_list'] .= '<a href="index.php?page=profile&show=1&id=' . $moderator['member_id'] . '">' . $PowerBB->functions->GetUsernameStyle($moderator['username']) .'</a> , ';
}




وتستبدله بـ :
CODE

if ($forum['generals_member_id'] != $moderator['member_id'])
{
if ($PowerBB->_CONF['info_row']['rewriterule'] == '1')
{
$forum['moderators_list'] .= '<a href="u' . $moderator['member_id'] . '.html">' . $PowerBB->functions->GetUsernameStyle($moderator['username']) . '</a> , ';
}
else
{
$forum['moderators_list'] .= '<a href="index.php?page=profile&show=1&id=' . $moderator['member_id'] . '">' . $PowerBB->functions->GetUsernameStyle($moderator['username']) .'</a> , ';
}
}








ابحث عن :
CODE
// Get the moderators list as a _link_ and store it in $forum['moderators_list']

وضع أعلاها :

CODE

// Get the generals list as a _link_ and store it in $cat['moderators_list']
if ($PowerBB->_CONF['info_row']['no_moderators'])
{
$cat['is_generals']         =     0;
$cat['generals_list']        =    '';

if (!empty($cat['moderators']))
{
$generals = unserialize($cat['moderators']);

if (is_array($generals))
{
foreach($generals as $general)
{
if (!$forum['is_generals'])
{
$forum['is_generals'] = 1;
}
if ($general['username'] == $PowerBB->_CONF['member_row']['username'])
{
if ($forum['subjects_review_num']>0)
{
$forum['num_subjects_awaiting_approval'] =    $PowerBB->functions->with_comma($forum['subjects_review_num']);
}
if ($forum['replys_review_num']>0)
{
$forum['num_replys_awaiting_approval'] =    $PowerBB->functions->with_comma($forum['replys_review_num']);
}
}
$forum['generals_member_id'] .= $general['member_id'];
if ($PowerBB->_CONF['info_row']['rewriterule'] == '1')
{
$forum['generals_list'] .= '<a href="u' . $general['member_id'] . '.html">' . $PowerBB->functions->GetUsernameStyle($general['username']) . '</a> , ';
}
else
{
$forum['generals_list'] .= '<a href="index.php?page=profile&show=1&id=' . $general['member_id'] . '">' . $PowerBB->functions->GetUsernameStyle($general['username']) .'</a> , ';
}
}
}
}
}
//////////




لأظهار اسماء المراقبين في قالب sections_list استخدم المتغيرات التالية بهذا الشكل :
CODE
            المراقبين:
{if {$forum['generals_list']}}
{$forum['generals_list']}
{/if}




أنتهى ..


ينقل إلى قسم طلبات وحلول الملحقات البرمجية ..
 
 
  alshr7.txt   تحميل txt مرات التحميل :(10)
الحجم :(3.224) KB



تم تحرير المشاركة بواسطة :Soliman بتاريخ:27-04-2015 11:20 صباحاً

سبب التعديل : ارفق شرح التعديلات



الساعة الآن 02:54 PM