Sunday, October 10. 2010Using Tiny Tiny RSS with Opera Mobile (updated)Tiny Tiny RSS (aka "tt-rss") is a very nice tool if you read many rss feads from various devices. It's an alternative to Google Reader and runs on your own server. You only need a database (MySQL or Postgres) and PHP. One of its features is a mobile view. This allows you to read news from you mobile phone. You just have to append A few hacks help to make the easier-to-read™ iPhone view available to other browsers. I tested it with Opera Mobile. Note: I tested this with tt-rss 1.5.0, it still works. Ajust the line numbers a bit Step 1: the CSSHTML 5 is nice. At least, if your browser supports it. Unfortunately, Opera Mobile doesn't. Worse: it stops parsing the CSS file. The problem is hidden in
Well, the library is safary-specific, so we can blame anyone. But we can fix it so that it work in our special case. Just replace the line 243
through this:
And line 287
through this:
Again: the replacement is not globally valid, but it works for tt-rss. Part 2: the JavascriptThe file Line 373 is responsible for this:
We can replace it with an additional null check:
If you now visit http://your-server/tt-rss/mobile, you should be able to read and navigate through the news. Update: Part 3: the ScriptThe next file to edit is feeds/mobile/functions.php. Around line 463 change
to
This will make the date-field (more) readable, because our new CSS selector wants a "type=text" attribute. Part 4: the ZoomFor a multi user setup, you should stop here. Opera Mobile does not allow a webpage to change the zoom level. If you use a zoom level other than 100%, you will only see parts of the page. You can prevent this by setting the same zoom level in mobile/index.php. But as all users share this setting, all users will always have the same zoom level. Well, we cannot have everything we want I changed line 29 to this:
That's itThat's it, we're done. I hope, someone finds this article useful. At the moment, i'm reading the news with tt-rss everythime I sit in a train. And thats happens 2 to 4 times a day... |
QuicksearchLinks in diesem ArtikelStatic PagesLinks
|
I already wrote about tiny tiny RSS (tt-rss) in this article. So far, the login-mechanism of tt-rss was used. However, tt-rss also allows to use authentication mechanisms of an webserver, which allowes the usage of htAccess and htUser-Files. Note: I test
Tracked: Dec 30, 14:56