Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Spacing

  • Loading branch information...
commit f28e3fa4bfb0e69560c21431d541c2a9be578d92 1 parent 8fb59fd
David Haywood Smith authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 plugins/points.php
8 plugins/points.php
View
@@ -46,15 +46,21 @@ function update($user_id, $points) {
function view() {
if ($id == $_SESSION['user_id']) {
- echo '<p>You have ' . $user['points'] . ' ' . $this->plugins->points['name'] . '!</p>';
+
+ echo '<p>You have ' . $user['points'] . ' ' . $this->plugins->points['name'] . '!</p>';
+
if ($this->plugins->points['leaderboard'] == TRUE) {
echo '<p class="small">Where do you rank on the <a href="leaderboard.php">leaderboard</a>?</p>';
}
+
} else {
+
echo '<p>' . $user['username'] . ' has ' . $user['points'] . ' ' . $this->plugins->points['name'] . '!</p>';
+
if ($this->plugins->points['leaderboard'] == TRUE) {
echo '<p class="small">See where they rank on the <a href="leaderboard.php">leaderboard</a>.</p>';
}
+
}
echo '<p>&nbsp;</p>';
Please sign in to comment.
Something went wrong with that request. Please try again.