New articles Năng lực quản lý: nhân tố thứ năm     ♥ Lựa chọn mục tiêu cuộc đời     ♥ 10 bí quyết cân bằng công việc và gia đình     ♥ Cô đơn trên mạng     ♥ Chứng khoán: Giấc mơ và ác mộng     ♥ Tám     ♥ Những tính năng của blog VnVista     ♥ Các mạng xã hội thống trị Google     ♥ Điều gì tạo nên một giám đốc công nghệ thông tin giỏi?     ♥ Cố gắng xóa bỏ những ấn tượng xấu     ♥ Cần một cách làm ăn mới     ♥ Tiếp thị hướng đến doanh nhân     ♥ Đưa cửa hàng thật lên chợ ảo     ♥ Bí quyết quản lý các nhân viên trẻ     ♥ Một số câu hỏi phỏng vấn “đặc biệt” của Microsoft     ♥ 4 bài học thành công trong kinh doanh     ♥ Tạo dựng hình ảnh một cô gái trẻ chuyên nghiệp     ♥ Góc “khác” của thế giới online đêm     ♥ Phong cách người Mỹ     ♥ Chỉ nghĩ đến tiền cũng làm người ta ích kỷ     
New blog entries SHEET Giây phút êm đềm      ♥ Máy Triệt Lông Công Nghệ Cao K18A      ♥ Cách chọn giày bảo hộ tại Đà Nẵng      ♥ hình ảnh Yae Miko Game Genshin Impact      ♥ Cách bảo quản và vệ sinh giày bảo hộ lao động      ♥ SHEET Yêu 1 người sao buồn đến thế      ♥ Bí quyết bảo quản giày bảo hộ lao động      ♥ Máy Triệt Lông Lạnh Diode Laser K17      ♥ Công Nghệ Đùn Ống Nhựa Với Hạt Nhựa Nguyên Sinh      ♥ SHEET Xin cho 1 tiếng kinh cầu      ♥ máy nâng cơ xóa nhăn      ♥ Top 5 dầu gội thảo dược Việt nam 2025      ♥ Nhà phân phối giày bảo hộ tại Đà Nẵng uy tín      ♥ Máy Laser 1450nm Noable Triệt Dầu - Trị Mụn      ♥ Những ích lợi từ dầu gội thảo dược trị gàu      ♥ Công ty bảo hộ lao động tại Nghệ An uy tín      ♥ SHEET Vì em quá yêu anh      ♥ Unlock Your Medical Career with the MCCQE Part 1:      ♥ So sánh các thương hiệu giày bảo hộ hàng đầu      ♥ SHEET Quê hương tình yêu và tuổi trẻ      

Liệt Kê · Bình Thường · [ Tách Biệt+ ]

Top 5 diễn đàn


billythekids
post Jan 31 2006, 10:24 AM
Gửi vào: #1


Group Icon

Phó phòng
****
Thành viên: 632
Nhập: 8-December 05
Bài viết: 113
Tiền mặt: 16
Thanked: 1
Cấp bậc: 9
------
Giới tính: Male
------
Xem blog
Bạn bè: 0
Thêm vào nhóm bạn bè
Gửi thiệp điện tử
Trang thông tin





Tác giả: Dean
* CHMOD 755 cho file d2_top5_install.php xong rùi chạy
* Mở sources/boards.php, tìm
CODE

 //-----------------------------------------
       // What are we doing?
       //-----------------------------------------


Thêm phía trên
CODE
    //-----------------------------------------
       // Display Top 5 Statistics Module
       //-----------------------------------------

   if ($ibforums->cache['group_cache'][$ibforums->member['mgroup']]['g_view_t5bs'] == 1)
   {
 $cids = ','.$std->my_getcookie('collapseprefs').',';
 $t5bs['open'] = 'show';
 $t5bs['close'] = 'none';
 if (strstr($cids, ',t5bs,'))
 {
     $t5bs['open'] = 'none';
     $t5bs['close'] = 'show';
 }
 $this->output = str_replace("<!--TOP5STATS-->", $this->html->top_five_stats($this->statfunc->top_5_stats(), $t5bs), $this->output);
   }


