[mythtv] mythweb

Grant Taylor mythtv-dev@snowman.net
Mon, 16 Sep 2002 15:18:53 -0400


Looks like mythweb is right on track to be a nifty interface.  I like
the search feature.

Are the colors supposed to mean anything?  The meaningful recording
factoid is shown with a red outline, but the red outline is made hard
to see by the rainbow of colors.

The descriptions appear to be of random and unbounded length; so
having them in tends to make many listings pages render as uneven
horizontally-scrolled tables.  It might be good to truncate the
descriptions or use a teeny font or something.

I'm running the php stuff on a different machine from mysql/mythtv.
This works, but it took me forever to get mysql to cooperate.  The
GRANT command appears to be broken in my install; I had to use
explicit inserts and such on the "user" admin table.  Hmph.  Now that
I've figured it out, I think I'll move mysql itself to my real server
off of my tv machine, as too many queries seem to make the video skip!

Here's a little tweak to make the quotes be a setting.  They're huge,
and right at the top, so I don't like them ;)


Index: banner.php
===================================================================
RCS file: /var/lib/cvs/mythweb/banner.php,v
retrieving revision 1.3
diff -t -u -r1.3 banner.php
--- banner.php	12 Sep 2002 02:55:37 -0000	1.3
+++ banner.php	16 Sep 2002 19:04:26 -0000
@@ -54,19 +54,21 @@
         //
         //      Work in a random quote (anybody got more of these?)
         //
-        
-        $aNumber = rand(1,3);
-        switch($aNumber)
-        {
-                case 1:
-                        printQuote("Basically, I want the mythical convergence box that's been talked about for a few years now.", "- Isaac Richards", $main_fontface, $main_fontsize, $main_fg_colour);
-                        break;
-                case 2:
-                        printQuote("Anytime you skip a commercial ... you're actually stealing the programming.", "- Jamie Kellner (CEO, Turner Broadcasting)", $main_fontface, $main_fontsize, $main_fg_colour);
-                        break;
-                case 3:
-                        printQuote("I say to you that the VCR is to the ... American public as the Boston strangler is to the woman home alone.", "- Jack Valenti", $main_fontface, $main_fontsize, $main_fg_colour);
-                        break;
+                
+        if ($pithyQuotes == "TRUE") {
+                $aNumber = rand(1,3);
+                switch($aNumber)
+                {
+                        case 1:
+                             printQuote("Basically, I want the mythical convergence box that's been talked about for a few years now.", "- Isaac Richards", $main_fontface, $main_fontsize, $main_fg_colour);
+                             break;
+                        case 2:
+                             printQuote("Anytime you skip a commercial ... you're actually stealing the programming.", "- Jamie Kellner (CEO, Turner Broadcasting)", $main_fontface, $main_fontsize, $main_fg_colour);
+                             break;
+                        case 3:
+                             printQuote("I say to you that the VCR is to the ... American public as the Boston strangler is to the woman home alone.", "- Jack Valenti", $main_fontface, $main_fontsize, $main_fg_colour);
+                             break;
+                }
         }
         print("<BR>");
         //
Index: settings.php
===================================================================
RCS file: /var/lib/cvs/mythweb/settings.php,v
retrieving revision 1.4
diff -t -u -r1.4 settings.php
--- settings.php	12 Sep 2002 16:47:46 -0000	1.4
+++ settings.php	16 Sep 2002 19:04:26 -0000
@@ -22,7 +22,7 @@
         //      How to access the database
         //
 
-        $db_host        = "localhost";
+        $db_host        = "ancho";
         $db_username    = "mythtv";
         $db_password    = "mythtv";
         $db_dbname      = "mythconverg";
@@ -33,6 +33,8 @@
         
         $timeSlots              = 6;            // How many 30 minute columns to display 
         $includeDescription     = "TRUE";       // Anything but "TRUE" is false
+
+        $pithyQuotes            = "TRUE";      // Include irritating quotes in header
 
         //
         //      Default Search


--
Grant Taylor - gtaylor@picante.com - http://www.picante.com/~gtaylor/
    Linux Printing Website and HOWTO:  http://www.linuxprinting.org/