Edit: The Lilina website has moved here. I believe this new incarnation has incorporated many of my hacks, so I would recommend checking it out.

Lilina-head is my hack of the lilina aggregator. This version is a big improvement on my original patch file, which was furiously coded up in just a few hours. Be aware that the default style is drastically different from the original lilina. I include the original lilina style if you prefer it (see the conf.php file), but be aware that it might require a little bit of twiddling.

Changes I've made to the original:

  • added categories.
  • single source page. clicking on a source's icon will take you to a page displaying only headlines from that source.
  • include your delicious links after the headlines (any delicious links with a tag matching the current category will be included).
  • added paging (so headlines can be distributed across several pages if necessary). the default is 100 headlines per page.
  • added a max number of headlines option. i have close to a 100 sources, so if i hit show all i will sometimes get over 1000 headlines (which is completely ridiculous even if they are paged). there is also the risk this many headlines will cause lilina to exceed the memory limits allocated for a php application. to prevent all this i added the ability to set an upper limit on the total number of headlines. default is 1000.
  • sort of similar, i added a max headlines per source configuration option. no more headlines than this will be taken from any one source. default is 20.
  • ability to remove images from feed excerpts (this can really speed things up).
  • changed the way lilina creates icons for the sources. lilina-head will try and grab a favicon if it can (which generally look better, imho), and then it will try for an image from the source feed, which it then randomly zooms and slices into the appropriate size. the reason for the zooming and slicing is that there is apparently no concensus on the size and shape of feed images.
  • all icons are now cached, instead of being served up by the source website. the downside to this is if the website changes their favicons/images it won't be reflected on your aggregator. to compensate, i added a fetch icon link in the admin panel so you can re-fetch the sites icon.
  • added the ability to upload an image for use as an icon for any source. use this if a site doesn't have an image, or if you just don't like it.
  • customizable default icon if all else fails.

Things I need to do:

  • when uploading an icon, not all methods are implemented. right now only zoom works.
  • the show feeds time settings should be customizable. that is, someone with many sources may want these to be 3h/8h/24h/72h, whereas someone with only a few sources (infrequently updated) may want them to be 24h/48h/72h/week. it would be nice if this could be set in the configuration file.

Please take a look at the configuration file. There are a couple of new settings there.

NOTE: It's been brought to my attention the icon fetching routine bombs out if you don't have php >= 4.3. Sorry about that. I'll see what I can do.

lilina-head-v0.1.zip