LinHES Forums http://forums.linhes.org/ |
|
What file builds the MythWeb-Recorded Programs page? http://forums.linhes.org/viewtopic.php?f=17&t=14311 |
Page 1 of 1 |
Author: | colinnwn [ Wed Feb 21, 2007 10:57 pm ] |
Post subject: | What file builds the MythWeb-Recorded Programs page? |
Hi Everyone, When I am on my local intranet, I can download an episode by clicking on the title or subtitle field of the MythWeb-Recorded Programs page. This doesn't work when I am on the internet. The link that works on the intranet is http://192.168.0.100/mythweb/pl/stream/2030/1172113200 The link that doesn't on the internet is myth://127.0.0.1:6543/2030_20070221210000.mpg I was going to try to edit the source to make the internet link the same as the intranet link (with the caveat of building it with the external IP address). But, I can't find the file that builds the MythWeb-Recorded Programs page. Can anyone tell me what it is called and where to find it in the file system? Thanks. |
Author: | bigB [ Thu Feb 22, 2007 12:00 am ] |
Post subject: | |
Hi, /var/www/mythweb/modules/tv/tmpl/default/recorded.php This is assuming you are using the default theme in mythweb. BigB. |
Author: | colinnwn [ Fri Feb 23, 2007 1:12 am ] |
Post subject: | Success! |
I am using the default theme. This is the first time I wrote any PHP on my own. It took me 3 hours to figure this out, and I still don't really understand what is going on. But the following code appears to work regardless of whether you are trying to download inside your intranet or over the internet, and whether you are using the standard or alternate port for MythWeb. Lemme know if anyone else tries this and it doesn't work. Change lines 283-287 in /var/www/mythweb/modules/tv/tmpl/default/recorded.php to: Code: <td><?php echo '<a href="http://'.getenv('HTTP_HOST').'/mythweb/pl/stream/'.$show->chanid.'/'.$show->recstartts.'"'
.($_SESSION['recorded_pixmaps'] ? '' : " name=\"$row\"") .'>'.$show->title.'</a>' ?></td> <td><?php echo '<a href="http://'.getenv('HTTP_HOST').'/mythweb/pl/stream/'.$show->chanid.'/'.$show->recstartts.'"' .'>'.$show->subtitle.'</a>' ?></td> Thanks bigB for telling me where to start looking. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |