Mobile Browsing is going more and more popular. So i thought it could be a cooll thing to have a mobile version. I used Xfriuts services wich provide several interesting services for contetn aggregation and distribution but.
Recently I discovered a great plugin from Andy Moore that give your blog a fresh new mobile style without the need to spread another url. It works fine with wordpress 2.3.1 if you make this simple changes to adapt the queries to the new database schema.

at line # 378 you will find

$categories = @$wpdb->get_results(“SELECT * FROM $wpdb->categories ORDER BY cat_name”);

replace with

$categories = @$wpdb->get_results(“SELECT * FROM $wpdb->terms ORDER BY name”);

and at line #385 find:

$cat_drop .= “\n\t<option value=’$category->cat_ID’ $selected>”.ucwords(strtolower($category->cat_name)).”  </option>”;

replace with

$cat_drop .= “\n\t<option value=’$category->term_ID’ $selected>”.ucwords(strtolower($category->cat_name)).”  </option>”;

Everything seems to work fine and you’ll have a brand new mobile browsable blog at your original url.

Thanks Hanrty

Advertisements