show users point in admin panel

Hi All
to show the points of users in admin panel
Goto : themes/admin/default and open “users.php”

go to line 146 and click enter to start a new line & add this:

<th>POINTS</th>

go to line 158 and click enter to start a new line & add this:

<td><?php echo $one["points"]; ?> </td>

Now when you explore the users you can see the points for each user.

Hope that’s will help, Regards, :)

Comments

  • edited November 2016
    If you don't like the full range php float type value like 123.0036569 you can use a php function round to format the value to an appropriated and more fance format, for example:
    <?php echo round($one["points"],3); ?> 
    Turns the 123.0036569 to 123.004
  • @Megaclique thank you. Like this is better.
  • If you don't like the full range php float type value like 123.0036569 you can use a php function round to format the value to an appropriated and more fance format, for example:

    <?php echo round($one["points"],3); ?> 
    Turns the 123.0036569 to 123.004

    <3
  • If you don't like the full range php float type value like 123.0036569 you can use a php function round to format the value to an appropriated and more fance format, for example:

    <?php echo round($one["points"],3); ?> 
    Turns the 123.0036569 to 123.004
    Thank you megaclique,

    you may use this
    <?php echo floor($one["points"]); ?> 
    Turns the 123.0036569 to 123
Sign In or Register to comment.