logo

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

طلب كود اداري متصل

السلام عليكم ورحمة الله وبركاته حبيت أسوي اضافة في القائمة الجانبية .: الأداري المتصل :. طبعا خلصت منها الحمدالله لكن تبقى فقط ظهور الاداري المتصل




موضوع مغلق

الصفحة 2 من 2 < 1 2 > الأخيرة


  • تمت الإجابة
subject icon تمت الإجابة طلب كود اداري متصل
17-07-2017 09:50 مساءً
معلومات الكاتب ▼
تاريخ الإنضمام : 23-08-2016
رقم العضوية : 6837
المشاركات : 507
الدولة : المملكة العربية السعودية
الجنس :
تاريخ الميلاد : 17-9-1999
الدعوات : 2
قوة السمعة : 1090
السلام عليكم ورحمة الله وبركاته

حبيت أسوي اضافة في القائمة الجانبية .: الأداري المتصل :.
طبعا خلصت منها الحمدالله لكن تبقى فقط ظهور الاداري المتصل فقط

AKIADq0uTZeekT7PL0aRug
تم تحرير الموضوع بواسطة :عبدالاله الهذلي بتاريخ:17-07-2017 09:55 مساءً

look/images/icons/i1.gif طلب كود اداري متصل
  18-07-2017 11:51 مساءً   [1]
معلومات الكاتب ▼
تاريخ الإنضمام : 18-07-2009
رقم العضوية : 1
المشاركات : 12526
الدولة : KSA
الجنس :
الدعوات : 52
قوة السمعة : 73776
موقعي : زيارة موقعي
وعليكم السلام
ضع الكود كاملاً لنضيف بداخله الكود البرمجي للإداريين المتصلين

look/images/icons/i1.gif طلب كود اداري متصل
  19-07-2017 09:41 مساءً   [2]
معلومات الكاتب ▼
تاريخ الإنضمام : 14-04-2017
رقم العضوية : 7218
المشاركات : 68
الدولة : مصر
الجنس :
تاريخ الميلاد : 2-2-2001
قوة السمعة : 0
عايز الكود انا

look/images/icons/i1.gif طلب كود اداري متصل
  20-07-2017 01:40 صباحاً   [3]
معلومات الكاتب ▼
تاريخ الإنضمام : 23-08-2016
رقم العضوية : 6837
المشاركات : 507
الدولة : المملكة العربية السعودية
الجنس :
تاريخ الميلاد : 17-9-1999
الدعوات : 2
قوة السمعة : 1090
المشاركة الأصلية كتبت بواسطة: Soliman وعليكم السلام
ضع الكود كاملاً لنضيف بداخله الكود البرمجي للإداريين المتصلين
تفضل @Soliman
CODE

{if {$_CONF['info_row']['active_static']}}
<ul class="sidebar">
<li class="tcat">
<span>الأداري المتصل الأن</span>
</li>
</ul>
<div class="row_sidebar">



</div>

{/if}



look/images/icons/i1.gif طلب كود اداري متصل
  20-07-2017 02:31 مساءً   [4]
معلومات الكاتب ▼
تاريخ الإنضمام : 18-07-2009
رقم العضوية : 1
المشاركات : 12526
الدولة : KSA
الجنس :
الدعوات : 52
قوة السمعة : 73776
موقعي : زيارة موقعي
يشمل المشرفين ولا فقط الإدارة !

look/images/icons/i1.gif طلب كود اداري متصل
  20-07-2017 03:05 مساءً   [5]
معلومات الكاتب ▼
تاريخ الإنضمام : 23-08-2016
رقم العضوية : 6837
المشاركات : 507
الدولة : المملكة العربية السعودية
الجنس :
تاريخ الميلاد : 17-9-1999
الدعوات : 2
قوة السمعة : 1090
الادارة أذا أمكن g

