LinHES Forums http://forum.linhes.org/ |
|
View Recording Schedules in mythweb sorted in priority order http://forum.linhes.org/viewtopic.php?f=6&t=4866 |
Page 1 of 1 |
Author: | marc.aronson [ Fri Jun 10, 2005 8:16 pm ] |
Post subject: | View Recording Schedules in mythweb sorted in priority order |
Post updated by Marc on June 12. Added capability to display recording priority when mouse hovers over series name. I find the ability to review recording schedules in priority order in the myth frontend very useful and missed having this capability via mythweb, so I made a small change to sort by recording priority from mythweb. When you have made these changes the default sort order for "Recording Schedules" is by priority. Also, when you "hover" the mouse over the title the information box that appears now includes the recording priority. I am providing the changes as diffs relative to the scripts included in R5A16. The first change is in /usr/share/mythtv/mythweb/includes/sorting.php Code: root@mythtv:/usr/share/mythtv/mythweb/includes# diff sorting.php.orig sorting.php 182a183,186 > function by_recpriority(&$a, &$b) { > if ($a->recpriority == $b->recpriority) return 0; > return ($a->recpriority < $b->recpriority) ? 1 : -1; > } The second change is in /usr/share/mythtv/mythweb/themes/Default/theme.php Code: root@mythtv:/usr/share/mythtv/mythweb/themes/Default# diff theme.php.orig theme.php 160c160 < <a href="recording_schedules.php"><?php echo t('Recording Schedules') ?></a> --- > <a href="recording_schedules.php?sortby=recpriority"><?php echo t('Recording Schedules') ?></a> root@mythtv:/usr/share/mythtv/mythweb/themes/Default# The third change is in /usr/share/mythtv/mythweb/includes/recording_schedules.php Code: root@mythtv:/usr/share/mythtv/mythweb/includes# !diff diff recording_schedules.php.orig recording_schedules.php 358a359,361 > // Recording Priority > $str .= "\t<dt>" . t('Rec Priority') . ":</dt>\n"; > $str .= "\t<dd>" . $this->recpriority . "</dd>\n"; The fourth change is in /usr/share/mythtv/mythweb/languages/English.php Code: root@mythtv:/usr/share/mythtv/mythweb/languages# diff English.php.orig English.php
52a53 > 'Rec Priority' => '', root@mythtv:/usr/share/mythtv/mythweb/languages# |
Author: | cesman [ Sat Jun 11, 2005 9:27 pm ] |
Post subject: | |
Have you considered posting this on the MythTV mailing list? |
Author: | marc.aronson [ Sun Jun 12, 2005 12:47 pm ] |
Post subject: | |
Cesman -- I hadn't thought of doing that and I'm not currently registered on those lists, but it sounds like you feel this would be a useful thing to do, so I'll register and send them out. Would it be best to send them to the "users" list or the "dev" list? All -- I've updated my original post with 2 more changes that add the recording priority in the information box that is displayed when you hover the mouse over the series name. If you already applied changes numbered "1 & 2" from my oriignal post, you only need to pick up the changes numbered "3 & 4" to add this feature. Marc |
Author: | brendan [ Sun Jun 12, 2005 8:12 pm ] |
Post subject: | |
If you think you'd like the changed integrated into future mythtv releases, I suggest dev list...but you might want to read up on it first to find out what their preferred (or required) patch format. -brendan |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |