adding some "chat-like" functionality
authorPaul J R <me@pjr.cc>
Fri, 12 Oct 2012 08:11:15 +0000 (19:11 +1100)
committerPaul J R <me@pjr.cc>
Fri, 12 Oct 2012 08:11:15 +0000 (19:11 +1100)
gwvpmini/gwvpmini.php
gwvpmini/gwvpmini_web.php

index 7b23820..e3521f3 100644 (file)
@@ -11,6 +11,7 @@ require_once("gwvpmini_view.php");
 require_once("gwvpmini_activity.php");
 require_once("gwvpmini_register.php");
 require_once("gwvpmini_user.php");
+require_once("gwvpmini_chat.php");
 if($IS_WEB_REQUEST) {
        if(gwvpmini_isLoggedIn()) if(gwvpmini_isUserAdmin()) {
                require_once("gwvpmini_admin.php");
index 4251fb6..850ebfd 100644 (file)
@@ -119,7 +119,9 @@ function gwvpmini_goMainPage($bodyFunction = null)
        
        echo "</tr>";
        
-       echo "<tr><td colspan=\"2\">";
+       echo "<tr><td colspan=\"4\">";
+       
+       echo "<table><tr><td>";
        if($bodyFunction == null) {
                gwvpmini_BodyBuilder();
        } else {
@@ -130,6 +132,12 @@ function gwvpmini_goMainPage($bodyFunction = null)
                        gwvpmini_BodyBuilder();
                }
        }
+       
+       echo "</td><td align=\"right\">";
+       
+       gwvpmini_ChatBuilder();
+       echo "</td></tr></table>";\r
+       
        echo "</td></tr>";
        
        echo "<tr><td>";
@@ -161,6 +169,11 @@ function gwvpmini_MessageBuilder()
        }
 }
 
+function gwvpmini_ChatBuilder()
+{
+       gwvpmini_DisplayChat();
+}
+
 // builds the menu structure
 function gwvpmini_MenuBuilder()
 {