View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Jun 10, 2005 8:16 pm 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
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#


Last edited by marc.aronson on Sun Jun 12, 2005 12:41 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 11, 2005 9:27 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
Have you considered posting this on the MythTV mailing list?

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 12, 2005 12:47 pm 
Offline
Joined: Tue Jan 18, 2005 2:07 am
Posts: 1532
Location: California
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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 12, 2005 8:12 pm 
Offline
Joined: Tue Dec 07, 2004 12:04 pm
Posts: 369
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


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu