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

هاك متابعة الأعضاء الإصدار v1.0 لنسخة PBBoard v3.0.2 فقط


مشاهدة المشاركة في الموضوع بالعرض العادي
look/images/icons/i1.gif هاك متابعة الأعضاء الإصدار v1.0 لنسخة PBBoard v3.0.2 فقط
  21-01-2017 06:22 مساءً  
Soliman
معلومات الكاتب
المشاركة الأصلية كتبت بواسطة: ridouane مشكلة أخرى!!



لائحة المتابَعون تبقى بيضاء بالرغم من أن هناك متابَعون.

استبدل جميع محتوى قالب : follow_show_following

CODE
<?php
if ($PowerBB->_GET['following'])
{
?>
<div class='pp-tabwrap'>
<div class="pp-tabon pkr" id='pp-content-tab-following'><a href="index.php?page=profile&amp;show=1&amp;following=1&amp;id={$MemberInfo['id']}"><i class="fa fa-users"></i>&nbsp;<b>الأشخاص الذين تتم متابعتهم بواسطة {$MemberInfo['username_style_cache']}</b>&nbsp;</a></div>
<div class="pp-taboff">
<i class="fa fa-users"></i>&nbsp;المتابِعون
&nbsp;(<?php echo $PowerBB->functions->with_comma($PowerBB->_CONF['template']['MemberInfo']['following_number']); ?>)
</div>
 </div>

<div id='followrs_table' class='pp-contentbox-back'>
<div class="borderwrap">
{if {$_CONF['info_row']['follow_users_activ']} == '1'}
<table class="wd100 brd1 clpc0 a-center">
<tr>
<td class="row1 pkr wd60">
{if {$MemberInfo['following_number']} == '0'}
لم ينابع {$MemberInfo['username']} اي شخص حتى الآن ..
{/if}
<table class="brd0 clp0" style="border-collapse: collapse">
<tr>
<?php
$following = explode('|', $PowerBB->_CONF['template']['MemberInfo']['following']);
?>
<?php
$x=0;
 foreach($following as $follow)
 {
    $follow = trim($follow);
  if($x != $PowerBB->_CONF['template']['MemberInfo']['following_number'])
    {
    $MemberIDArr = $PowerBB->DB->sql_query("SELECT * FROM " . $PowerBB->table['member'] . " WHERE username='$follow'");
    $MemberIDInfo= $PowerBB->DB->sql_fetch_array($MemberIDArr);

    if($fol== '2'){
    $fol=0;
    echo "</tr><tr>";
    }
    ?>

    <td class="row1 pkr pkr-b" style="vertical-align:top;">
    <div class="UserPhoto center_text_align" style="width: 80px;height: 80px; margin-left: 10px;margin-right: 10px; margin-bottom: 10px;">
    <?php
    if ($MemberIDInfo['avater_path']){
    ?>
    <a href="index.php?page=profile&amp;show=1&amp;id=<?php echo $MemberIDInfo['id']; ?>">
    <img src="<?php echo $MemberIDInfo['avater_path'];?>" class="brd0" width="80" height="80" title="<?php echo $MemberIDInfo['user_info'];?>"
    alt="{$lang['Picture']}
    <?php echo $MemberIDInfo['username'];?>
    {$lang['Personal']}" /></a>
    {else}
    <a href="index.php?page=profile&amp;show=1&amp;id=<?php echo $MemberIDInfo['id']; ?>">
    <img src="{$image_path}/
    {$_CONF['info_row']['default_avatar']}" class="brd0" width="80" height="80"
    alt="{$lang['no_photo']}"
    title="<?php echo $MemberIDInfo['user_info']?>" />
    </a>
    <?php }?>
    </div>
    </td>
    <td class="row1 pkr pkr-b" style="vertical-align:top;">
    <a href="index.php?page=profile&amp;show=1&amp;id=<?php echo $MemberIDInfo['id'];?>">
    <?php echo $MemberIDInfo['username_style_cache'];?></a>
    <?php


    if ($PowerBB->_CONF['member_permission'])
    {
    $mn_exusergroups = $PowerBB->_CONF['info_row']['follow_ignore_groups'];
    $mn_exusergroupse_Array = explode(',', $mn_exusergroups);
    if (!in_array($PowerBB->_CONF['member_row']['usergroup'], $mn_exusergroupse_Array))
    {

     if ($PowerBB->_CONF['member_row']['username'] != $MemberIDInfo['username'])
     {
        $followers = explode('|', $MemberIDInfo['followers']);
        $following = explode('|', $PowerBB->_CONF['member_row']['following']);
        if (in_array($PowerBB->_CONF['member_row']['username'], $followers))
        {
        $isfollow  = 1;
        }
        elseif(in_array($MemberIDInfo['username'], $following))
        {
        $isfollow  = 1;
        }
        else
        {
        $isfollow  = 0;
        }

        if ($isfollow == 0)
        {
        ?>

        <div id="follow<?php echo $MemberIDInfo['id'];?>"><a href="#" class="follow" id="<?php echo $MemberIDInfo['id'];?>"><span class="follow_b">+ متابعة </span></a></div>
        <div id="remove<?php echo $MemberIDInfo['id'];?>" style="display:none"><a href="" class="remove" id="<?php echo $MemberIDInfo['id'];?>"><span class="remove_b"></span></a></div>
        <?php }
        elseif ($isfollow == 1){ ?>
        <div id="remove<?php echo $MemberIDInfo['id'];?>" ><a href="" class="remove" id="<?php echo $MemberIDInfo['id'];?>"><span class="remove_b"></span></a></div>
        <div id="follow<?php echo $MemberIDInfo['id'];?>" style="display:none"><a href="#" class="follow" id="<?php echo $MemberIDInfo['id'];?>"><span class="follow_b">+ متابعة </span></a></div>
        <?php
        }else{ ?>
        <div id="follow<?php echo $MemberIDInfo['id'];?>"><a href="#" class="follow" id="{$MemberInfo['id']}"><span class="follow_b">+ متابعة </span></a></div>
        <div id="remove<?php echo $MemberIDInfo['id'];?>" style="display:none"><a href="" class="remove" id="<?php echo $MemberIDInfo['id'];?>"><span class="remove_b"></span></a></div>
        <?php }
      }
      else
      {
      ?>
      <div><a href="index.php?page=usercp&amp;control=1&amp;info=1&amp;main=1"><span class="follow_b">تعديل الملف الشخصي</span></a></div>
      <?php
      }
     }
    }
     else
     {
     echo " ";    
     }    
     ?>
    <span class="smallfont" style="color: rgb(150, 150, 150);"><?php echo $MemberIDInfo['user_title'];?></span>
    <span class="smallfont" style="color: rgb(150, 150, 150);"><?php echo $MemberIDInfo['user_info'];?></span>
    </td>
    <?php
    $fol += 1;

   }
   $x += 1;
  }
?>
</tr>
</table>
</td>
</tr>
{if {$_CONF['rows']['member_row']['username']} == {$MemberInfo['username']}}
<tr>
<td class="row1 pkr left_text_align">
<a href="index.php?page=plugin&amp;main=1&amp;control=1&amp;setting=1&amp;first=1">
اعدادات المتابعة
</a>
</td>
</tr>
{/if}
</table>
{/if}


</div>
</div>

<?php
}
?>



الساعة الآن 08:45 PM