~/dev/top_users.php / user.inc

Message boards : Web interfaces : ~/dev/top_users.php / user.inc
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile Ananas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 13339 - Posted: 28 Oct 2007, 4:59:11 UTC

What about this minor mod here :

function show_user_row($user, $i) {
    echo "
        <tr class=row1>
        <td>$i</td>
        <td>", user_links($user), "</td>
        <td>", format_credit($user->expavg_credit), "</td>
!!!     <td>", format_credit($user->posts), "</td>
        <td>", $user->country, "</td>
        <td>", time_str($user->create_time),"</td>
        </tr>
    ";
}


the line marked with "!!!", instead of showing user->total_credit use user->posts here :-)
ID: 13339 · Report as offensive

Message boards : Web interfaces : ~/dev/top_users.php / user.inc

Copyright © 2021 University of California. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.