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

كيف بجعل الاعضاء داخل قالب الاحصائيات


مشاهدة المشاركة في الموضوع بالعرض العادي
look/images/icons/i1.gif كيف بجعل الاعضاء داخل قالب الاحصائيات
  18-11-2012 02:25 مساءً  
ابو عبد الله
معلومات الكاتب
تفضل اخي الفاضل هذا القالب



CODE


{if {$_CONF['info_row']['activate_last_static_list']} == 1}
                
               <table border="0" cellspacing="0" width="98%" align="center">
                        <tr align="center">
                    <td class="tcat">
<span class="l-left">
                 <a onclick="switchMenuNone('statistics_list');"><img border="0" alt="" src="{$image_path}/collapse_b.gif" /></a>
                   </span>
                           <a title="{$lang['mor_static']}" href="index.php?page=static&amp;index=1">
                        {$lang['last_static_num']}
                        </a>
                        </td>
                    </tr>
        </table>
               <table border="0" cellspacing="1" width="98%" class="border" id="statistics_list" align="center">
<tr align="right">
                        <td class="thead1" width="145" valign="top">{$lang['New_members']}</td>
                        <td class="thead1" width="180">{$lang['TopSubjectVisitor']}</td>
                        <td class="thead1" width="250" valign="top">&nbsp;{$lang['LastSubject']}</td>
                    </tr>
<tr align="right">
                        <td class="row3" width="145">
                            <table width="100%" border="0" cellpadding="0" style="border-collapse: collapse">
                             {Des::while}{latest_registered}
                                <tr style="vertical-align: top;">
<td class="row3" width="100%" align="right" nowrap="nowrap">
<span class="smallfont">
                               {if {$_CONF['info_row']['rewriterule']} == '1'}
                                       <a href="u{$latest_registered['id']}.html">
                                    {else}
                                       <a href="index.php?page=profile&amp;show=1&amp;id={$latest_registered['id']}">
                                  {/if}
                                      <?php
                                     $num ='20';
                                    $start ='0';
                                    $text = $PowerBB->_CONF['template']['while']['latest_registered'][$this->x_loop]['username'];
                                     echo $text = @preg_replace('#^(?:[\\x00-\\x7F]|[\\xC0-\\xFF][\\x80-\\xBF]+){0,'. $start .'}'.'((?:[\\x00-\\x7F]|[\\xC0-\\xFF][\\x80-\\xBF]+){0,'. $num .'}).*#s','$1', $text);
                                      if (strlen($PowerBB->_CONF['template']['while']['latest_registered'][$this->x_loop]['username']) > $num) {
                                    echo " ..";
                                    }
                                    ?>
                                    </a>
                                    </span>
                                   </td>
                                    <td class="row3" title="{$lang['date_register']}" width="1%" align="left" nowrap="nowrap">
                                    &nbsp;<span class="smallfont">{$latest_registered['register_date']}</span></td>
                                </tr>
                                {/Des::while}
                            </table>
                        </td>
                        <td class="row3" width="180">
                            <table width="100%" border="0" cellpadding="0" style="border-collapse: collapse">
                           {if {$TopSubjectVisitorNum} > 0}
                            {Des::while}{TopSubjectVisitor}
                                <tr style="vertical-align: top;">
