كثيرا منا لا تعجبة شكل إحصائيات النسخة 3.2 فهذا الدرس يشرح لنا طريقة تعديلها للنسخ السابقة


قبل التعديل

نقره لتكبير أو تصغير الصورة ونقرتين لعرض الصورة في صفحة مستقلة بحجمها الطبيعي

بعد التعديل :-

نقره لتكبير أو تصغير الصورة ونقرتين لعرض الصورة في صفحة مستقلة بحجمها الطبيعي
إتبع الآتى

Look & Feel
إخترا الاستايل
Templates
Board Index
boardIndexTemplate


أبحث عن :-

كود PHP:
<if test="showTotals:|:$this->settings['show_totals']">
        <
div id='board_stats'>        
                <
ul class='ipsType_small ipsList_inline'>
                        <
li class='clear'>
                                <
span class='value'>{$stats['info']['total_posts']}</span>
                                {
$this->lang->words['total_posts']}
                        </
li>
                        <
li class='clear'>
                                <
span class='value'>{$stats['info']['mem_count']}</span>
                                {
$this->lang->words['total_members']}
                        </
li>
                        <
li class='clear'>
                                <
a href='{$stats['info']['last_mem_link']}' title='{$this->lang->words['view_profile']}' class='value'>{$stats['info']['last_mem_name']}</a>
                                {
$this->lang->words['newest_member']}
                        </
li>
                        <
li class='clear' data-tooltip="{$stats['info']['most_time']}">
                                <
span class='value'>{$stats['info']['most_online']}</span>
                                {
$this->lang->words['online_at_once']}
                        </
li>
                </
ul>
        </
div>
</if>
<
div id='board_statistics' class='statistics clearfix'>
        <
ul id='stat_links' class='ipsList_inline right ipsType_small'>
                <if 
test="statsLinks:|:1==1"> <!-- Hook point -->
                        <
li><a href="{parse url="app=forums&module=extras&#167;ion=stats&do=leaders" base="public"}" title="{$this->lang->words['sm_forum_leaders_title']}">{$this->lang->words['sm_forum_leaders']}</a></li>
                        
<li><a href="{parse url="app=forums&module=extras&#167;ion=stats" base="public"}" title="{$this->lang->words['sm_all_posters_title']}">{$this->lang->words['sm_today_posters']}</a></li>
                        
<li><a href="{parse url="app=members&module=list&max_results=20&sort_key=posts&sort_order=desc&filter=ALL" base="public" seotitle="false"}" title="{$this->lang->words['sm_overall_posters_title']}">{$this->lang->words['sm_overall_posters']}</a></li>
                </if>
        </
ul>
      
        <
h4 class='statistics_head'>{parse expression="sprintf( $this->lang->words['online_right_now'], $stats['TOTAL'] )"} {$this->lang->words['active_users']}</h4>
        <
class='statistics_brief desc'>
                {
parse expression="sprintf( $this->lang->words['active_users_detail'], $stats['MEMBERS'], $stats['GUESTS'], $stats['ANON'] )"}
                <
a href='{parse url="app=members&module=online&sort_order=desc" base="public"}'>({$this->lang->words['online_link']})</a>
        </
p>
      
        <if 
test="activeNames:|:count($stats['NAMES'])">
                <
br />
                <
p>
                        <
span class='name'>{parse expression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span>                                     
                </
p>
        </if>
</
div
إستبدلة بـــ

كود PHP:
<br><h3 class='maintitle'>الإحصائيات            <span class='right desc'>       <ul id='stat_links' class='ipsList_inline right ipsType_small'>                 <if test="statsLinks:|:1==1">                           <li><a href="{parse url="app=forums&module=extras&#167;ion=stats&do=leaders" base="public"}" title="{$this->lang->words['sm_forum_leaders_title']}">{$this->lang->words['sm_forum_leaders']}</a></li>                           <li><a href="{parse url="app=forums&module=extras§ion=stats" base="public"}" title="{$this->lang->words['sm_all_posters_title']}">{$this->lang->words['sm_today_posters']}</a></li>                        <li><a href="{parse url="app=members&module=list&max_results=20&sort_key=posts&sort_order=desc&filter=ALL" base="public" seotitle="false"}" title="{$this->lang->words['sm_overall_posters_title']}">{$this->lang->words['sm_overall_posters']}</a></li>                </if>           </ul></h3>                                              <div class='ipsBox table_wrap'>                                                         <div class='ipsBox_container'><div id='board_statistics' class='statistics general_box'>        <if test="showTotals:|:$this->settings['show_totals']">                 <div id='stats'>                        <h4 class='statistics_head'>{$this->lang->words['board_stats']}</h4>                            <dl>                                    <dt>{$this->lang->words['total_posts']}</dt>                                    <dd>{$stats['info']['total_posts']}</dd>                                <dt>{$this->lang->words['total_members']}</dt>                                  <dd>{$stats['info']['mem_count']}</dd>                                  <dt>{$this->lang->words['newest_member']}</dt>                                  <dd><a href='{$stats['info']['last_mem_link']}' title='{$this->lang->words['view_profile']}'>{$stats['info']['last_mem_name']}</a>{parse template="user_popup" group="global" params="$stats['info']['last_mem_id'],$stats['info']['last_mem_seo']"} </dd>                              <dt>{$this->lang->words['online_at_once']}</dt>                                 <dd>{$stats['info']['most_online']}<br /><span class='extra'>{$stats['info']['most_time']}</span></dd>                          </dl>                   </div>          </if>           <if test="showActive:|:$this->settings['show_active']"><h4 class='statistics_head'>{parse expression="sprintf( $this->lang->words['online_right_now'], $stats['TOTAL'] )"} {$this->lang->words['active_users']}</h4>            <p class='statistics_brief desc'>               {parse expression="sprintf( $this->lang->words['active_users_detail'], $stats['MEMBERS'], $stats['GUESTS'], $stats['ANON'] )"}                  <a href='{parse url="app=members&module=online&sort_order=desc" base="public"}'>({$this->lang->words['online_link']})</a>       </p>                    <if test="activeNames:|:count($stats['NAMES'])">                <br />                  <p>                     <span class='name'>{parse expression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span>               </p>            </if>           </if>  </div></div></div> 

وبعدها نقوم بإضافة كود جديد فى ال ccs

لتنسيق الإحصائية

Look & Feel
CSS
ipb_styles.css

أضف هذا الكود في نهايتة

كود PHP:
         #stats {
        
border-right1px solid #e4ebf2;
        
padding-right20px;
        
width33%;
        
floatleft;
}
        
#stats dl {
                
margin-right10px;
        }
      
        
#stats dt,
        #stats dd {
                
border-top1px solid #dedede;
                
font-size0.85em;
                
padding6px 2px;
                
floatright;
                
width45%;
        }
      
        
#stats dt {
                
font-weightbold;
                
clearboth;
        }
      
        
#stats .extra {
                
color#a2a2a2;
                
font-size0.9em;
        } 
وابحث عن:

كود PHP:
.statistics {
margin20px 0 0 0;
padding10px 0;
border-top3px solid #d8d8d8;
line-height1.3;
overflowhidden;

استبدله بـ:

كود PHP:
.statistics {
        
margin5px 5px 0 0;
        
padding10px 10px;
        
line-height1.3;
        
overflowhidden;



كدة تمت بحمد الله أى إستفسار انا موجود