tel8618217223380 / rsslounge

Automatically exported from code.google.com/p/rsslounge
0 stars 0 forks source link

Automatically hide empty feeds #63

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

Thanks for this great piece of code, it is far from other rss reader that I had 
tested.

For my usage, there is only one thing I would like to improve : 
- automatically hide empty feeds (with no unread items inside) so that I always 
get a list of feeds to read (and not all of them).

This could be simply been with a jquery check routine that would hide all "li" 
feeds which don't have "unread" class.

Of course, in a perfect world, this option should remain possible to enable or 
not :)

Have a nice day,
Lilian

Original issue reported on code.google.com by nicodo...@gmail.com on 22 Mar 2011 at 7:40

GoogleCodeExporter commented 9 years ago
Sorry, this is not a defect, this is an enhancement

Original comment by nicodo...@gmail.com on 22 Mar 2011 at 7:41

GoogleCodeExporter commented 9 years ago
Hi
This would be a great thing !

Original comment by epydem...@gmail.com on 3 Apr 2011 at 12:10

GoogleCodeExporter commented 9 years ago
To make feeds empty invisible, I add this condition in file 
"application/views/scripts/feed/feed.phtml"

> at start of the file : 
<?php if($this->unread>0) : ?>
> at end of the file : 
<?php endif;?>

Original comment by nicodo...@gmail.com on 6 Apr 2011 at 6:08

GoogleCodeExporter commented 9 years ago
better :

in base.js:

at the end of refreshFeedsExecute: function() {
add setFeedVisibility();

change the line  $('#feeds-list .prio'+i).show();
by  $('#feeds-list .unread.prio'+i).show();

Original comment by fabclem...@gmail.com on 28 Jun 2012 at 8:46

GoogleCodeExporter commented 9 years ago
@fabclem
Yes, it's better with jQuery, thank you !

FYI, I forked RSSLounge project with new features (own-scrolling left and main 
zone, new setting to hide empty feed and dedicated mobile version) on github: 
https://github.com/nicolas-manaud/rsslounge

Original comment by nicodo...@gmail.com on 28 Jun 2012 at 8:55