diff options
author | Arun Persaud <arun@nubati.net> | 2014-03-08 22:23:39 -0800 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2014-03-08 22:26:07 -0800 |
commit | dd925069d7ffca64f28017ec62e8ebe5abba5d32 (patch) | |
tree | e9d412981dce667d4fd9d33ecb0978b4942792ff /include/user.php | |
parent | 72bdb543759b5ffbdf5c2cc71294ad4f1f2996b2 (diff) | |
download | e-DoKo-dd925069d7ffca64f28017ec62e8ebe5abba5d32.tar.gz e-DoKo-dd925069d7ffca64f28017ec62e8ebe5abba5d32.tar.bz2 e-DoKo-dd925069d7ffca64f28017ec62e8ebe5abba5d32.zip |
Only show new players from the last 45 days
should be enough to get them playing in new games.
Diffstat (limited to 'include/user.php')
-rw-r--r-- | include/user.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/user.php b/include/user.php index 764c694..7acf726 100644 --- a/include/user.php +++ b/include/user.php @@ -314,11 +314,14 @@ else if($count<10) echo '<p class="newbiehint">'._('You can start new games using the link in the top right corner!')."</p>\n"; - /* display last 5 users that have signed up to e-DoKo */ + /* display last 5 users that have signed up to e-DoKo within the 45 days */ $names = DB_get_names_of_new_logins(5); - echo '<h4>'._('New Players').":</h4>\n<p>\n"; - echo implode(", ",$names).",...\n"; - echo "</p>\n"; + if ($names) + { + echo '<h4>'._('New Player(s)').":</h4>\n<p>\n"; + echo implode(", ",$names).",...\n"; + echo "</p>\n"; + }; /* display last 5 users that logged on */ echo '<h4>'._('Players last logged in').":</h4>\n<p>\n"; |