حسنا سأعطيك التعديلات البرمجية الازمة لفصل مشرفي الأقسام الرئيسية عن مشرفي المنتديات
افتح ملفي :
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}
أنتهى ..
ينقل إلى قسم طلبات وحلول الملحقات البرمجية ..