[mythtv] [PATCH]: make "Search IMDB" open a new window/tab

Ian Forde ian at duckland.org
Thu Sep 25 18:08:51 EDT 2003


Okay - so I'm a little biased.  I use galeon and I'd rather the IMDB
listings came up in a new tab rather than replacing the current mythweb
window.  This patch is against mythweb/Default/program_detail.php.  It
should also apply against mythweb/compact/program_detail.php.

	-I

--- program_detail.php  2003-09-25 17:02:01.000000000 -0700
+++ program_detail.php.new      2003-09-25 17:00:14.000000000 -0700
@@ -56,7 +56,7 @@
                                if ($this_program->previouslyshown)
                                        echo '(Rerun) ';
                                if ($this_program->category_type == 'movie')
-                                       echo " (<a href=\"http://www.imdb.com/Find?select=Titles&for=" . urlencode($this_program->title) . "\">Search IMDB</a>)";
+                                       echo " (<a href=\"http://www.imdb.com/Find?select=Titles&for=" . urlencode($this_program->title) . "\" target=\"_blank\">Search IMDB</a>)";
                                else
                                        echo " (<a href=\"http://www.google.com/search?q=" . urlencode($this_program->title) . "\">Search Google</a>)";
                                ?></span></td>


-- 
                       __________________________________
                       Ian Forde, RHCE, CCSE, SCNA, SCDME
                       CYTBeN, Inc.
                       ian at duckland.org / ian at cytben.com



More information about the mythtv-dev mailing list