{"id":85,"date":"2011-03-16T15:30:22","date_gmt":"2011-03-16T15:30:22","guid":{"rendered":"http:\/\/hackeryu.in\/?p=85"},"modified":"2011-03-16T15:30:22","modified_gmt":"2011-03-16T15:30:22","slug":"wordpress-mobile-browser-plug-ins-mobilepress","status":"publish","type":"post","link":"https:\/\/hackeryu.in\/?p=85","title":{"rendered":"WordPress \u624b\u673a\u6d4f\u89c8\u63d2\u4ef6\uff1aMobilePress"},"content":{"rendered":"<p>\u968f\u7740 3G \u7f51\u7edc\u7684\u53d1\u5c55\uff0c\u624b\u673a\u5df2\u7ecf\u6210\u4e3a\u4eba\u4eec\u751f\u6d3b\u4e2d\u8d8a\u6765\u8d8a\u91cd\u8981\u7684\u7f51\u7edc\u7ec8\u7aef\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u4eba\u5f00\u59cb\u4f7f\u7528\u624b\u673a\u6765\u6d4f\u89c8\u7f51\u9875\uff0c\u4f46\u662f\u5f88\u591a\u7f51\u7ad9\u5176\u5b9e\u5e76\u4e0d\u662f\u9002\u5408\u624b\u673a\u6d4f\u89c8\uff0c\u5176\u4e2d\u5c31\u5305\u62ec\u6211\u4eec\u5927\u5bb6\u4f7f\u7528 WordPress \u6784\u5efa\u7684\u535a\u5ba2\u3002\u4ee5\u524d\u6211\u63a8\u8350\u4f7f\u7528 <a href=\"http:\/\/fairyfish.net\/2007\/12\/18\/mobilize-your-website-feedm8\/\">FeedM8<\/a> \u8fd9\u4e2a\u670d\u52a1\u7ed9\u535a\u5ba2\u521b\u5efa\u9002\u5408\u624b\u673a\u6d4f\u89c8\u7684\u7248\u672c\uff0c\u4f46\u662f FeedM8 \u6bd5\u7adf\u662f\u7b2c\u4e09\u65b9\u670d\u52a1\uff0c\u81ea\u5df1\u4e0d\u80fd\u505a\u592a\u591a\u7684\u63a7\u5236\uff0c\u5e76\u4e14\u8fd8\u9700\u8981\u8ba9\u7528\u6237\u8bb0\u4f4f\u4f60\u5728 FeedM8 \u7684\u5730\u5740\u548c\u7528\u6237\u540d\uff0c\u5e76\u4e0d\u662f\u5f88\u65b9\u4fbf\u3002\u5176\u5b9e\u5bf9\u4e8e WordPress \u535a\u5ba2\u7684\u7528\u6237\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 <strong><a href=\"http:\/\/mobilepress.co.za\/\" target=\"_blank\">MobilePress<\/a><\/strong>\u8fd9\u6b3e WordPress \u63d2\u4ef6\uff0c\u8ba9\u4f60\u7684\u535a\u5ba2\u9002\u5408\u624b\u673a\u6d4f\u89c8\uff0c\u7528\u6237\u53ea\u9700\u5728\u624b\u673a\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165\u4f60\u535a\u5ba2\u7684\u5730\u5740\u5373\u53ef\u3002<\/p>\n<h2>MobilePress \u4ecb\u7ecd<\/h2>\n<p><strong>MobilePress<\/strong> \u662f\u4e00\u6b3e WordPress \u63d2\u4ef6\uff0c\u5b83\u9996\u5148\u901a\u8fc7<strong>\u6d4f\u89c8\u5668\u7684 User-Agent<\/strong> \u5224\u65ad\u51fa\u7528\u6237\u662f\u5426\u4f7f\u7528\u624b\u673a\u5728\u6d4f\u89c8\u4f60\u7684 WordPress \u535a\u5ba2\uff0c\u7136\u540e\u5b83\u4f1a\u7ed9\u535a\u5ba2\u66f4\u6362\u4e00\u6b3e\u9002\u5408\u624b\u673a\u6d4f\u89c8\u7684\u4e3b\u9898\uff0c\u8ba9\u624b\u673a\u7528\u6237\u66f4\u597d\u7684\u6d4f\u89c8\u535a\u5ba2\u3002<\/p>\n<p>MobilePress \u652f\u6301\u7edd\u5927\u591a\u6570\u624b\u673a\uff0c\u5982 iPhone, Android, \u9ed1\u8393, Windows CE, Nokia \u7b49\u7c7b\u578b\u624b\u673a\uff0c\u548c Opera Mini, UCWeb \u7b49\u624b\u673a\u6d4f\u89c8\u5668\u3002<\/p>\n<h2><a name=\"toc-2\"><\/a>MobilePress \u5b89\u88c5\u548c\u4f7f\u7528<\/h2>\n<p>MobilePress \u5b89\u88c5\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u8981\u4e0a\u4f20\u6fc0\u6d3b\u5373\u53ef\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7 WordPress \u540e\u53f0\u76f4\u63a5\u5b89\u88c5\u3002<\/p>\n<p>\u5b89\u88c5\u597d MobilePress \u4e4b\u540e\uff0c\u5728 WordPress \u540e\u53f0\u4e3b\u83dc\u5355\u5c31\u591a\u4e86\u4e00\u4e2a MobilePress \u7684\u83dc\u5355\uff0c\u4ed6\u6709\u4e24\u4e2a\u5b50\u83dc\u5355\uff1a<\/p>\n<ol>\n<li>Options\n<ul>\n<li>\u8fd9\u91cc\u7684 Blog Title \u548c Blog Description \u662f\u8ba9\u4f60\u7ed9\u624b\u673a\u7248\u672c\u7684\u535a\u5ba2\u8bbe\u7f6e\u4e00\u4e2a\u535a\u5ba2\u6807\u9898\u548c\u63cf\u8ff0\uff0c\u7559\u7a7a\u4f7f\u7528\u539f\u6765\u9ed8\u8ba4\u5df2\u7ecf\u8bbe\u7f6e\u597d\u7684\u535a\u5ba2\u6807\u9898\u548c\u63cf\u8ff0\u3002<\/li>\n<li>Force Mobile Site? \u5f3a\u5236\u4f7f\u7528\u624b\u673a\u7248\uff0c\u5373\u4f7f\u4f7f\u7528\u666e\u901a\u6d4f\u89c8\u5668\u6d4f\u89c8\u4e5f\u4f1a\u663e\u793a\u9002\u5408\u624b\u673a\u6d4f\u89c8\u7684\u4e3b\u9898\u3002\u4e00\u822c\u9009\u62e9 no \u4e86\uff0c\u666e\u901a\u6d4f\u89c8\u5668\u7528\u6237\u8fd8\u662f\u5e0c\u671b\u7ed9\u4ed6\u770b\u5230\u66f4\u591a\u7cbe\u5f69\u7684\u5c55\u793a\u3002<\/li>\n<li>\u63a5\u4e0b\u6765\u4e09\u9879\uff1aTreat iPhone as a web browser?<br \/>\nTreat Windows smartphone as a web browser?<br \/>\nTreat Opera Mini as a web browser?<\/p>\n<p>\u610f\u601d\u662f\u662f\u5426\u628a\u7528\u6237\u5728 iPhone, Windows CE, Opera Mini \u8fd9\u4e09\u79cd\u60c5\u51b5\u6d4f\u89c8\u4f60\u7684\u535a\u5ba2\u4f5c\u4e3a\u666e\u901a\u6d4f\u89c8\u5668\u7528\u6237\uff0c\u5373\u663e\u793a\u9ed8\u8ba4\u8bbe\u7f6e\u7684\u4e3b\u9898\u3002\u8fd9\u91cc\u4e00\u822c\u8fd8\u662f\u9009\u62e9 no\uff0c\u867d\u7136 iPhone \u624b\u673a\u5df2\u7ecf\u5f3a\u5927\u548c\u666e\u901a\u6d4f\u89c8\u5668\u6ca1\u6709\u5f88\u5927\u7684\u533a\u522b\uff0cOpera Mini \u5bf9\u7f51\u9875\u89e3\u6790\u5df2\u7ecf\u6700\u591f\u5b8c\u7f8e\u4e86\uff0c\u4f46\u662f\u6211\u4eec\u8fd8\u662f\u5e0c\u671b\u7ed9\u624b\u673a\u7528\u6237\u4e00\u4e2a\u7b80\u6d01\u7684\u4e3b\u9898\uff0c\u4e3b\u9898\u4e2d\u56fe\u7247\u66f4\u5c11\uff0c\u4ece\u53e6\u5916\u4e00\u65b9\u9762\u8bf4\uff0c\u4e5f\u662f\u8282\u7701\u4e86\u5e26\u5bbd\u3002<\/li>\n<\/ul>\n<\/li>\n<li>Theme\u8fd9\u91cc\u7684 Theme \u53ef\u4ee5\u8ba9\u4f60\u7ed9\u4e0d\u540c\u7684\u624b\u673a\u8bbe\u7f6e\u4e0d\u540c\u7684\u4e3b\u9898\uff0c\u76ee\u524d\u652f\u6301\u7ed9 iPhone, Windows CE, Opera Mini \u8fd9\u4e09\u79cd\u624b\u673a\u6216\u8005\u624b\u673a\u6d4f\u89c8\u5668\u8bbe\u7f6e\u4e13\u5c5e\u7684\u4e3b\u9898\u3002\u76ee\u524d MobilePress \u63d0\u4f9b\u4e86 Mobile \u548c iPhone \u4e24\u6b3e\u9002\u5408\u624b\u673a\u6d4f\u89c8\u7684\u4e3b\u9898\uff0c\u5f53\u7136\u4f60\u53ef\u4ee5\u7ed9\u81ea\u5df1\u7684\u624b\u673a\u8bbe\u7f6e\u4e00\u6b3e\u4e3b\u9898\u4e0a\u4f20\u5230\u8be5\u63d2\u4ef6\u76ee\u5f55\u4e0b\u7684 themes \u6587\u4ef6\u5939\u4e2d\u3002<\/li>\n<\/ol>\n<h2><a name=\"toc-3\"><\/a>\u548c WP Super Cache \u914d\u5408\u4f7f\u7528<\/h2>\n<p>\u5982\u679c\u4f60\u7684\u535a\u5ba2\u548c\u6211\u4e00\u6837\u5b89\u88c5\u4e86 <a href=\"http:\/\/fairyfish.net\/2008\/10\/27\/wp-super-cache\/\">WP Super Cache<\/a> \u8fd9\u6b3e\u63d2\u4ef6\uff0c\u4f60\u9700\u8981\u5f00\u542f WP Super Cache \u63d2\u4ef6\u4e2d\u7684 Mobile device support \u8fd9\u4e2a\u9009\u9879\uff0c\u5373\u624b\u673a\u6d4f\u89c8\u60c5\u51b5\u4e0b\u4e0d\u7f13\u5b58\uff0cMobilePress \u63d2\u4ef6\u624d\u6709\u6548\u3002\u4e3a\u4e86\u786e\u4fdd\u8be5\u9009\u9879\u8d77\u4f5c\u7528\uff0c\u4f60\u5e94\u8be5\u68c0\u67e5\u4e0b\u4f60\u7684 .htaccess \u6587\u4ef6\u4e2d\u662f\u5426\u542b\u6709\u4ee5\u4e0b\u51e0\u884c\uff1a<\/p>\n<pre>RewriteCond %{HTTP_user_agent} !^.*(Android|2.0 MMP|240x320|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine\/3.0|EudoraWeb|hiptop|IEMobile|iPhone|iPod|KYOCERA\/WX310K|LG\/U990|MIDP-2.0|MMEF20|MOT-V|NetFront|Newt|Nintendo Wii|Nitro|Nokia|Opera Mini|Palm|Playstation Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|Small|SonyEricsson|Symbian OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|Windows CE|WinWAP).*<\/pre>\n<p>\u666e\u901a\u7f13\u5b58\u548c GZ \u7f13\u5b58\u90fd\u9700\u8981\u5bf9\u5e94\u4e00\u884c\u3002<\/p>\n<p>\u5173\u4e8e MobilePress \u5c31\u8bb2\u89e3\u90a3\u4e48\u591a\uff0c\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"http:\/\/mobilepress.co.za\/\" target=\"_blank\">http:\/\/mobilepress.co.za\/<\/a>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u968f\u7740 3G \u7f51\u7edc\u7684\u53d1\u5c55\uff0c\u624b\u673a\u5df2\u7ecf\u6210\u4e3a\u4eba\u4eec\u751f\u6d3b\u4e2d\u8d8a\u6765\u8d8a\u91cd\u8981\u7684\u7f51\u7edc\u7ec8\u7aef\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u4eba\u5f00\u59cb\u4f7f\u7528\u624b\u673a\u6765\u6d4f\u89c8\u7f51\u9875\uff0c\u4f46\u662f\u5f88 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-85","post","type-post","status-publish","format-standard","hentry","category-wp","post_format-post-format-standard"],"_links":{"self":[{"href":"https:\/\/hackeryu.in\/index.php?rest_route=\/wp\/v2\/posts\/85","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hackeryu.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hackeryu.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hackeryu.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hackeryu.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=85"}],"version-history":[{"count":0,"href":"https:\/\/hackeryu.in\/index.php?rest_route=\/wp\/v2\/posts\/85\/revisions"}],"wp:attachment":[{"href":"https:\/\/hackeryu.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hackeryu.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hackeryu.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}