<td class="row3" align="right" nowrap="nowrap">
                                    <img src="{$image_path}/post.gif" alt="" border="0" />&nbsp;
                                    {if {$_CONF['info_row']['rewriterule']} == '1'}
                                    <a href="t{$TopSubjectVisitor['id']}.html">
                                    {else}
                                    <a href="index.php?page=topic&amp;show=1&amp;id={$TopSubjectVisitor['id']}">
                                    {/if}
                                    <span class="smallfont">
                                    <?php $PowerBB->_CONF['template']['while']['TopSubjectVisitor'][$this->x_loop]['title'] = $PowerBB->Powerparse->censor_words($PowerBB->_CONF['template']['while']['TopSubjectVisitor'][$this->x_loop]['title']); ?>
                                    <?php
                                     $num ='25';
                                    $start ='0';
                                    $text = $PowerBB->_CONF['template']['while']['TopSubjectVisitor'][$this->x_loop]['title'];
                                     echo $text = @preg_replace('#^(?:[\\x00-\\x7F]|[\\xC0-\\xFF][\\x80-\\xBF]+){0,'. $start .'}'.'((?:[\\x00-\\x7F]|[\\xC0-\\xFF][\\x80-\\xBF]+){0,'. $num .'}).*#s','$1', $text);
                                      if (strlen($PowerBB->_CONF['template']['while']['TopSubjectVisitor'][$this->x_loop]['title']) > $num) {
                                    echo " ..";
                                    }
                                    ?>
                                    </span>
                                    </a>
                                    </td>
                                    <td class="row3" title="{$lang['SubjectVisitor']}" width="1%" align="left" nowrap="nowrap">
                                    {$TopSubjectVisitor['visitor']}</td>
                                </tr>
                                {/Des::while}
                                {else}
                                {$lang['No_Visits']}
                                {/if}
                            </table>
                        </td>
                        <td class="row3" width="250" rowspan="3" valign="top">
                            <table style="height: 100%; border-collapse:collapse" width="100%" border="0" cellpadding="0">
                                <tr style="vertical-align: top;">
<td class="row3" align="right" nowrap="nowrap">
                                    {$lang['Subject']}</td>
                                    <td>
                                    &nbsp;</td>
<td class="row3" align="right" nowrap="nowrap">
                                    &nbsp;{$lang['send_by']}</td>
<td class="row3" align="right" nowrap="nowrap">
                                    &nbsp;&nbsp;{$lang['date']}</td>
                                </tr>
                                {Des::while}{LastSubject}
                             <?php $PowerBB->_CONF['template']['while']['LastSubject'][$this->x_loop]['title'] = $PowerBB->Powerparse->censor_words($PowerBB->_CONF['template']['while']['LastSubject'][$this->x_loop]['title']); ?>
                                <tr valign="top">
    <td class="row3" title="{$LastSubject['title']}" align="right" nowrap="nowrap">
                                    <img src="{$image_path}/post.gif" alt="" border="0" />&nbsp;
                                    {if {$_CONF['info_row']['rewriterule']} == '1'}
                                 <a href="t{$LastSubject['id']}.html">
                                     {else}
                                    <a href="index.php?page=topic&amp;show=1&amp;id={$LastSubject['id']}">
                                    {/if}
                                <span class="smallfont">
                                 <?php
                                 $num ='30';
                                $start ='0';
                                $text = $PowerBB->_CONF['template']['while']['LastSubject'][$this->x_loop]['title'];
                                 echo $text = @preg_replace('#^(?:[\\x00-\\x7F]|[\\xC0-\\xFF][\\x80-\\xBF]+){0,'. $start .'}'.'((?:[\\x00-\\x7F]|[\\xC0-\\xFF][\\x80-\\xBF]+){0,'. $num .'}).*#s','$1', $text);
                                  if (strlen($PowerBB->_CONF['template']['while']['LastSubject'][$this->x_loop]['title']) > $num) {
                                echo " ...";
                                } ?>
                                </span>
                                 </a>
                                    </td>
    <td class="row3" title="{$LastSubject['title']}" align="right" nowrap="nowrap">
                                {if {$_CONF['info_row']['rewriterule']} == '1'}
                                    <a target="_blank" href="t{$LastSubject['id']}.html">
                                    {else}
                                    <a target="_blank" href="index.php?page=topic&amp;show=1&amp;id={$LastSubject['id']}">
                                    {/if}
                                    <img src="{$image_path}/open.gif" alt="" border="0" /></a>
                                    </td>
    <td class="row3" title="{$LastSubject['last_replier']}" align="right" nowrap="nowrap">
                                    <span class="smallfont">
                                    &nbsp;
                                    {if {$LastSubject['last_replier']} !=''}
                                     <?php echo $PowerBB->functions->GetUsernameStyle($PowerBB->_CONF['template']['while']['LastSubject'][$this->x_loop]['last_replier']);?>

                                              {else}
                                     <?php echo $PowerBB->functions->GetUsernameStyle($PowerBB->_CONF['template']['while']['LastSubject'][$this->x_loop]['writer']);?>

                                              {/if}
                                              </span>
                                    </td>
        <td class="row3" title="{$LastSubject['reply_date']}" width="1%" align="right" nowrap="nowrap">
                                    &nbsp;<span class="smallfont"> {$LastSubject['reply_date']}</span>
                                    </td>
                                </tr>
                                {/Des::while}
                            </table>
                        </td>
                    </tr>
