[mythtv] [PATCH] show description in status bar for mythweb

Kirby Vandivort kvandivo at ks.uiuc.edu
Sun Jun 8 00:25:56 EDT 2003


Just thought I would submit a little patch that makes browsing the listing
window a bit more pleasant in mythweb.

Essentially, if the 'statusBarDescription' variable is set to 'true' in
settings.php, the browser's status bar will display the description of
the show (if one exists) when you roll the mouse over a program title
in the listing.  I've defaulted the statusBarDescription to FALSE, so
you'll have to change this to TRUE for it to have any effect at all.





--- /cvs/version/of/mythweb/classes.php	2003-05-03 19:51:11.000000000 -0500
+++ classes.php	2003-06-07 23:08:34.000000000 -0500
@@ -185,7 +185,9 @@
 		print("<A STYLE=\"color:");
 		if ($this->typeColour == $GLOBALS['list_default_colour']) print($GLOBALS['text_dark']);
 		else print($GLOBALS['text_light']);
-		print("\" HREF=\"main.php?mode=single&channel=$this->chanid&starttime=$this->startts&endtime=$this->endts&refoffset=$anOffset\">$this->title");
+		print("\" HREF=\"main.php?mode=single&channel=$this->chanid&starttime=$this->startts&endtime=$this->endts&refoffset=$anOffset\"");
+		if ($GLOBALS['statusBarDescription']) print(" onMouseOver=\"self.status='$this->description';return true\"");
+		print(">$this->title");
 		if ($GLOBALS['includeSubTitle'] && strlen($this->subtitle) > 0) print(": $this->subtitle");
 
 		if ($this->airdate > 0 && ($GLOBALS['includeReleaseYear'] || ($GLOBALS['includeReleaseYearForMovies'] && $this->smellsLikeMovie())))





--- /cvs/version/of/mythweb/settings.php	2003-05-03 19:51:11.000000000 -0500
+++ settings.php	2003-06-07 23:09:07.000000000 -0500
@@ -38,6 +38,8 @@
 	// include the channel icon (must copy all icons from ~/.mythtv/channels to mythwebroot/images/icons)
 	$includeIcon            = FALSE;
 
+        $statusBarDescription = FALSE;
+
 	$timeSlots        = 6;          // How many 30 minute columns to display
 	$timeBarCount = 15;             // How many lines to skip before redisplaying the timebar on the listings
 



-- 

Kirby Vandivort                      Theoretical and Computational Biophysics 
Email: kvandivo at ks.uiuc.edu          3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/    University of Illinois
Phone: (217) 244-5711                405 N. Mathews Ave
Fax  : (217) 244-6078                Urbana, IL  61801, USA


More information about the mythtv-dev mailing list