• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

top memberv1.5

G4M

New Member
Hêhê!không biết nói sao nên đặt liều 1.5 vậy.gồm top:chat room,bình luận,karma,diễn đàn,top thành viên.

Chèn code dưới đây vào chỗ muốn hiển thị.

PHP:
function get_top($order = 'postforum') {   global $lng;   $req = mysql_query("SELECT * FROM `users` WHERE `$order` > 0 ORDER BY `$order` DESC LIMIT5");   if (mysql_num_rows($req)) {       $out = '';       $i = 0;       while ($res = mysql_fetch_assoc($req)) {           $out .= $i % 2 ? '<div class="list2">' : '<div class="list1">';           $out .= functions::display_user($res, array ('header' => ('<b>' .$res[$order]) . '</b>')) . '</div>';           ++$i;       }       return $out;   } else {       return '<div class="menu"><p>' .$lng['list_empty'] . '</p></div>';   }}$menu = array (   (!$mod ? '<b>' . $lng['forum']. '</b>' : '<a href="index.php?act=top#TopTV">' . $lng['forum'] . '</a>'),   ($mod == 'guest' ? '<b>' .$lng['guestbook'] . '</b>' : '<a href="index.php?act=top&amp;mod=guest#TopTV">' .$lng['guestbook'] . '</a>'),   ($mod == 'comm' ? '<b>' .$lng['comments'] . '</b>' : '<a href="index.php?act=top&amp;mod=comm#TopTV">' .$lng['comments'] . '</a>'));if ($set_karma['on'])   $menu[] = $mod == 'karma'? '<b>' . $lng['karma'] . '</b>' :'<a href="index.php?act=top&amp;mod=karma#TopTV">' .$lng['karma'] . '</a>';switch ($mod) {   case 'guest':                   echo '<h3 class="t">Top ChatRoom</h3>';       echo '<div class="rmenu">' . functions::display_menu($menu) . '</div>';       echo get_top('postguest');       break;   case 'comm':                   echo '<h3 class="t">Top B�nh Luận</h3>';       echo '<div class="rmenu">' . functions::display_menu($menu) . '</div>';       echo get_top('komm');       break;   case 'karma':                   echo 'Top Karma';           echo '<div class="rmenu">' . functions::display_menu($menu) . '</div>';           $req = mysql_query("SELECT *, (`karma_plus` - `karma_minus`) AS `karma` FROM `users` WHERE (`karma_plus` - `karma_minus`) > 0 ORDER BY `karma` DESC LIMIT 9");           if (mysql_num_rows($req)) {               $i = 0;               while ($res = mysql_fetch_assoc($req)) {                   echo $i % 2 ? '<div class="list2">' : '<div class="list1">';                   echo functions::display_user($res, array ('header' => ('<b>' .$res['karma']) . '</b>')) . '</div>';                   ++$i;               }           } else {               echo '<div class="menu"><p>' .$lng['list_empty'] . '</p></div>';           }       }       break;   default:       echo 'Top diễnđ�n';       echo '<div class="rmenu">' . functions::display_menu($menu) . '</div>';       echo get_top('postforum');}
 

Facebook Comments

New posts New threads New resources

Back
Top