Nsync
30-09-2004, 04:11 PM
http://www.p4arab.com/pic/bsm.gif
هاك المستوى
وظيفة الهاك هو أظهار 3 شرائط فى قائمة العضو تدل على نشاطه
http://www.w6w.com/w6w.php?pic=23438
خطوات تركيب الهاك
1- قم بأنشاء مجلد جديد داخل مجلد images بأسم barres وقم برفع الصور المرفقة داخله
2-أفتح ملف includes/functions_showthread.php وأبحث عن
eval('$retval = "' . fetch_template($maintemplatename) . '";');
قبل مباشرةً ضع الكود التالى
//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
3- أفتح تمبلت postbit_legacy أو الـ postbit حسب أستخدامك وضع الكود الذى فى اخر الصفحة قبل أى من الكودات التالية
</div>
<if condition="$show['reputationlink']">
أذا أخترت الكود السابق سيتم وضع الهاك قبل نقاط الترشيح
أو قبل هذا الكود
</div>
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
أذا أخترت الكود السابق سيتم وضع الهاك بعد نقاط الترشيح
أو أختار أى مكان يناسبك
ثم ضع الكود التالى
<table cellpadding="0" cellspacing="1" border="0"><tr><td>
<fieldset class="fieldset" >
<legend>Niveau : $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>
رابط الموضوع الأصلى
http://www.p4arab.com/vb/showthread.php?t=4115
هاك المستوى
وظيفة الهاك هو أظهار 3 شرائط فى قائمة العضو تدل على نشاطه
http://www.w6w.com/w6w.php?pic=23438
خطوات تركيب الهاك
1- قم بأنشاء مجلد جديد داخل مجلد images بأسم barres وقم برفع الصور المرفقة داخله
2-أفتح ملف includes/functions_showthread.php وأبحث عن
eval('$retval = "' . fetch_template($maintemplatename) . '";');
قبل مباشرةً ضع الكود التالى
//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
3- أفتح تمبلت postbit_legacy أو الـ postbit حسب أستخدامك وضع الكود الذى فى اخر الصفحة قبل أى من الكودات التالية
</div>
<if condition="$show['reputationlink']">
أذا أخترت الكود السابق سيتم وضع الهاك قبل نقاط الترشيح
أو قبل هذا الكود
</div>
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
أذا أخترت الكود السابق سيتم وضع الهاك بعد نقاط الترشيح
أو أختار أى مكان يناسبك
ثم ضع الكود التالى
<table cellpadding="0" cellspacing="1" border="0"><tr><td>
<fieldset class="fieldset" >
<legend>Niveau : $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>
رابط الموضوع الأصلى
http://www.p4arab.com/vb/showthread.php?t=4115