CLEANUP: changed the user page a bit and added a hint for newbies
authorArun Persaud <arun@nubati.net>
Sun, 18 Jan 2009 07:08:29 +0000 (23:08 -0800)
committerArun Persaud <arun@nubati.net>
Sun, 18 Jan 2009 07:08:29 +0000 (23:08 -0800)
started adding hints for newbies (to edoko not doko) on how to use the program

css/standard017.css
include/user.php

index 52e44497a1b0f6a227a335fbe7ff849d80847c8a..c9524d8b98c8e65a812100f43326a5f40cf83cdb 100644 (file)
@@ -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
index be0d68a5b08740252cbe3f7af9fa13f236b3b5db..3b5303c2cf4a73fc2b8b3fa02dc249ea327f1612 100644 (file)
@@ -108,11 +108,12 @@ else
        /* display all games the user has played */
        echo "<div class=\"user\">";
        echo "<h4>These are all your games:</h4>\n";
+       /* output legend */
        echo "<p>Session: <br />\n";
        echo "<span class=\"gamestatuspre\"> p </span> =  pre-game phase ";
        echo "<span class=\"gamestatusplay\">P </span> =  game in progess ";
-       echo "<span class=\"gamestatusover\">F </span> =  game finished ";
-       echo "<span class=\"gamestatusover multi\"><a> N</a> </span> =  game finished, hand played by others too <br />";
+       echo "<span class=\"gamestatusover\">E </span> =  game ended ";
+       echo "<span class=\"gamestatusover multi\"><a>N</a> </span> =  N games with same hand <br />";
        echo "</p>\n";
 
        $output = array();
@@ -124,9 +125,11 @@ else
                           " ORDER BY G.session,G.create_date" );
 
        $gamenrold = -1;
+       $count = 0;
        echo "<table>\n <tr><td>\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 "   <span class=\"gamestatusover $Multi\"><a href=\"".$INDEX."?action=game&amp;me=".$r[0]."\">";
              if($r[5]<2)
-               echo "F ";
+               echo "E ";
              else
                echo $r[5];
              echo "</a></span>\n";
@@ -173,6 +176,10 @@ else
          }
        echo "</td></tr>\n</table>\n";
 
+       /* give a hint for new players */
+       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 */
        $names = DB_get_names_of_new_logins(5);
        echo "<h4>New Players:</h4>\n<p>\n";