construct_nav_option($vbphrase['style_manager'], 'template.php?do=modify', '<br />');
construct_nav_option($vbphrase['style_manager_add'], 'template.php?do=addstyle', '<br />'); construct_nav_option($vbphrase['style_manager'], 'template.php?do=modify', '<br />');
construct_nav_option($vbphrase['search_in_templates'], 'template.php?do=search', '<br />');
construct_nav_option($vbphrase['templates_addnew'], 'template.php?do=add', '<br />');
construct_nav_option($vbphrase['language_manager'], 'language.php?do=modify', '<br />');
construct_nav_option($vbphrase['language_manager_add'], 'language.php?do=add', '<br />'); construct_nav_option($vbphrase['language_manager'], 'language.php?do=modify', '<br
construct_nav_option($vbphrase['search_in_phrases'], 'phrase.php?do=search', '<br />');
construct_nav_option($vbphrase['add_new_phrases1'], 'phrase.php?do=add', '<br />'); construct_nav_option($vbphrase['search_in_phrases'], 'phrase.php?do=search', '<br
$lastread = $bbuserinfo['lastvisit']; }
$topposter=''; $top = $DB_site->query(" SELECT count(post.postid) AS total_post,count(thread.threadid) AS total_thread, user.userid,user.username,user.joindate from " . TABLE_PREFIX . "user AS user LEFT JOIN " . TABLE_PREFIX . "post AS post ON(user.userid = post.userid) LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON(post.threadid = thread.threadid) where thread.forumid='$forumid' group by user.userid order by total_post DESC LIMIT 5"); $counteruser=0; while ($topp = $DB_site->fetch_array($top)) { $counteruser++; $topp['joindate'] = vbdate($vboptions['dateformat'], $topp['joindate'], true); eval('$topposter .= "' . fetch_template('forumdisplay_topposter') . '";'); }
'forumhome_lastpostby',
'forumdisplay_topposter',
$navbar
<br /> <table border="0" cellspacing="$stylevar[cellspacing]" cellpadding="4" class="tborder" width="$stylevar[tablewidth]"> <tr width="100%" class="alt1"> <td class="thead" width="50%" align="$stylevar[left]">أفضل خمس أعضاء</td> <td class="thead" width="50%" align="$stylevar">المشاركات</td> $topposter </table> <br />
<tr> <td class="alt1Active" align="$stylevar" width="80%" id="u$topp[userid]"><span class="smallfont">$counteruser) <a href="member.php?$session[sessionurl]u=$topp[userid]">$topp[username]</a><br />تاريخ تسجيله : $topp[joindate]</span></td> <td class="alt1Active" width="20%"><span class="smallfont">$topp[total_post] (<a href="search.php?do=finduser&u=$topp[userid]&f=$forumid">عرض هذه المشاركات</a>)</span></td>
$post['posts'] = vb_number_format($post['posts']);
//hack level par akex - http://forum.vbulletin-france.com if ($post[posts]) { $niveau="0"; $experience_aft="0"; $experience_bef="0"; while ($experience_aft<=$post[posts]) { $experience_bef+=10*pow($niveau,2); $niveau++; $experience_aft+=10*pow($niveau,2); } $post[exp]=$post[posts]; $post[perexp]=floor(100*($post[exp]-$experience_bef)/($experience_aft-$experience_bef)); $post[perexp1]=100-$post[perexp]; $post[exp_max]=$experience_aft; $post[niveau]=$niveau; $post[hp_max]=$post[niveau]*50; $post[mp_max]=$post[niveau]*20; $experience_bef= iif($experience_bef>0, $experience_bef-1, '0'); $derposts=$DB_site->query(" SELECT dateline FROM " . TABLE_PREFIX . "post where userid=$post[userid] order by dateline asc limit $experience_bef, 18446744073709551615 "); //barre hp $premierpost=0; $ancienpost=0; $nouveaupost=0; $post[hp]=$post[hp_max]; while ($derpost = $DB_site->fetch_array($derposts)) { if (!$premierpost) { $ancienpost = $premierpost = $derpost[dateline]; } else { $nouveaupost = $derpost[dateline]; $diff_post=($nouveaupost-$ancienpost)/(3600*24); if ($diff_post>1) { $post[hp]-=floor($diff_post); $post[hp]=iif($post[hp]<0, '0', $post[hp]); } elseif ($diff_post<=1) { $post[hp]++; $post[hp]=iif($post[hp]>$post[hp_max], $post[hp_max], $post[hp]); } $ancienpost=$nouveaupost; } } $diff_post=(TIMENOW-$ancienpost)/(3600*24); if ($diff_post>1) { $post[hp]-=floor($diff_post); $post[hp]=iif($post[hp]<0, '0', $post[hp]); } elseif ($diff_post<=1) { $post[hp]++; $post[hp]=iif($post[hp]>$post[hp_max], $post[hp_max], $post[hp]); } $post[perhp]=floor(100*$post[hp]/$post[hp_max]); $post[perhp1]=100-$post[perhp]; //barre mp $derthreads=$DB_site->query(" SELECT dateline FROM " . TABLE_PREFIX . "thread where postuserid='$post[userid]' and dateline>='$premierpost' order by dateline asc "); $ancienthread=0; $nouveauthread=0; $post[mp]=$post[mp_max]; while ($derthread = $DB_site->fetch_array($derthreads)) { if (!$ancienthread) { $ancienthread = $derthread[dateline]; } else { $nouveauthread = $derthread[dateline]; $diff_thread=($nouveauthread-$ancienthread)/(3600*24); if ($diff_thread>1) { $post[mp]-=floor($diff_thread); $post[mp]=iif($post[mp]<0, '0', $post[mp]); } elseif ($diff_thread<=1) { $post[mp]++; $post[mp]=iif($post[mp]>$post[mp_max], $post[mp_max], $post[mp]); } $ancienthread=$nouveauthread; } } $diff_thread=(TIMENOW-$ancienthread)/(3600*24); if ($diff_thread>1) { $post[mp]-=floor($diff_thread); $post[mp]=iif($post[mp]<0, '0', $post[mp]); } elseif ($diff_thread<=1) { $post[mp]++; $post[mp]=iif($post[mp]>$post[mp_max], $post[mp_max], $post[mp]); } $post[permp]=floor(100*$post[mp]/$post[mp_max]); $post[permp1]=100-$post[permp]; } //hack level par akex - http://forum.vbulletin-france.com
<td width="100%"> </td>
<table cellpadding="0" cellspacing="1" border="0"><tr><td> <fieldset class="fieldset" > <legend>المستوى : $post[niveau]</legend> <table cellpadding="0" cellspacing="1" border="0" width="100%"> <tr> <td><span class="smallfont">HP : $post[hp]/$post[hp_max]</span> </td> <td> <table cellpadding="0" cellspacing="0" width="100" border="0" bordercolor="#000000" style="border: 1px solid #000000;"><tr height="8"><td width="$post[perhp]" background="images/barres/hp.gif"></td> <if condition="$post[perhp1]"> <td width="$post[perhp1]"></td></if></tr></table> </td></tr> <tr> <td><span class="smallfont">MP : $post[mp]/$post[mp_max]</span> </td> <td> <table cellpadding="0" cellspacing="0" width="100" border="0" bordercolor="#000000" style="border: 1px solid #000000;"><tr height="8"><td width="$post[permp]" background="images/barres/mp.gif"></td> <if condition="$post[permp1]"> <td width="$post[permp1]"></td></if></tr></table> </td></tr> <tr> <td><span class="smallfont">EXP : $post[exp]/$post[exp_max]</span> </td> <td> <table cellpadding="0" cellspacing="0" width="100" border="0" bordercolor="#000000" style="border: 1px solid #000000;"><tr height="8"><td width="$post[perexp]" background="images/barres/exp.gif"></td> <if condition="$post[perexp1]"> <td width="$post[perexp1]"></td></if></tr></table> </td></tr> </table> </fieldset> </td></tr></table>
<if condition="$post['age']"><tr> <td align="right"><span class="smallfont">$vbphrase[age] :</span></td> <td align="right"><span class="smallfont">$post[age]</span></td> </tr></if> </tr> </table> </fieldset>
eval('$navbar = "' . fetch_template('navbar') . '";');
// Hack: most active user $start = TIMENOW - TIMENOW % 86400; $end = $start + 86400; $maxposter = $DB_site->query_first("SELECT user.username,user.userid,count(*) total FROM ".TABLE_PREFIX."user AS user,".TABLE_PREFIX."post AS post WHERE user.userid=post.userid AND post.dateline BETWEEN $start AND $end GROUP BY post.userid ORDER BY total DESC LIMIT 1"); eval('$navbar = "' . fetch_template('navbar') . '";');
<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div> <if condition="$maxposter[userid]"><div><phrase 1="member.php?$session[sessionurl]u=$maxposter[userid]" 2="$maxposter[username]">$vbphrase[most_active_user_in_forums]</phrase></div></if>