{"id":332,"date":"2006-04-17T19:00:00","date_gmt":"2006-04-17T10:00:00","guid":{"rendered":"https:\/\/www.picolix.jp\/blog\/2006\/04\/movabletype-customfields.html\/"},"modified":"2019-04-02T10:25:36","modified_gmt":"2019-04-02T01:25:36","slug":"movabletype-customfields","status":"publish","type":"post","link":"https:\/\/www.picolix.jp\/blog\/2006\/04\/movabletype-customfields.html","title":{"rendered":"MovableType \u300cCustomFields\u300d\u5165\u529b\u9805\u76ee\u306e\u62e1\u5f35"},"content":{"rendered":"<p>MovableType 3.2 \u3067\u3001\u30a8\u30f3\u30c8\u30ea\u30fc\u7b49\u306b\u9805\u76ee\u3092\u72ec\u81ea\u306b\u8ffd\u52a0\u3059\u308b\u306e\u306b\u4f55\u304b\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u306a\u3044\u304b\u63a2\u3057\u305f\u3068\u3053\u308d\u3001Google\u3067\u300cMovable \u62e1\u5f35 \u9805\u76ee\u300d\u3067\u691c\u7d22\u3057\u3066\u3001\u300cCustomFields\u300d\u3092\u898b\u3064\u3051\u307e\u3057\u305f\u3002<br \/>\u3053\u308c\u3092\u5c0e\u5165\u3059\u308b\u3068\u3001\u30a8\u30f3\u30c8\u30ea\u30fc\u3084\u30ab\u30c6\u30b4\u30ea\u30fc\u306b\u597d\u304d\u306a\u9805\u76ee\u3092\u65b0\u305f\u306b\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002<br \/><a href=\"http:\/\/search.picolix.jp\/release\/\">\u4f01\u696d\u691c\u7d22ComSearch\u30d7\u30ec\u30b9\u30ea\u30ea\u30fc\u30b9<\/a>\u306e\u30b7\u30b9\u30c6\u30e0\u306bMovableType\u3092\u4f7f\u3063\u3066\u3001\u30a8\u30f3\u30c8\u30ea\u30fc\u306e\u8ffd\u52a0\u9805\u76ee\u306b\u300cCustomFields\u300d\u306bID\u3068\u304b\u4f01\u696d\u540d\u3001URL\u7b49\u306b\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<br \/><a href=\"http:\/\/www.movalog.com\/plugins\/wiki\/CustomFields\">http:\/\/www.movalog.com\/plugins\/wiki\/CustomFields<\/a><br \/>\u306e\u300cInstallation Instructions\u300d\u306e\u30ea\u30f3\u30af\u3092\u305f\u3069\u308b\u3068\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002<br \/>\u5c0e\u5165\u65b9\u6cd5\u3001\u8ffd\u52a0\u65b9\u6cd5\u306fCustomFields\u3067\u691c\u7d22\u3059\u308c\u3070\u51fa\u3066\u304d\u307e\u3059\u306e\u3067\u3001\u3053\u3053\u3067\u306f\u3001\u8ffd\u52a0\u3055\u308c\u305f\u9805\u76ee\uff06\u30c7\u30fc\u30bf\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u3069\u3053\u306b\u62e1\u5f35\u3055\u308c\u308b\u304b\u3001\u53ca\u3073\u5225\u30b7\u30b9\u30c6\u30e0\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u3053\u306e\u8ffd\u52a0\u9805\u76ee\u3092\u3069\u3046\u53c2\u7167\u3059\u308b\u304b\u8a18\u8f09\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\uff08MEMO\uff09<br \/>\u4f8b\uff09\u30a8\u30f3\u30c8\u30ea\u30fc\u306b\u3001comid,comurl,comname\u3092\u62e1\u5f35\u3057\u305f\u5834\u5408\u3002(DB\u306fmysql)<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\u683c\u7d0dDB\u8868\uff1amt_plugindata<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\u9805\u76ee\u540d\u3000\u3000\u3000\u3000\u3000 \uff1a\u5185\u5bb9<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>plugindata_id\u3000\u3000\uff1aid\u756a\u53f7<br \/>plugindata_data\u3000\uff1a[BLOB] MT\u3067\u30b7\u30ea\u30a2\u30eb\u5316\u3055\u308c\u305f\u30c7\u30fc\u30bf\u304c\u5165\u308b\u3002<br \/>plugindata_key \u3000\uff1aentry_xx\u3000\uff08xx\u306f\u3001mt_entry\u306eentry_id\u756a\u53f7)<br \/>plugindata_plugin\uff1aentries<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\u3067\u3001php\u304b\u3089\u30a8\u30f3\u30c8\u30ea\u30fcID 4\u306e\u62e1\u5f35\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u305f\u3044\u5834\u5408\u306f\u3001<br \/>MT\u306eMTSerialize.php\u3092include\u3057\u3066\u3001mt_plugindata\u304b\u3089plugindata_data<br \/>\u3092\u53d6\u5f97\u3057\u3066\u3001unserialize()\u3059\u308b\u3068\u30c7\u30fc\u30bf\u3092\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>&lt;html&gt;<br \/>&lt;head&gt;<br \/>&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text\/html; charset=EUC-JP&#8221;&gt;<br \/>&lt;\/head&gt;<br \/>&lt;body&gt;<br \/>&lt;?php<br \/>include(&#8216;xxx\/xxx\/mt\/php\/lib\/MTSerialize.php&#8217;);<br \/>$mt = new MTSerialize;<br \/>$con = mysql_connect(&#8220;localhost&#8221;, &#8220;xxxx&#8221;, &#8220;xxxx&#8221;);<br \/>mysql_select_db(&#8220;zzzzz&#8221;);<br \/>$sql = &#8220;select plugindata_data from mt_plugindata<br \/>where plugindata_plugin = &#8216;entries&#8217;<br \/>and plugindata_key = &#8216;entry_4&#8242;&#8221;;<br \/>$result = mysql_query($sql);<br \/>$rec = mysql_fetch_row($result);<br \/>$value = $mt-&gt;unserialize($rec[0]);<br \/>\/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>print var_dump($value);<br \/>\/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>print &#8220;&lt;br&gt;&#8221;;<br \/>print $value[&#8216;comid&#8217;];<br \/>?&gt;<br \/>&lt;\/body&gt;<br \/>&lt;\/html&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MovableType 3.2 \u3067\u3001\u30a8\u30f3\u30c8\u30ea\u30fc\u7b49\u306b\u9805\u76ee\u3092\u72ec\u81ea\u306b\u8ffd\u52a0\u3059\u308b\u306e\u306b\u4f55\u304b\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u306a\u3044\u304b\u63a2\u3057\u305f\u3068\u3053\u308d\u3001Google\u3067\u300cMovable \u62e1\u5f35 \u9805\u76ee\u300d\u3067\u691c\u7d22\u3057\u3066\u3001\u300cCustomFields\u300d\u3092\u898b\u3064\u3051\u307e\u3057\u305f\u3002\u3053\u308c\u3092\u5c0e\u5165 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.picolix.jp\/blog\/2006\/04\/movabletype-customfields.html\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;MovableType \u300cCustomFields\u300d\u5165\u529b\u9805\u76ee\u306e\u62e1\u5f35&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[16],"_links":{"self":[{"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/posts\/332"}],"collection":[{"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/comments?post=332"}],"version-history":[{"count":1,"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/posts\/332\/revisions"}],"predecessor-version":[{"id":1052,"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/posts\/332\/revisions\/1052"}],"wp:attachment":[{"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/media?parent=332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/categories?post=332"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.picolix.jp\/blog\/wp-json\/wp\/v2\/tags?post=332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}