* Mở sources/lib/boardstats_functions.php, tìm:
CODE

/*-------------------------------------------------------------------------*/
   //
   // DISPLAY ACTIVE USERS
   //
   /*-------------------------------------------------------------------------*/


Thêm phía trên
CODE
/*-------------------------------------------------------------------------*/
   //
   // Calculate & Display Top 5 Statistics Table
   //
   /*-------------------------------------------------------------------------*/

   function top_5_stats()
   {
 global $ibforums, $DB, $std, $forums;

 if ($ibforums->cache['group_cache'][$ibforums->member['mgroup']]['g_view_t5bs'] == 1)
 {
     $data = array();
     $aforums = array();
     $aforums[] = '0';
     foreach($forums->forum_by_id as $k => $v)
     {
   $aforums[] = $v['id'];
     }
     $allow_forums = implode(",", $aforums);

     if (!$ibforums->member['is_mod'])
     {
   $approved = 'and approved=1';
     }
     else
     {
   $approved = '';
     }

     $DB->simple_construct(array('select' => '*', 'from' => 'members', 'where' => 'posts>0', 'order' => 'posts DESC', 'limit' => array(0, 5)));
     $DB->simple_exec();
     if ($DB->get_num_rows())
     {
   while ($r = $DB->fetch_row())
   {
       $text = str_replace("{name}", $r['name'], $ibforums->lang['top_five_posts_text']);
       $text = str_replace("{posts}", $std->do_number_format($r['posts']), $text);
       $data['top_posters'] .= "<tr><td width='80%' align='left'><a href='{$ibforums->base_url}showuser={$r['id']}' title='{$text}\n{$ibforums->lang['top_five_view_my_profile']}'>{$ibforums->cache['group_cache'][$r['mgroup']]['prefix']}{$r['name']}{$ibforums->cache['group_cache'][$r['mgroup']]['suffix']}</a></td><td align='center' width='20%'><a href='{$ibforums->base_url}act=search&CODE=getalluser&mid={$r['id']}'>".$std->do_number_format($r['posts'])."</a></td></tr>";
   }
     }
     else
     {
   $data['top_posters'] = "<tr><td align='center' width='100%' colspan='2'>{$ibforums->lang['top_five_not_available']}</td></tr>";
     }

     $DB->simple_construct(array('select' => '*', 'from' => 'members', 'where' => 'id>0', 'order' => 'joined DESC', 'limit' => array(0, 5)));
     $DB->simple_exec();
     if ($DB->get_num_rows())
     {
   while ($r = $DB->fetch_row())
   {
       $text = str_replace("{name}", $r['name'], $ibforums->lang['top_five_posts_text']);
       $text = str_replace("{posts}", $std->do_number_format($r['posts']), $text);
       $data['new_members'] .= "<tr><td width='80%' class='row2' align='left'><a href='{$ibforums->base_url}showuser={$r['id']}' title='{$text}\n{$ibforums->lang['top_five_view_my_profile']}'>{$ibforums->cache['group_cache'][$r['mgroup']]['prefix']}{$r['name']}{$ibforums->cache['group_cache'][$r['mgroup']]['suffix']}</a></td><td align='center' width='20%'><a href='{$ibforums->base_url}act=search&CODE=getalluser&mid={$r['id']}'>".$std->do_number_format($r['posts'])."</a></td></tr>";
   }
     }
     else
     {
   $data['new_members'] = "<tr><td align='center' width='100%' colspan='2'>{$ibforums->lang['top_five_not_available']}</td></tr>";
     }

     $DB->simple_construct(array('select' => 't.*, m.mgroup', 'from' => "topics t LEFT JOIN ".SQL_PREFIX."members m ON (m.id=t.last_poster_id)", 'where' => 't.forum_id IN ('.$allow_forums.')'.$approved, 'order' => 't.last_post DESC', 'limit' => array(0, 5)));
     $DB->simple_exec();
     if ($DB->get_num_rows())
     {
   while ($r = $DB->fetch_row())
   {
       $text = str_replace("{name}", $r['last_poster_name'], $ibforums->lang['top_five_topics_text']);
       $text = str_replace("{topic}", $r['title'], $text);
       $data['latest_posts'] .= "<tr><td width='80%' align='left'><a href='{$ibforums->base_url}showtopic={$r['tid']}&view=getlastpost' title='{$text}'>{$r['title']}</a></td><td align='center' width='20%'><a href='{$ibforums->base_url}showuser={$r['last_poster_id']}' title='{$ibforums->lang['top_five_view_my_profile']}'>{$ibforums->cache['group_cache'][$r['mgroup']]['prefix']}{$r['last_poster_name']}{$ibforums->cache['group_cache'][$r['mgroup']]['prefix']}</a></td></tr>";
   }
     }
     else
     {
   $data['latest_posts'] = "<tr><td align='center' width='100%' colspan='2'>{$ibforums->lang['top_five_not_available']}</td></tr>";
     }

     return $data;
 }
   }


