المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : [هاك] المستوى ...... جاهز الأن للتحميل


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

عاابر
30-09-2004, 07:22 PM
الهاك الذي ذكره الاخ مرفق لعيوون اعضاء ميعادي

Me3ady
01-10-2004, 02:24 AM
تسلم أخوي
www.me3ady.com/vb3hack.html

max-n
02-10-2004, 03:22 AM
thank you:o

عرب سوفت
02-10-2004, 06:08 PM
مشكور اخوي على المشاركه الرائعه

تحياتي عرب سوفت:)

naifzzzz
13-03-2005, 03:05 AM
بسم الله الرحمن الرحيم
شكراً على الهاك الجميل :: سؤال إذا كان ممكن على إي إصدار يركب الهاك وأشكركم

نشمي
13-03-2005, 11:16 AM
هل يتوافق مع هذه النسخة (vBulletin 3.0.1)

وهل يسبب في بطء

الف شكر يالغالي

نشمي

ali95
13-03-2005, 11:45 PM
الهاك الذي ذكره الاخ مرفق لعيوون اعضاء ميعادي


الحمد لله والصلاة وسلام على رسول الله وعلى آله وصحبه أجمعين
شكراُ لك اخي الكريم على هذا المقال

نشمي
15-03-2005, 01:00 AM
هل يتوافق مع هذه النسخة (vBulletin 3.0.1)

وهل يسبب في بطء



ماحد جاوبني ............ ؟

الف شكر يالغالي

نشمي

alhumaly
24-03-2005, 06:45 AM
مشكووووووووووووووووووور يعطيك العافية انشاء الله

HeRNan crEspO
28-03-2006, 02:24 AM
الف شكر ياغالى
انا جربته واشتغل

IRAQSUN
01-04-2006, 12:45 PM
الف شكر ياغالى
انا جربته واشتغل
اشكرك الله يعطيك العافيه

suskey
09-01-2007, 10:51 PM
تسلم على المجهود

alex_prince
18-02-2007, 04:32 AM
شكرا ليك جداااااااااااا

mahmoud fayed
17-05-2007, 01:47 AM
شكرا لك اخى الكريم