Tiny Tiny RSS Mobile Options

March 27, 2013 - Scott Hewitt


So the default installed detailed in the earlier post leaves you with a broken mobile install. When you visit the URL it auto redirects to a location with nothing there.

A quick dirty fix is to disable the redirect by editing index.php from this,

if (!$_REQUEST['mobile']) {
                if ($mobile->isTablet() && $pluginhost->get_plugin("digest")) {
                        header('Location: backend.php?op=digest');
                        exit;
                } else if ($mobile->isMobile()) {
                        header('Location: mobile/index.php');
                        exit;
                }
        }

to this, essentially just commenting out the redirection.

if (!$_REQUEST['mobile']) {
//                if ($mobile->isTablet() && $pluginhost->get_plugin("digest")) {
                        header('Location: backend.php?op=digest');
                        exit;
//                } else if ($mobile->isMobile()) {
//                        header('Location: mobile/index.php');
//                        exit;
//                }
        }

This works because we included digest in the options in the install.

The other options are to install one of the mobile theme options into the redirect location

mobile/

such as,

git clone https://github.com/j0nson/tt-rss_mobile.git

Then just move the files into the mobile folder and enable the API in preferences.