eheradya
Joined: 18 Oct 2007 Posts: 1 User's local time: 2024 Sep 11 - 10:24 AM Country IP : Country of choice:
Was This Post Helpful?
Users postingpoints:
Posts points:
Post gradiation:
|
Posted: Thu Oct 25, 2007 8:02 am Post subject: |
|
|
Hi Wicher. I have a some question.
But I don't speak English. So sorry..
I use 'Was This Post/Topic Helpful' mod.
It's very good mod I think.
View attached image Index part,
top_helpfulpoints.POSTER_NUM, POSTER_NAME and POSTER_POINTS shows on Index.
Quote: |
reply top code index.php
//------------------------------------------------------------------------- reply top
$sql="SELECT user_id,username,user_helpfulpoints FROM " . USERS_TABLE . " WHERE user_id > 0 AND user_id NOT IN (2) ORDER BY user_helpfulpoints DESC LIMIT $ezm_m[13]";
if (!($result = $db->sql_query($sql))) {
message_die(GENERAL_ERROR, 'TOP POSTER 정보 쿼리실패', '', __LINE__, __FILE__, $sql);
}
$num = 1;
while ($row = $db->sql_fetchrow($result)) {
$template->assign_block_vars('top_helpfulpoints', array(
'POSTER_NUM' => $num++,
'POSTER_NAME' => $row['username'],
'POSTER_POINTS' => $row['user_helpfulpoints'],
'POSTER_URL' => append_sid("profile.php?mode=viewprofile&u=".$row['user_id']))
);
} |
Quote: |
reply top code index_body.tpl
<BEGIN>
<tr>
<td> <span>{top_helpfulpoints.POSTER_NUM} : <a><span>{top_helpfulpoints.POSTER_NAME}</a><span> ({top_helpfulpoints.POSTER_POINTS})
</td>
</tr>
<END> |
But I want show TOPIC_ID, TOPIC_TITLE and TOPIC_HELPFUL_POINTS such as 'reply top' part on Index.
Is it possible? |
|