22- هاك المستوى
إفتح ملف/ includes/functions_showthread.php
إبحث عن/
كود PHP:
$post['posts'] = vb_number_format($post['posts']);
ضف بعده /
كود PHP:
//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
أفتح تمبلت / postbit أو postbit_legacy
أبحث عن /
كود PHP:
<td width="100%"> </td>
أستبدله بالكود التالي/
كود PHP:
<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>
افتح تمبلت / postbit_legacy
ابحث عن/
كود PHP:
<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>
أضف بعده/
كود PHP:
<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>
مجلد images في المنتدى
مواقع النشر (المفضلة)