<tr align="right">
                        <td class="thead1" width="145">
                            {$lang['TopMemberInvite']}</td>
                        <td class="thead1" width="180">{$lang['Top_participants']}</td>
                    </tr>
<tr align="right">
                        <td class="row3" width="140">
                            <table width="100%" border="0" cellpadding="0" style="border-collapse: collapse">
                            {if {$TopMemberInviteNum} > 0}
                            {Des::while}{TopMemberInvite}
                                <tr style="vertical-align: top;">
<td class="row3" align="right" nowrap="nowrap">
                                    {if {$_CONF['info_row']['rewriterule']} == '1'}
                                    <a href="u{$TopMemberInvite['id']}.html">
                                    {else}
                                    <a href="index.php?page=profile&amp;show=1&amp;id={$TopMemberInvite['id']}">
                                    {/if}
                                    <span class="smallfont">
                                    <?php
                                     $num ='25';
                                    $start ='0';
                                    $text = $PowerBB->_CONF['template']['while']['TopMemberInvite'][$this->x_loop]['username'];
                                     echo $text = @preg_replace('#^(?:[\\x00-\\x7F]|[\\xC0-\\xFF][\\x80-\\xBF]+){0,'. $start .'}'.'((?:[\\x00-\\x7F]|[\\xC0-\\xFF][\\x80-\\xBF]+){0,'. $num .'}).*#s','$1', $text);
                                      if (strlen($PowerBB->_CONF['template']['while']['TopMemberInvite'][$this->x_loop]['username']) > $num) {
                                    echo " ..";
                                    }
                                    ?>
                                    </span>
                                    </a>
                                    </td>
                                    <td class="row3" title="{$lang['Invites']}" width="1%" align="left" nowrap="nowrap">
                                    {$TopMemberInvite['invite_num']}</td>
                                </tr>
                                {/Des::while}
                                {else}
                                {$lang['No_Invits']}
                                {/if}
                            </table>
                        </td>
                        <td class="row3" width="180">
                            <table width="100%" border="0" cellpadding="0" style="border-collapse: collapse">
                            {if {$TopMemberListNum} > 0}
                                {Des::while}{TopMemberList}
                                <tr style="vertical-align: top;">
<td class="row3" align="right" nowrap="nowrap">
                                    <span class="smallfont">
                                    {if {$_CONF['info_row']['rewriterule']} == '1'}
                                <a href="u{$TopMemberList['id']}.html">{$TopMemberList['username']}</a>
                                {else}
                                <a href="index.php?page=profile&amp;show=1&amp;id={$TopMemberList['id']}">{$TopMemberList['username']}</a>
                                {/if}
                                </span>
                                  </td>
                                    <td class="row3" title="{$lang['posts']}" width="1%" align="left" nowrap="nowrap">
                                    {$TopMemberList['posts']}</td>
                                </tr>
                                {/Des::while}
                                {else}
                                {$lang['No_Posts']}
                                {/if}
                            </table>
                        </td>
                    </tr>
                </table>
         {/if}
                


الساعة الآن 05:47 AM