مثلا بـ الجانب الأيمن [صورة للعضوية ] ومثلا بـ النصف [اسم الأداري ]
وتحت اسمه [اسم المجموعة الخاصة به مثلا [مراقب عام ] او [مدير المنتدى ]


تم تحرير المشاركة بواسطة :عبدالاله الهذلي بتاريخ:20-07-2017 03:12 مساءً


look/images/icons/i1.gif طلب كود اداري متصل
  21-07-2017 05:16 صباحاً   [6]
معلومات الكاتب ▼
تاريخ الإنضمام : 18-07-2009
رقم العضوية : 1
المشاركات : 12526
الدولة : KSA
الجنس :
الدعوات : 52
قوة السمعة : 73776
موقعي : زيارة موقعي
المشاركة الأصلية كتبت بواسطة: عبدالاله الهذلي الادارة أذا أمكن g

مثلا بـ الجانب الأيمن [صورة للعضوية ] ومثلا بـ النصف [اسم الأداري ]
وتحت اسمه [اسم المجموعة الخاصة به مثلا [مراقب عام ] او [مدير المنتدى ]
تفضل الكود بعد اضافة الكود البرمجي للإداريين المتصلين عدلته بشكل سريع ولم اختبره
CODE
{if {$_CONF['info_row']['active_static']}}

<ul class="sidebar">
<li class="tcat">
<span>الأداري المتصل الأن</span>
</li>
</ul>
<div class="row_sidebar">
<?php
// Get all admin group id = 1
$forum_team_query = $PowerBB->DB->sql_query("SELECT * FROM " . $PowerBB->table['member'] . " WHERE usergroup='1' or usergroup='2' or usergroup='8' ");
while ($forum_team = $PowerBB->DB->sql_fetch_array($forum_team_query))
{
// Get admin Online
$OnlineArr             =     array();
$OnlineArr['where']     =     array('user_id',$forum_team['id']);
$OnlineList = $PowerBB->core->GetInfo($OnlineArr,'online');
    if($OnlineList)
    {      
?>
<ul class="whatis_new">
<li class="last_posts" style="padding-bottom: 10px;margin-bottom: 10px;">
<ul class="PBBList_reset">
{if {$_CONF['info_row']['allow_avatar']}}
<li class="Photo_lastPoster" style="display:inline-block; margin-top:-3px; padding:2px; width: 32px; height: 32px; -webkit-border-radius: 4px; -moz-border-radius: 4px; -khtml-border-radius: 4px; border-radius: 4px;">
<a href="index.php?page=profile&show=1&id=<?php echo $forum_team['id'];?>">
{if {$lastPostsList['avater_path']} != ''}
<?php
if (@!strstr($forum_team['avater_path'],'http')
    or @!strstr($forum_team['avater_path'],'www.'))
{
    if (@strstr($forum_team['avater_path'],'download/avatar/')
    or @strstr($forum_team['avater_path'],'look/images/avatar/'))
    {
    $forum_team['avater_path'] = $PowerBB->_CONF['template']['ForumAdress'].$forum_team['avater_path'];
    $forum_team['avater_path'] = str_replace($PowerBB->_CONF['template']['ForumAdress'].$PowerBB->_CONF['template']['ForumAdress'], $PowerBB->_CONF['template']['ForumAdress'], $forum_team['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_, $forum_team['avater_path']);
$forum_team['avater_path'] = @str_ireplace($http_, $https_, $forum_team['avater_path']);
$forum_team['avater_path'] = str_replace($http_www_, $httpswww_, $forum_team['avater_path']);
$forum_team['avater_path'] = @str_ireplace($http_www_, $httpswww_, $forum_team['avater_path']);
}
?>
<span class="brd0" style="width: 32px; height: 32px; background-image: url({$lastPostsList['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>
</li>
{/if}
<li class="last_subjectid" style="position:relative; vertical-align:middle; margin-top: -2px; display:inline-block;">
<a href="index.php?page=profile&show=1&id=<?php echo $forum_team['id'];?>">
<?php 
// اسم العضو
echo $forum_team['username_style_cache'];
?>
</a>
<div class="last_time_post">
<span class="last_time_ago"><?php 
// لقب العضو
echo $forum_team['user_title']; ?></span> 
</div>
</li>
</ul>
</li>
</ul>
</div>

<?php
}
else
{
echo "لا يوجد إداري متصل حاليا ..";
}

}
?>
{/if}
<div style="clear: both;"></div> 
<div style="clear: both;"></div>

look/images/icons/i1.gif طلب كود اداري متصل
  21-07-2017 03:52 مساءً   [7]
معلومات الكاتب ▼
تاريخ الإنضمام : 23-08-2016
رقم العضوية : 6837
المشاركات : 507
الدولة : المملكة العربية السعودية
الجنس :
تاريخ الميلاد : 17-9-1999
الدعوات : 2
قوة السمعة : 1090
المشاركة الأصلية كتبت بواسطة: Soliman
المشاركة الأصلية كتبت بواسطة: عبدالاله الهذلي الادارة أذا أمكن g

مثلا بـ الجانب الأيمن [صورة للعضوية ] ومثلا بـ النصف [اسم الأداري ]
وتحت اسمه [اسم المجموعة الخاصة به مثلا [مراقب عام ] او [مدير المنتدى ]
تفضل الكود بعد اضافة الكود البرمجي للإداريين المتصلين عدلته بشكل سريع ولم اختبره
CODE
{if {$_CONF['info_row']['active_static']}}

<ul class="sidebar">
<li class="tcat">
<span>الأداري المتصل الأن</span>
</li>
</ul>
<div class="row_sidebar">
<?php
// Get all admin group id = 1
$forum_team_query = $PowerBB->DB->sql_query("SELECT * FROM " . $PowerBB->table['member'] . " WHERE usergroup='1' or usergroup='2' or usergroup='8' ");
while ($forum_team = $PowerBB->DB->sql_fetch_array($forum_team_query))
{
// Get admin Online
$OnlineArr             =     array();
$OnlineArr['where']     =     array('user_id',$forum_team['id']);
$OnlineList = $PowerBB->core->GetInfo($OnlineArr,'online');
    if($OnlineList)
    {      
?>
<ul class="whatis_new">
<li class="last_posts" style="padding-bottom: 10px;margin-bottom: 10px;">
<ul class="PBBList_reset">
{if {$_CONF['info_row']['allow_avatar']}}
<li class="Photo_lastPoster" style="display:inline-block; margin-top:-3px; padding:2px; width: 32px; height: 32px; -webkit-border-radius: 4px; -moz-border-radius: 4px; -khtml-border-radius: 4px; border-radius: 4px;">
<a href="index.php?page=profile&show=1&id=<?php echo $forum_team['id'];?>">
{if {$lastPostsList['avater_path']} != ''}
<?php
if (@!strstr($forum_team['avater_path'],'http')
    or @!strstr($forum_team['avater_path'],'www.'))
{
    if (@strstr($forum_team['avater_path'],'download/avatar/')
    or @strstr($forum_team['avater_path'],'look/images/avatar/'))
    {
    $forum_team['avater_path'] = $PowerBB->_CONF['template']['ForumAdress'].$forum_team['avater_path'];
    $forum_team['avater_path'] = str_replace($PowerBB->_CONF['template']['ForumAdress'].$PowerBB->_CONF['template']['ForumAdress'], $PowerBB->_CONF['template']['ForumAdress'], $forum_team['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_, $forum_team['avater_path']);
$forum_team['avater_path'] = @str_ireplace($http_, $https_, $forum_team['avater_path']);
$forum_team['avater_path'] = str_replace($http_www_, $httpswww_, $forum_team['avater_path']);
$forum_team['avater_path'] = @str_ireplace($http_www_, $httpswww_, $forum_team['avater_path']);
}
?>
<span class="brd0" style="width: 32px; height: 32px; background-image: url({$lastPostsList['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>
</li>
{/if}
<li class="last_subjectid" style="position:relative; vertical-align:middle; margin-top: -2px; display:inline-block;">
<a href="index.php?page=profile&show=1&id=<?php echo $forum_team['id'];?>">
<?php 
// اسم العضو
echo $forum_team['username_style_cache'];
?>
</a>
<div class="last_time_post">
<span class="last_time_ago"><?php 
// لقب العضو
echo $forum_team['user_title']; ?></span> 
</div>
</li>
</ul>
</li>
</ul>
</div>

<?php
}
else
{
echo "لا يوجد إداري متصل حاليا ..";
}

}
?>
{/if}
<div style="clear: both;"></div> 
<div style="clear: both;"></div>
شكرا لك سليمان !

ولكن عند دخول 2 من الادارة او اكثر تتشوه القائمة الجانبية , وعند دخول اداري 1 تظهر كلمة لايوجد اداري متصل الان

look/images/icons/i1.gif طلب كود اداري متصل
  22-07-2017 01:23 صباحاً   [8]
معلومات الكاتب ▼
تاريخ الإنضمام : 18-07-2009
رقم العضوية : 1
المشاركات : 12526
الدولة : KSA
الجنس :
الدعوات : 52
قوة السمعة : 73776
موقعي : زيارة موقعي
اعتقد هذا سيعمل معك
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);
?>
<ul class="whatis_new">
<li class="last_posts" style="padding-bottom: 10px;margin-bottom: 10px;">
<ul class="PBBList_reset">
{if {$_CONF['info_row']['allow_avatar']}}
<li class="Photo_lastPoster" style="display:inline-block; margin-top:-3px; padding:2px; width: 32px; height: 32px; -webkit-border-radius: 4px; -moz-border-radius: 4px; -khtml-border-radius: 4px; border-radius: 4px;">
<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>
</li>
{/if}
<li class="last_subjectid" style="position:relative; vertical-align:middle; margin-top: -2px; display:inline-block;">
<a href="index.php?page=profile&show=1&id=<?php echo $memberadmin['id'];?>">
<?php 
// اسم العضو
echo $memberadmin['username_style_cache'];
?>
</a>
<div class="last_time_post">
<?php 
// لقب العضو
echo $group['title']; ?> 
</div>
</li>
</ul>
</li>
</ul>
</div>

<?php
}


}
?>
{/if}
<div style="clear: both;"></div> 
<div style="clear: both;"></div>
​

الصفحة 2 من 2 < 1 2 > الأخيرة



المواضيع المتشابهه
عنوان الموضوع الكاتب الردود الزوار آخر رد
ظهور مشكلة في tags عند الضغط على اي كلمة تظهر رسالة ادارية رسالة إدارية المسار المتبع غير صحيح ! جنرال الحب
3 145 Soliman
[مجابه] الخيارات الاداريه للموضوع لاتعمل حسام العلي
8 1373 Soliman
[مجابه] تم تغيير الكلمة السرية للعضويات الادارية في موقعي عبد العزيز
5 1141 نجم الويب
تعديل كود الشريط الاداري ليتوافق مع المنتدى ashraf
16 6287 كنتارو
[مجابه] الاعلانات الادارية لا تظهر woman arabe
6 733 عبد العزيز

الكلمات الدلالية
اداري ، متصل ،









الساعة الآن 05:03 PM