أسعد الله أوقاتكم وأسئل الله تعالى أن تكونوا جميعكم بآلف خير وصحة !
طبعآ الحمدالله أنتهيت بنسبة 50% من ترقية أستايل تقنيات المطور أعتقد أسمه كذآ ولكن
واجهتني مشكلة في تشوه الاستايل+ أخر 5أحصائيات حاولت أصلحها ماضبط أبدآ
تم تطبيق خطوات ترقية القوالب + css في شروحات الاخ سليمان + مستر كنق
- css الخاص بـ الاستايل بـ المرفقات .
قالب statistics_list
CODE
{if {$_CONF['info_row']['activate_last_static_list']} == 1}
<div class="tqnyah-chat2-top-bg">
<div class="tqnyah-chat2-top-right"></div>
<div class="tqnyah-chat2-top-left"></div>
<div class="tqnyah-chat2-down-tmdd"></div>
</div>
<div class="tqnyah-chat2-bg">
<div class="tqnyah-chat2-bg-right">
<div class="tqnyah-chat2-bg-left">
<table border="0" cellspacing="0" width="98%" align="center" class="border_radius">
<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&index=1">
{$lang['last_static_num']}
</a>
</td>
</tr>
</table>
<div class="Ajax-static" id="statistics_list">
<div class="right-mainbox">
<div style="margin: 2px;">
<select size="4" name="DefaultSelect" multiple='multiple'>
<option value="pp-topparticipants" id='pp-topparticipants'>{$lang['Top_participants']}</option>
<option value="pp-reputation" id='pp-reputation'>{$lang['strongest_reputation']}</option>
<option value="pp-register" id='pp-register'>{$lang['New_members']}</option>
<option value="pp-invite" id='pp-invite'>{$lang['TopMemberInvite']}</option>
</select>
</div>
<div id='topparticipants_table'>
<table width="100%" border="0" cellpadding="0" style="border-collapse: collapse">
{if {$TopMemberListNum} > 0}
<tr style="vertical-align: top;">
<td class="thead1" align="right">
{$lang['user_name']}</td>
<td class="thead1" align="right">
{$lang['posts']}</td>
</tr>
{Des::while}{TopMemberList}
<tr style="vertical-align: top;">
<td class="row2" align="right">
<span class="smallfont">
<a href="index.php?page=profile&show=1&id={$TopMemberList['id']}">{$TopMemberList['username']}</a>
</span>
</td>
<td class="row2" title="{$lang['posts']}" width="1%" align="center">
{$TopMemberList['posts']}</td>
</tr>
{/Des::while}
{else}
{$lang['No_Posts']}
{/if}
</table>
</div>
<div id='reputation_table'>
<table width="100%" border="0" cellpadding="0" style="border-collapse: collapse">
{if {$MemberReputationNum} > 0}
<tr style="vertical-align: top;">
<td class="thead1" align="right">
{$lang['user_name']}</td>
<td class="thead1" align="right">
{$lang['usercp_reputations']}</td>
</tr>
{Des::while}{TopMemberReputation}
<tr style="vertical-align: top;">
<td class="row2" align="right">
<span class="smallfont">
<a href="index.php?page=profile&show=1&id={$TopMemberReputation['id']}">
<?php
$num ='9';
$text = $PowerBB->_CONF['template']['while']['TopMemberReputation'][$this->x_loop]['username'];
echo $text = $PowerBB->functions->words_count($text,$num);
if (strlen($PowerBB->_CONF['template']['while']['TopMemberReputation'][$this->x_loop]['username']) > $num) {
echo "";
}
?>
</a>
</span>
</td>
<td class="row2" title="{$lang['Reputable']}" width="1%" align="center">
{$TopMemberReputation['reputation']}</td>
</tr>
{/Des::while}
{else}
<td class="thead1" align="right">
{$lang['No_Reputaions']}</td>
{/if}
</table>
</div>
<div id='register_table'>
<table width="100%" border="0" cellpadding="0" style="border-collapse: collapse">
<tr style="vertical-align: top;">
<td class="thead1" align="right">
{$lang['user_name']}</td>
<td class="thead1" align="right">
{$lang['date_register']}</td>
</tr>
</tr>
{Des::while}{latest_registered}
<tr style="vertical-align: top;">
<td class="row2" width="100%" align="right">
<span class="smallfont">
<a href="index.php?page=profile&show=1&id={$latest_registered['id']}" title="{$latest_registered['register_date']}">
<?php
$num ='9';
$text = $PowerBB->_CONF['template']['while']['latest_registered'][$this->x_loop]['username'];
echo $text = $PowerBB->functions->words_count($text,$num);
if (strlen($PowerBB->_CONF['template']['while']['latest_registered'][$this->x_loop]['username']) > $num) {
echo "";
}
?>
</a>
</span>
</td>
<td class="row2" title="{$lang['date_register']}" width="1%" align="left">
<span class="smallfont">{$latest_registered['register_date']}</span></td>
</tr>
{/Des::while}
</table>
</div>
<div id='invite_table'>
<table width="100%" border="0" cellpadding="0" style="border-collapse: collapse">
{if {$TopMemberInviteNum} > 0}
<tr style="vertical-align: top;">
<td class="thead1" align="right">
{$lang['user_name']}</td>
<td class="thead1" align="right">
{$lang['Invites']}</td>
</tr>
{Des::while}{TopMemberInvite}
<tr style="vertical-align: top;">
<td class="row2" align="right">
<a href="index.php?page=profile&show=1&id={$TopMemberInvite['id']}">
<span class="smallfont">
<?php
$num ='9';
$text = $PowerBB->_CONF['template']['while']['TopMemberInvite'][$this->x_loop]['username'];
echo $text = $PowerBB->functions->words_count($text,$num);
if (strlen($PowerBB->_CONF['template']['while']['TopMemberInvite'][$this->x_loop]['username']) > $num) {
echo "";
}
?>
</span>
</a>
</td>
<td class="row2" title="{$lang['Invites']}" width="1%" align="left">
{$TopMemberInvite['invite_num']}</td>
</tr>
{/Des::while}
{else}
<td class="row2" align="right">
{$lang['No_Invits']}</td>
{/if}
</table>
</div>
</div>
<div class="left-mainbox">
<div class='pp-taboff3' id='pp-lastsubject'>{$lang['LastSubject']}</div>
<div class='pp-taboff3' id='pp-topsubjects'>{$lang['TopSubjectVisitor']}</div>
<div class='pp-taboff3' id='pp-topsections'>{$lang['most_popular_forums']}</div>
<div id='lastsubject_table'>
<table width="100%" border="0" cellpadding="0" style="border-collapse: collapse">
<tr style="vertical-align: top;">
<td class="thead1" align="right">
{$lang['Subject']}</td>
<td class="thead1">
</td>
<td class="thead1" align="right">
{$lang['send_by']}</td>
<td class="thead1" align="right">
{$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="row2" title="{$LastSubject['title']}" align="right">
<img src="{$image_path}/post.gif" alt="" border="0" />
<a href="index.php?page=topic&show=1&id={$LastSubject['id']}" title="{$LastSubject['reply_date']}">
<span class="smallfont">
<?php
$num ='13';
$text = $PowerBB->_CONF['template']['while']['LastSubject'][$this->x_loop]['title'];
echo $text = $PowerBB->functions->words_count($text,$num);
if (strlen($PowerBB->_CONF['template']['while']['LastSubject'][$this->x_loop]['title']) > $num) {
echo "";
} ?>
</span>
</a>
</td>
<td class="row2" title="{$LastSubject['title']}" align="center">
<a target="_blank" href="index.php?page=topic&show=1&id={$LastSubject['id']}">
<img src="{$image_path}/open.gif" alt="" border="0" /></a>
</td>
<td class="row2" title="{$LastSubject['last_replier']}" align="right">
<span class="smallfont">
{if {$LastSubject['last_replier']} !=''}
<?php echo $PowerBB->functions->GetUsernameStyleAndUserId($PowerBB->_CONF['template']['while']['LastSubject'][$this->x_loop]['last_replier']);?>
{else}
<?php echo $PowerBB->functions->GetUsernameStyleAndUserId($PowerBB->_CONF['template']['while']['LastSubject'][$this->x_loop]['writer']);?>
{/if}
</span>
</td>
<td class="row2" title="{$LastSubject['reply_date']}" align="right">
<span class="smallfont"> {$LastSubject['reply_date']}</span>
</td>
</tr>
{/Des::while}
</table>
</div>
<div id='topsubjects_table'>
<table width="100%" border="0" cellpadding="0" style="border-collapse: collapse">
{if {$TopSubjectVisitorNum} > 0}
<tr style="vertical-align: top;">
<td class="thead1" align="right">
{$lang['Subject']}</td>
<td class="thead1" align="right">
{$lang['subject_visitor']} </td>
</tr>
{Des::while}{TopSubjectVisitor}
<tr style="vertical-align: top;">
<td class="row2" align="right">
<img src="{$image_path}/post.gif" alt="" border="0" />
<a href="index.php?page=topic&show=1&id={$TopSubjectVisitor['id']}">
<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 ='13';
$text = $PowerBB->_CONF['template']['while']['TopSubjectVisitor'][$this->x_loop]['title'];
echo $text = $PowerBB->functions->words_count($text,$num);
if (strlen($PowerBB->_CONF['template']['while']['TopSubjectVisitor'][$this->x_loop]['title']) > $num) {
echo "";
}
?>
</span>
</a>
</td>
<td class="row2" title="{$lang['SubjectVisitor']}" width="1%" align="center">
{$TopSubjectVisitor['visitor']}</td>
</tr>
{/Des::while}
{else}
{$lang['No_Visits']}
{/if}
</table>
</div>
<div id='topsections_table'>
<table width="100%" border="0" cellpadding="0" style="border-collapse: collapse">
{if {$TopSectionListNum} >0}
<tr style="vertical-align: top;">
<td class="thead1" align="right">
{$lang['forum']}</td>
<td class="thead1" align="right">
{$lang['reply_num']} </td>
</tr>
{Des::while}{TopSectionsList}
<tr style="vertical-align: top;">
<td class="row2" title="{$TopSectionsList['title']}" align="right">
<span class="smallfont">
<a href="index.php?page=forum&show=1&id={$TopSectionsList['id']}">
<?php
$num ='13';
$text = $PowerBB->_CONF['template']['while']['TopSectionsList'][$this->x_loop]['title'];
echo $text = $PowerBB->functions->words_count($text,$num);
if (strlen($PowerBB->_CONF['template']['while']['TopSectionsList'][$this->x_loop]['title']) > $num) {
echo "";
}
?>
</a>
</span>
</td>
<td class="row2" title="{$lang['reply_num']}" width="1%" align="center">
{$TopSectionsList['reply_num']}</td>
</tr>
{/Des::while}
{else}
{$lang['No_Posts']}
{/if}
</table>
</div>
</div>
<div style="clear:both;"></div>
</div>
<script type='text/javascript'>
function ShowTopParticipantsTable()
{
if ($("#pp-topparticipants").click)
{
$("#topparticipants_table").fadeIn();
$("#reputation_table").hide();
$("#register_table").hide();
$("#invite_table").hide();
}
else
{
$("#topparticipants_table").fadeOut();
}
}
function ShowTopReputationTable()
{
if ($("#pp-reputation").click)
{
$("#topparticipants_table").hide();
$("#reputation_table").fadeIn();
$("#register_table").hide();
$("#invite_table").hide();
}
else
{
$("#reputation_table").fadeOut();
}
}
function ShowRegisterTable()
{
if ($("#pp-register").click)
{
$("#topparticipants_table").hide();
$("#reputation_table").hide();
$("#register_table").fadeIn();
$("#invite_table").hide();
}
else
{
$("#register_table").fadeOut();
}
}
function ShowInviteTable()
{
if ($("#pp-invite").click)
{
$("#topparticipants_table").hide();
$("#reputation_table").hide();
$("#register_table").hide();
$("#invite_table").fadeIn();
}
else
{
$("#invite_table").fadeOut();
}
}
function ShowLastsubjectTable()
{
if ($("#pp-lastsubject").click)
{
$("#lastsubject_table").fadeIn();
$("#topsubjects_table").hide();
$("#topsections_table").hide();
document.getElementById('pp-lastsubject').className="pp-tabon3";
document.getElementById('pp-topsubjects').className="pp-taboff3";
document.getElementById('pp-topsections').className="pp-taboff3";
}
else
{
$("#lastsubject_table").fadeOut();
}
}
function ShowTopsubjectsTable()
{
if ($("#pp-topsubjects").click)
{
$("#lastsubject_table").hide();
$("#topsubjects_table").fadeIn();
$("#topsections_table").hide();
document.getElementById('pp-lastsubject').className="pp-taboff3";
document.getElementById('pp-topsubjects').className="pp-tabon3";
document.getElementById('pp-topsections').className="pp-taboff3";
}
else
{
$("#lastsubject_table").fadeOut();
}
}
function ShowTopsectionsTable()
{
if ($("#pp-topsections").click)
{
$("#lastsubject_table").hide();
$("#topsubjects_table").hide();
$("#topsections_table").fadeIn();
document.getElementById('pp-lastsubject').className="pp-taboff3";
document.getElementById('pp-topsubjects').className="pp-taboff3";
document.getElementById('pp-topsections').className="pp-tabon3";
}
else
{
$("#topsections_table").fadeOut();
}
}
function Ready()
{
$("#pp-topparticipants").click(ShowTopParticipantsTable);
$("#pp-reputation").click(ShowTopReputationTable);
$("#reputation_table").hide();
$("#pp-register").click(ShowRegisterTable);
$("#register_table").hide();
$("#pp-invite").click(ShowInviteTable);
$("#invite_table").hide();
$("#pp-lastsubject").click(ShowLastsubjectTable);
document.getElementById('pp-lastsubject').className="pp-tabon3";
$("#pp-topsubjects").click(ShowTopsubjectsTable);
$("#topsubjects_table").hide();
$("#pp-topsections").click(ShowTopsectionsTable);
$("#topsections_table").hide();
}
$(document).ready(Ready);
</script>
</div>
</div>
</div>
<div class="tqnyah-chat2-down-bg">
<div class="tqnyah-chat2-down-right"></div>
<div class="tqnyah-chat2-down-left"></div>
<div class="tqnyah-chat2-down-center"></div>
</div>
{/if}
- رابط المنتدى للمعاينة ..