From: Arun Persaud Date: Sun, 18 Jan 2009 07:08:29 +0000 (-0800) Subject: CLEANUP: changed the user page a bit and added a hint for newbies X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=commitdiff_plain;h=b22032b3181b49cf01ef66217316a7b78b5045c9 CLEANUP: changed the user page a bit and added a hint for newbies started adding hints for newbies (to edoko not doko) on how to use the program --- diff --git a/css/standard017.css b/css/standard017.css index 52e4449..c9524d8 100644 --- a/css/standard017.css +++ b/css/standard017.css @@ -591,3 +591,7 @@ table.stats th { border-bottom: solid 0.2em #000 } .login .submitbutton { background-color: #fff;} .login .submitbutton:hover { background-color: #aaa;} + +.newbiehint { + background-color: #fee; +} \ No newline at end of file diff --git a/include/user.php b/include/user.php index be0d68a..3b5303c 100644 --- a/include/user.php +++ b/include/user.php @@ -108,11 +108,12 @@ else /* display all games the user has played */ echo "
"; echo "

These are all your games:

\n"; + /* output legend */ echo "

Session:
\n"; echo " p = pre-game phase "; echo "P = game in progess "; - echo "F = game finished "; - echo " N = game finished, hand played by others too
"; + echo "E = game ended "; + echo "N = N games with same hand
"; echo "

\n"; $output = array(); @@ -124,9 +125,11 @@ else " ORDER BY G.session,G.create_date" ); $gamenrold = -1; + $count = 0; echo "\n \n
\n"; while( $r = DB_fetch_array($result)) { + $count++; $game = DB_format_gameid($r[1]); $gamenr = (int) $game; if($gamenrold < $gamenr) @@ -145,7 +148,7 @@ else { echo " "; if($r[5]<2) - echo "F "; + echo "E "; else echo $r[5]; echo "\n"; @@ -173,6 +176,10 @@ else } echo "
\n"; + /* give a hint for new players */ + if($count<10) + echo "

You can start new games using the link in the top right corner!

\n"; + /* display last 5 users that have signed up to e-DoKo */ $names = DB_get_names_of_new_logins(5); echo "

New Players:

\n

\n";