تفضل تم اصلاح التصميم للإداريين المتصلين
CODE
{if {$_CONF['info_row']['active_static']}}
<ul class="sidebar">
<li class="tcat">
<span>الأداري المتصل الأن</span>
</li>
</ul>
<div class="row_sidebar">
<?php
// ارقام مجموعات الإداريين 1 و 2 و 8
$usergroupsteam = '1,2,8';
$usergroup_query = $PowerBB->DB->sql_query('SELECT * FROM ' . $PowerBB->table['member'] . ' WHERE usergroup in (' .$usergroupsteam. ') ');
while ($usergroup_team = $PowerBB->DB->sql_fetch_array($usergroup_query))
{
$usergroupsid .= ','.$usergroup_team['id'];
}
$usergroupsid = "0".$usergroupsid;
$usergroupsid = str_replace("0,","",$usergroupsid);
$forum_team_query = $PowerBB->DB->sql_query('SELECT * FROM ' . $PowerBB->table['online'] . ' WHERE user_id in (' .$usergroupsid. ') ');
while ($forum_team = $PowerBB->DB->sql_fetch_array($forum_team_query))
{
// Get admin Online
if($forum_team)
{
$memberadmin_query = $PowerBB->DB->sql_query("SELECT * FROM " . $PowerBB->table['member'] . " WHERE id = " .$forum_team['user_id']. " ");
$memberadmin = $PowerBB->DB->sql_fetch_array($memberadmin_query);
$group_query = $PowerBB->DB->sql_query("SELECT * FROM " . $PowerBB->table['group'] . " WHERE id = " .$memberadmin['usergroup']. " ");
$group = $PowerBB->DB->sql_fetch_array($group_query);
?>
<div class="discussionCount">
{if {$_CONF['info_row']['allow_avatar']}}
<a href="index.php?page=profile&show=1&id=<?php echo $memberadmin['id'];?>">
<?php
if($memberadmin['avater_path']!= '')
{
if (@!strstr($memberadmin['avater_path'],'http')
or @!strstr($memberadmin['avater_path'],'www.'))
{
if (@strstr($memberadmin['avater_path'],'download/avatar/')
or @strstr($memberadmin['avater_path'],'look/images/avatar/'))
{
$memberadmin['avater_path'] = $PowerBB->_CONF['template']['ForumAdress'].$memberadmin['avater_path'];
$memberadmin['avater_path'] = str_replace($PowerBB->_CONF['template']['ForumAdress'].$PowerBB->_CONF['template']['ForumAdress'], $PowerBB->_CONF['template']['ForumAdress'], $memberadmin['avater_path']);
}
}
if ($PowerBB->functions->GetServerProtocol() == 'https://')
{
$https_ = "https://".$PowerBB->_SERVER['HTTP_HOST'];
$httpswww_ = "https://www.".$PowerBB->_SERVER['HTTP_HOST'];
$http_ = "http://".$PowerBB->_SERVER['HTTP_HOST'];
$http_www_ = "http://www.".$PowerBB->_SERVER['HTTP_HOST'];
$forum_team['avater_path'] = str_replace($http_, $https_, $memberadmin['avater_path']);
$forum_team['avater_path'] = @str_ireplace($http_, $https_, $memberadmin['avater_path']);
$forum_team['avater_path'] = str_replace($http_www_, $httpswww_, $memberadmin['avater_path']);
$forum_team['avater_path'] = @str_ireplace($http_www_, $httpswww_, $memberadmin['avater_path']);
}
?>
<span class="brd0" style="width: 32px; height: 32px; background-image: url(<?php echo $memberadmin['avater_path'] ?>);width: 32px; height: 32px; background-position: center; background-repeat: no-repeat; background-size: 32px; display: inline-block; vertical-align: middle;"></span>
{else}
<span class="brd0" style="background-image: url(<?php echo $PowerBB->_CONF['template']['ForumAdress'].$PowerBB->_CONF['template']['image_path'];?>/{$_CONF['info_row']['default_avatar']}); width: 32px; height: 32px; background-position: center; background-repeat: no-repeat; background-size: 32px; display: inline-block; vertical-align: middle;"></span>
{/if}
</a>
{/if}
<a href="index.php?page=profile&show=1&id=<?php echo $memberadmin['id'];?>">
<?php
// اسم العضو
echo $memberadmin['username_style_cache'];
?>
</a>
<?php
// لقب العضو
echo $group['title']; ?>
</div>
<?php
}
}
?>
</div>
<div style="clear: both;"></div>
<div style="clear: both;"></div>
{/if}