• 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.

Hướng dẫn hiện 5 thành viên post bài nhiều nhất cho phpbb3

Admin

Well-Known Member
Staff member
Administrator
Sửa index.php
$sql ='SELECT user_id, username, user_colour, user_posts FROM ' . USERS_TABLE . 'WHERE user_type IN (' . USER_NORMAL . ', ' . USER_FOUNDER .') AND user_posts
> 0 ORDER BY user_posts DESC'; $result = $db->sql_query_limit($sql, 5);// Sửa số 5 thay đổi số lượng while ($row = $db->sql_fetchrow($
result)){
$template->assign_block_vars('top_posters', array('USERNAME' =>get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']),'POSTS' => $row['user_posts'],));}
Code index_body.html cho prosilver
<div class="forumbgforumbg-table"><div class="inner"><span class="corners-top"><span></span></span><table class="table1" cellspacing="1"> <thead>
<tr>
<th class="name"><span class="rank-img">{L_POSTS}</span>{L_POSTER}</th>
</tr>
</thead>
<tbody>
<!-- BEGIN top_
posters -->
<tr class="<!-- IF top_posters.S_ROW_COUNT is even -->bg1<!--ELSE -->bg2<!--ENDIF -->"><td><span class="{S_CONTENT_FLOW_END}-column">&nbsp;{top_posters.POSTS}</span>{top_posters.USERNAME}</td>
</tr>
<!-- END top_posters --></tbody>
</table>
<span class="corners-bottom"><span></span></span></div>
</div>
Code index_body.html của subsilver2
<table class="tablebg" width="100%" cellspacing="1">
<tr>
<th>{L_POSTER}
</th>
<th>{L_POSTS}
</th>
</tr>
<!-- BEGIN top_
posters -->
<tr>
<td class="row1"> {top_posters.USERNAME}</td>
<td class="row2">
{top_posters.POSTS}</td>
</tr>
<!-- END top_
posters -->
</table>
 
Là sau không hiểu anh

----------> Bổ sung bài viết lúc 08:07 <----------> Bài viết trước lúc 08:05 <----------

Muốn lấy code sau lấy anh anh quote đâu được
 

Facebook Comments

Similar threads

New posts New threads New resources

Back
Top