* Mở sources/admin/ad_groups.php, tìm
CODE
 'g_attach_per_post'    => $ibforums->input['g_attach_per_post'],


Thêm phía dưới
CODE
  'g_view_t5bs'  => $ibforums->input['g_view_t5bs'],


* Tìm
CODE

$ibforums->html .= $ibforums->adskin->add_td_row( array( "<b>Can use search?</b>" ,
             $ibforums->adskin->form_yes_no("g_use_search", $group['g_use_search'] )
             )      );


Thêm phía dưới
CODE
 $ibforums->html .= $ibforums->adskin->add_td_row( array( "<b>Can View Top 5 Board Stats?</b>" ,
             $ibforums->adskin->form_yes_no("g_view_t5bs", $group['g_view_t5bs'] )
             )      );


* Mở lang/en/lang_boards.php, tìm
CODE
// added in 2.0


Thêm bên dưới
CODE
'top_five_stats' => "Top 5 Statistics",
'top_five_posters' => "Top 5 Posters",
'top_five_new_mems' => "Top 5 New Members",
'top_five_latest_topics' => "Top 5 Latest Posts",
'top_five_not_available' => "<i>Not Available</i>",
'top_five_posts_text' => "{name} Has A Total Of {posts} Posts",
'top_five_topics_text' => "{name} Is The Latest Posts In The Topic: {topic}\nClick Here To View This Topic",
'top_five_view_my_profile' => "Click Here To View My Profile",



* Vào Admin CP: Skins & Templates: Skin Manager: Edit HTML: Board Index: Add New Template
- Template Name: top_five_stats
- Template Data Variables: $data, $show
- Template HTML:
CODE
<div class='borderwrap' style='display:{$show['close']}' id='fc_t5bs'>
<div class='maintitlecollapse'>
 <p class='expand'><a href="javascript:togglecategory('t5bs', 0)"><{E_PLUS}></a></p>
 <p>{ipb.lang['top_five_stats']}</p>
</div></div>
<div class='borderwrap' style='display:{$show['open']}' id='fo_t5bs'>
<div class='maintitle'>
 <p class='expand'><a href="javascript:togglecategory('t5bs', 1)"><{E_MINUS}></a></p>
 <p>{ipb.lang['top_five_stats']}</p>
</div>
<table align='center' width='100%' cellspacing='1' cellpadding='0'>
 <tr>
   <th width='32%' align='center'>{ipb.lang['top_five_posters']}</th>
   <th width='33%' align='center'>{ipb.lang['top_five_new_mems']}</th>
   <th width='35%' align='center'>{ipb.lang['top_five_latest_topics']}</th>
 </tr>
 <tr>
   <td class='row2' width='32%' valign='top'>
     <table align='left' width='100%' cellspacing='0' cellpadding='0'>
     {$data['top_posters']}
     </table>
   </td>
   <td class='row2' width='33%' valign='top'>
     <table align='left' width='100%' cellspacing='0' cellpadding='0'>
     {$data['new_members']}
     </table>
   </td>
   <td class='row2' width='35%' valign='top'>
     <table align='left' width='100%' cellspacing='0' cellpadding='0'>
     {$data['latest_posts']}
     </table>
   </td>
 </tr>
</table></div><br>


* Tiếp tục Admin CP: Skins & Templates: Skin Manager: Edit HTML: Board Index: PageTop, tìm:
CODE
</table>
<br />


Thêm bên dưới
CODE
<!--TOP5STATS-->



(Khách không được phép xem hoặc tải dữ liệu đính kèm!)


--------------------
Nhóm bạn bè:

Thành viên này chưa có người bạn nào trong mạng VnVista, nếu bạn muốn trở thành người bạn đầu tiên của thành viên này, hãy click vào đây


Cảnh cáo: (0%)----- 
Nếu bạn thấy bài viết này vi phạm nội quy forum, hãy click nút này:
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topicStart Poll
Trả Lời(1 - 5)

billythekids
post Jan 31 2006, 10:25 AM
Gửi vào: #2


Group Icon

Phó phòng
****
Thành viên: 632
Nhập: 8-December 05
Bài viết: 113
Tiền mặt: 16
Thanked: 1
Cấp bậc: 9
------
Giới tính: Male
------
Xem blog
Bạn bè: 0
Thêm vào nhóm bạn bè
Gửi thiệp điện tử
Trang thông tin





còn đây là chế thêm một chút để gắn 5 bài hát mới nhất vào chỉ dùng với mlite thui nha ko dúng cái music khác được đâu đó

làm hết các bước trên rùi giờ way lại làm thêm một số bc này nữa ai ko muốn thi thui đừng có làm demo thì chắc khỏi cứ làm đi rui biết tui chia nó ra làm 4 cột thêm vào một cột top 5 new songs nữa
ok giờ mở cái sources/lib/boardstats_functions.php, tìm:
CODE
$DB->simple_construct(array('select' => 't.*, m.mgroup', 'from' => "topics t LEFT JOIN ".SQL_PREFIX."members m ON (m.id=t.last_poster_id)", 'where' => 't.forum_id IN ('.$allow_forums.')'.$approved, 'order' => 't.last_post DESC', 'limit' => array(0, 5)));


thêm vào trước cái đó
CODE
$DB->query("SELECT * FROM ibf_mlite_songs ORDER BY s_id DESC LIMIT 5");
  $DB->simple_exec();
  if ($DB->get_num_rows())
  {
   while($s_song=$DB->fetch_row($query))
   {

switch(strtoupper($s_song['s_ext']))
{
case 'MP3': { $data[icon] = "<img src='style_images/<#IMG_DIR#>/mlite_img/mm_audio.png' title='{$s_song[ext]}'>"; } break;
case 'WMA': { $data[icon] = "<img src='style_images/<#IMG_DIR#>/mlite_img/mm_audio.png' title='{$s_song[ext]}'>"; } break;
case 'ASF': { $data[icon] = "<img src='style_images/<#IMG_DIR#>/mlite_img/mm_audio.png' title='{$s_song[ext]}'>"; } break;
case 'ASX': { $data[icon] = "<img src='style_images/<#IMG_DIR#>/mlite_img/mm_audio.png' title='{$s_song[ext]}'>"; } break;
case 'WMV': { $data[icon] = "<img src='style_images/<#IMG_DIR#>/mlite_img/mm_video.png' title='{$s_song[ext]}'>"; } break;
case 'MPG': { $data[icon] = "<img src='style_images/<#IMG_DIR#>/mlite_img/mm_video.png' title='{$s_song[ext]}'>"; } break;
case 'MPEG': { $data[icon] = "<img src='style_images/<#IMG_DIR#>/mlite_img/mm_video.png' title='{$s_song[ext]}'>"; } break;
case 'AVI': { $data[icon] = "<img src='style_images/<#IMG_DIR#>/mlite_img/mm_video.png' title='{$s_song[ext]}'>"; } break;
case 'SWF': { $data[icon] = "<img src='style_images/<#IMG_DIR#>/mlite_img/mm_flash.gif' title='{$s_song[ext]}'>"; } break;
case 'RA': { $data[icon] = "<img src='style_images/<#IMG_DIR#>/mlite_img/mm_realp.gif' title='{$s_song[ext]}'>"; } break;
case 'RM': { $data[icon] = "<img src='style_images/<#IMG_DIR#>/mlite_img/mm_realp.gif' title='{$s_song[ext]}'>"; } break;
case 'RAM': { $data[icon] = "<img src='style_images/<#IMG_DIR#>/mlite_img/mm_realp.gif' title='{$s_nsong[ext]}'>"; } break;
default: {$data[icon] = "<img src='style_images/<#IMG_DIR#>/mlite_img/mm_other.gif' title='{$ibforums->lang['N_A']}'"; } break;
}

    $data['new_song'] .= "

    <tr><td width='80%' align='left'><a href='{$ibforums->base_url}act=mlite&CODE=playsong&s_id={$s_song['s_id']}'>{$data[icon]}&nbsp;{$s_song['s_name']}</a></td><td align='left' width='20%'>{$s_song[s_artist]}</td></tr>";
   }
  }
  else
  {
   $data['new_song'] = "<tr><td align='center' width='100%' colspan='2'>{$ibforums->lang['top_five_not_available']}</td></tr>";
  }


giờ vào
Vào Admin CP: Skins & Templates: Skin Manager: Edit HTML: Board Index: top_five_stats

thay hết cái đống trong đó lại thành
CODE
<div class='borderwrap' style='display:{$show['close']}' id='fc_t5bs'>
<div class='maintitlecollapse'>
 <p class='expand'><a href="javascript:togglecategory('t5bs', 0)"><{E_PLUS}></a></p>
 <p>{ipb.lang['top_five_stats']}</p>
</div></div>
<div class='borderwrap' style='display:{$show['open']}' id='fo_t5bs'>
<div class='maintitle'>
 <p class='expand'><a href="javascript:togglecategory('t5bs', 1)"><{E_MINUS}></a></p>
 <p>{ipb.lang['top_five_stats']}</p>
</div>
<table align='center' width='100%' cellspacing='1' cellpadding='0'>
 <tr>
<th width='15%' align='center'>{ipb.lang['top_five_posters']}</th>
<th width='15%' align='center'>{ipb.lang['top_five_new_mems']}</th>
<th width='30%' align='center'>{ipb.lang['top_five_new_song']}</th>
<th width='40%' align='center'>{ipb.lang['top_five_latest_topics']}</th>
 </tr>
 <tr>
<td class='row2' width='15%' valign='top'>
  <table align='left' width='100%' cellspacing='0' cellpadding='0'>
  {$data['top_posters']}
  </table>
</td>
<td class='row2' width='15%' valign='top'>
  <table align='left' width='100%' cellspacing='0' cellpadding='0'>
  {$data['new_members']}
  </table>
</td>

<td class='row2' width='30%' valign='top'>
  <table align='left' width='80%' cellspacing='0' cellpadding='0'>
  {$data['new_song']}
  </table>
</td>

<td class='row2' width='40%' valign='top'>
  <table align='left' width='100%' cellspacing='0' cellpadding='0'>
  {$data['latest_posts']}
  </table>
</td>
 </tr>
</table></div><br>


mở tiếp lang/en/lang_boards.php, tìm:
CODE
'top_five_new_mems' => "Top 5 New Members",


thêm vào
CODE
'top_five_new_song' => "Top 5 New songs",


xong hết fin


--------------------
Nhóm bạn bè:

Thành viên này chưa có người bạn nào trong mạng VnVista, nếu bạn muốn trở thành người bạn đầu tiên của thành viên này, hãy click vào đây


Cảnh cáo: (0%)----- 
Nếu bạn thấy bài viết này vi phạm nội quy forum, hãy click nút này:
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

xXxHackerxXx
post Feb 3 2006, 03:33 PM
Gửi vào: #3
No avartar

Group Icon

Nhân viên
**
Thành viên: 1,001
Nhập: 3-February 06
Bài viết: 37
Tiền mặt: 380
Thanked: 0
Cấp bậc: 4
------
------
Xem blog
Bạn bè: 0
Thêm vào nhóm bạn bè
Gửi thiệp điện tử
Trang thông tin





hix
sao làm woài mà k0 dc zda chòi


--------------------
Nhóm bạn bè:

Thành viên này chưa có người bạn nào trong mạng VnVista, nếu bạn muốn trở thành người bạn đầu tiên của thành viên này, hãy click vào đây


--------------------
Trang wep của em nè
http://ntd.giaidieuxanh.ìno/diendan
mới tạo mà khi hack cái shout box thì nó die lun
Ai bít thì cúư em với
Em đang cần thay Skin ,Việt hoá,hack bộ gõ
Ai bít chỉ giáo


Cảnh cáo: (0%)----- 
Nếu bạn thấy bài viết này vi phạm nội quy forum, hãy click nút này:
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

xXxHackerxXx
post Feb 3 2006, 03:34 PM
Gửi vào: #4
No avartar

Group Icon

Nhân viên
**
Thành viên: 1,001
Nhập: 3-February 06
Bài viết: 37
Tiền mặt: 380
Thanked: 0
Cấp bậc: 4
------
------
Xem blog
Bạn bè: 0
Thêm vào nhóm bạn bè
Gửi thiệp điện tử
Trang thông tin





âý em làm dc roài èn
Da ta su huynh nhá


--------------------
Nhóm bạn bè:

Thành viên này chưa có người bạn nào trong mạng VnVista, nếu bạn muốn trở thành người bạn đầu tiên của thành viên này, hãy click vào đây


--------------------
Trang wep của em nè
http://ntd.giaidieuxanh.ìno/diendan
mới tạo mà khi hack cái shout box thì nó die lun
Ai bít thì cúư em với
Em đang cần thay Skin ,Việt hoá,hack bộ gõ
Ai bít chỉ giáo


Cảnh cáo: (0%)----- 
Nếu bạn thấy bài viết này vi phạm nội quy forum, hãy click nút này:
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

amOre_mIo
post Feb 7 2006, 04:48 PM
Gửi vào: #5


Group Icon

Thực tập viên
*
Thành viên: 1,026
Nhập: 6-February 06
Bài viết: 17
Tiền mặt: 264
Thanked: 0
Cấp bậc: 2
------
------
Bạn bè: 0
Thêm vào nhóm bạn bè
Gửi thiệp điện tử
Trang thông tin





file d2_top5_install.php nằm ở đâu vậy ???


--------------------
Nhóm bạn bè:

Thành viên này chưa có người bạn nào trong mạng VnVista, nếu bạn muốn trở thành người bạn đầu tiên của thành viên này, hãy click vào đây


--------------------
Mới tập làm 4r mong Tacaza và các bạn giúp đỡ thx all


Cảnh cáo: (0%)----- 
Nếu bạn thấy bài viết này vi phạm nội quy forum, hãy click nút này:
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

billythekids
post Feb 10 2006, 07:53 AM
Gửi vào: #6


Group Icon

Phó phòng
****
Thành viên: 632
Nhập: 8-December 05
Bài viết: 113
Tiền mặt: 16
Thanked: 1
Cấp bậc: 9
------
Giới tính: Male
------
Xem blog
Bạn bè: 0
Thêm vào nhóm bạn bè
Gửi thiệp điện tử
Trang thông tin





trong cái attachtment đính kèm trong bài viết đầu tiên


--------------------
Nhóm bạn bè:

Thành viên này chưa có người bạn nào trong mạng VnVista, nếu bạn muốn trở thành người bạn đầu tiên của thành viên này, hãy click vào đây


Cảnh cáo: (0%)----- 
Nếu bạn thấy bài viết này vi phạm nội quy forum, hãy click nút này:
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Thank you! Reply to this topicTopic OptionsStart new topic
 

Bản Rút Gọn Bây giờ là: 18th July 2025 - 08:41 AM
Home | Mạng xã hội | Blog | Thiệp điện tử | Tìm kiếm | Thành viên | Sổ lịch