 01-26-2007, 12:46 PM |
| |
[هاك] أفضل خمس أعضاء بالقسم للــvb3  هاك بسيط جدا جدا عمل الهاك : اظهار افضل خمسة أعضاء بكل قسم. صاحب الهاك : عدام all the vb وقت التركيب : من 2 الى 4 دقائق. بالنسبه كمبيوتري مخبط حده ولاعندى برنامج صور خخخخ وحتى الرسام مايشتغل فياليت من اول واحد يركبه يحط مثال للاعضاء هاك بسيط جدا عمل الهاك : اظهار افضل خمسة أعضاء بكل قسم وقت التركيب : من 2 الى 4 دقائق طريقة التركيب : 1. افتح ملف forumdisplay.php -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ وابحث عن : -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ كود PHP: $lastread = $bbuserinfo['lastvisit'];
} -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ بعده اضف: -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ كود PHP: $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') . '";'); }
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ وابحث عن: -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ كود PHP: 'forumhome_lastpostby',
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ فوقه اضف : -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ كود PHP: 'forumdisplay_topposter',
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 2. افتح تمبلت (forumdisplay) -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ وابحث عن : -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ بعده اضف : -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ كود PHP: <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[left]">المشاركات</td> $topposter </table> <br />
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 3 اضف تمبلت جديد : بأسم : forumdisplay_topposter -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ واضف بداخله : -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ كود PHP: <tr> <td class="alt1Active" align="$stylevar[left]" 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>
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ومبروك عليك الهاك -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |