{"id":1206,"date":"2009-07-11T23:35:38","date_gmt":"2009-07-11T14:35:38","guid":{"rendered":"http:\/\/gigasmegas.com\/?p=1206"},"modified":"2009-07-12T01:25:37","modified_gmt":"2009-07-11T16:25:37","slug":"xoops-tips-%e3%83%a6%e3%83%bc%e3%82%b6%e3%82%a2%e3%82%ab%e3%82%a6%e3%83%b3%e3%83%88%e6%96%b0%e8%a6%8f%e8%bf%bd%e5%8a%a0%e6%99%82%e3%81%ab%e9%a0%85%e7%9b%ae%e3%82%92%e8%bf%bd%e5%8a%a0","status":"publish","type":"post","link":"http:\/\/gigasmegas.com\/?p=1206","title":{"rendered":"XOOPS Tips \u30e6\u30fc\u30b6\u30a2\u30ab\u30a6\u30f3\u30c8\u65b0\u898f\u8ffd\u52a0\u6642\u306b\u9805\u76ee\u3092\u8ffd\u52a0"},"content":{"rendered":"<p><a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/rokuz.com\/?p=1206');\"  href=\"http:\/\/rokuz.com\/?p=1206\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/rokuz.com\/wp-content\/uploads\/2009\/07\/snag-0174-400x241.png\" alt=\"snag-0174\" title=\"snag-0174\" width=\"400\" height=\"241\" class=\"alignnone size-medium wp-image-1218\" srcset=\"http:\/\/gigasmegas.com\/wp-content\/uploads\/2009\/07\/snag-0174-400x241.png 400w, http:\/\/gigasmegas.com\/wp-content\/uploads\/2009\/07\/snag-0174.png 493w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><\/p>\n<address>photo by <a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/www.flickr.com\/photos\/ntr23\/');\"  href=\"http:\/\/www.flickr.com\/photos\/ntr23\/\">ntr23<\/a><\/address>\n<p>6\u6708\u30017\u6708\u3068Xoops\u30b5\u30a4\u30c8\u306e\u69cb\u7bc9\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u304c\u3001Xoops\u306e\u30e6\u30fc\u30b6\u7ba1\u7406\u306b\u3066\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u9805\u76ee\u306e\u8ffd\u52a0\u306a\u3069\u3092Hack\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>Xoops\u306e\u30e6\u30fc\u30b6\u7ba1\u7406\uff08\u9805\u76ee\u306e\u8ffd\u52a0\u306a\u3069\uff09\u306f\u307e\u3060\u307e\u3060\u8ca7\u5f31\u3067\u3059\u306d\u3002<br \/>\n\u30e6\u30fc\u30b6\u7ba1\u7406\u30e2\u30b8\u30e5\u30fc\u30eb\u3082minihaku\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f\u306e\u3067\u3059\u304c\u3001Xoops Cube 2.1\u4ee5\u964d\u3060\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u81ea\u524d\u3067\u6539\u9020\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><!--more--><\/p>\n<h4>\nXoops\u3067\u30e6\u30fc\u30b6\u3092\u65b0\u898f\u8ffd\u52a0\u6642\u306e\u9805\u76ee\u3092\u5897\u3084\u3059\u306b\u306f\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n<\/h4>\n<dl>\n<dt>User\u30e2\u30b8\u30e5\u30fc\u30eb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u95a2\u4fc2<\/dt>\n<dd>\n<ul>\n<li>Root\/modules\/user\/templates\/user_register_form.html<\/li>\n<li>Root\/modules\/user\/templates\/user_register_confirm.html<\/li>\n<\/ul>\n<\/dd>\n<\/dl>\n<dl>\n<dt>Xoops\u30b3\u30a2\u30d5\u30a1\u30a4\u30eb<\/dt>\n<dd>\n<ul>\n<li>Root\/kernel\/user.php<\/li>\n<\/ul>\n<\/dd>\n<\/dl>\n<dl>\n<dt>User\u30e2\u30b8\u30e5\u30fc\u30eb\u30d5\u30a1\u30a4\u30eb\uff08\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u4ee5\u5916\uff09<\/dt>\n<dd>\n<ul>\n<li>ROOT\/modules\/user\/class\/users.php<\/li>\n<li>Root\/modeules\/user\/forms\/UserRegisterEditForm.class.php<\/li>\n<\/ul>\n<\/dd>\n<\/dl>\n<h4>\u65b0\u898f\u9805\u76ee\u3092users\u30c6\u30fc\u30d6\u30eb\u3078\u8ffd\u52a0<\/h4>\n<p>\u4eca\u56de\u3001\u5b9f\u9a13\u7684\u306bhoge\u3068\u3044\u3046\u9805\u76ee\u3092\u5897\u3084\u3057\u3001\u65b0\u898f\u8ffd\u52a0\u6642\u306b\u767b\u9332\u3067\u304d\u308b\u3088\u3046\u6539\u9020\u3057\u307e\u3059\u3002<\/p>\n<dl>\n<dt>hoge<\/dt>\n<dl>\nvarchar 100<br \/>\n\u30c7\u30d5\u30a9\u30eb\u30c8\u5024 null\n<\/dl>\n<\/dl>\n<p>\u3053\u306e\u9805\u76ee\u3092\u3001phpMyAdmin\u306a\u308a\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306a\u308a\u3067\u3001users\u30c6\u30fc\u30d6\u30eb\u3078\u8ffd\u52a0\u3002<\/p>\n<h4>Root\/kernel\/user.php\u3078\u9805\u76ee\u8a2d\u5b9a\u3092\u8ffd\u8a18<\/h4>\n<p>Root\/kernel\/user.php\u306eFunction \u201dXoopsUser\u201d \u5185\u3078\u8ffd\u52a0\u9805\u76ee\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/rokuz.com\/wp-content\/uploads\/2009\/07\/snag-0172.png\" alt=\"XoopsUser\" title=\"XoopsUser\" width=\"444\" height=\"157\" class=\"alignnone size-full wp-image-1211\" srcset=\"http:\/\/gigasmegas.com\/wp-content\/uploads\/2009\/07\/snag-0172.png 444w, http:\/\/gigasmegas.com\/wp-content\/uploads\/2009\/07\/snag-0172-400x141.png 400w\" sizes=\"auto, (max-width: 444px) 100vw, 444px\" \/><\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n        $this-&gt;initVar('hoge', XOBJ_DTYPE_TXTBOX, null, false, 100);\r\n<\/pre>\n<h4>Root\/kernel\/user.php\u306eInsert\u6587\u3092\u4fee\u6b63<\/h4>\n<p>\u30c7\u30fc\u30bf\u9805\u76ee\u8a2d\u5b9a\u306f\u3001\u8a2d\u5b9a\u3059\u308c\u3070Xoops\u306e\u30e6\u30fc\u30b6\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u5224\u5225\u3057\u3066\u3001\u8868\u793a\u306a\u3069\u884c\u3063\u3066\u304f\u308c\u307e\u3059\u304c\u3001\u30c7\u30fc\u30bf\u306eInsert\uff08\u8ffd\u52a0\uff09\u3001Update\uff08\u66f4\u65b0\uff09\u306b\u3064\u3044\u3066\u306f\u3001SQL\u6587\u3092\u624b\u52d5\u3067\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u6050\u308d\u3057\u304f\u3001\u9577\u3044\u4e00\u6587\u304cFunction \u201dinsert\u201d\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>$sql = sprintf(&#8220;INSERT INTO \uff5e<\/p>\n<p>\u3053\u306e\u4e00\u884c\u304cInsert\u6587\u3067\u3001\u65b0\u898f\u8ffd\u52a0\u6642\u306b\u767a\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3078\u3001\u4eca\u56de\u3001\u8ffd\u52a0\u3059\u308b\u9805\u76ee\u3067\u3042\u308b\u3001\u201dhoge\u201d\u3092Inse\uff52\uff54\u3055\u308c\u308b\u3088\u3046\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<h4>\u30e6\u30fc\u30b6\u30e2\u30b8\u30e5\u30fc\u30eb\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u4fee\u6b63<\/h4>\n<p>\u65b0\u898f\u8ffd\u52a0\u6642\u306e\u4f7f\u7528\u3059\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306f2\u7a2e\u985e\u3042\u308a\u307e\u3059\u3002<br \/>\n\u5165\u529b\u7528\u306euser_register_form.html<br \/>\n\u78ba\u8a8d\u7528\u306euser_register_confirm.html<br \/>\n\u3053\u306e2\u7a2e\u985e\u306e\u30d5\u30a1\u30a4\u30eb\u306fXoops\u7ba1\u7406\u753b\u9762\u5185\u3001Altsys\u306a\u3069\u304b\u3089\u4fee\u6b63\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h4>user_register_form.html\u306e\u4fee\u6b63<\/h4>\n<p>\u4eca\u56de\u3001\u8ffd\u52a0\u3059\u308b\u9805\u76ee\u3067\u3042\u308b\u3001\u201dhoge\u201d\u304c\u65b0\u898f\u8ffd\u52a0\u9805\u76ee\u3068\u3057\u3066\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u3001Xoops\u7ba1\u7406\u753b\u9762\u5185\u3001Altsys\u306a\u3069\u304b\u3089\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092HTML\u306eTable\u5185\u3078\u633f\u5165\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n   &lt;tr&gt;\r\n    &lt;td class=&quot;head&quot;&gt;\u65b0\u898f\u8ffd\u52a0\u9805\u76eehoge&lt;\/td&gt;\r\n    &lt;td class=&quot;&lt;{cycle values=&quot;odd,even&quot;}&gt;&quot;&gt;&lt;{xoops_input maxlength=100 name=hoge value=$actionForm-&gt;get('hoge')}&gt;&lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n<\/pre>\n<p><a onclick=\"javascript:pageTracker._trackPageview('\/outgoing\/rokuz.com\/wp-content\/uploads\/2009\/07\/snag-0173.png');\"  href=\"http:\/\/rokuz.com\/wp-content\/uploads\/2009\/07\/snag-0173.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/rokuz.com\/wp-content\/uploads\/2009\/07\/snag-0173-400x259.png\" alt=\"\u65b0\u898f\u8ffd\u52a0\u9805\u76ee\u3092\u8868\u793a\" title=\"\u65b0\u898f\u8ffd\u52a0\u9805\u76ee\u3092\u8868\u793a\" width=\"400\" height=\"259\" class=\"alignnone size-medium wp-image-1214\" srcset=\"http:\/\/gigasmegas.com\/wp-content\/uploads\/2009\/07\/snag-0173-400x259.png 400w, http:\/\/gigasmegas.com\/wp-content\/uploads\/2009\/07\/snag-0173.png 541w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><\/p>\n<h4>user_register_confirm.html\u306e\u4fee\u6b63<\/h4>\n<p>\u65b0\u898f\u30e6\u30fc\u30b6\u767b\u9332\u753b\u9762\u304b\u3089\u3001\u9001\u4fe1\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u30c7\u30fc\u30bf\u78ba\u8a8d\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n\u3053\u306e\u30c7\u30fc\u30bf\u78ba\u8a8d\u753b\u9762\u306b\u3066hoge\u3082\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092HTML\u306eTable\u5185\u3078\u633f\u5165\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n  &lt;tr&gt;\r\n    &lt;td class=&quot;head&quot;&gt;\u65b0\u898f\u8ffd\u52a0\u9805\u76eehoge&lt;\/td&gt;\r\n    &lt;td class=&quot;&lt;{cycle values=&quot;odd,even&quot;}&gt;&quot;&gt;\r\n      &lt;{$registForm-&gt;get('hoge')|xoops_escape}&gt;\r\n    &lt;\/td&gt;\r\n  &lt;\/tr&gt;\r\n<\/pre>\n<h4>User\u30e2\u30b8\u30e5\u30fc\u30eb\u30d5\u30a1\u30a4\u30eb ROOT\/modules\/user\/class\/users.php\u306e\u4fee\u6b63<\/h4>\n<p>ROOT\/modules\/user\/class\/users.php\u5185\u3001Function\u3001\u201dUserUsersObject\u201d\u3078hoge\u9805\u76ee\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$this-&gt;initVar('hoge', XOBJ_DTYPE_STRING, '', false, 100);\r\n<\/pre>\n<h4>Root\/modeules\/user\/forms\/UserRegisterEditForm.class.php\u306e\u4fee\u6b63<\/h4>\n<p>Root\/modeules\/user\/forms\/UserRegisterEditForm.class.php\u5185\u3001Function\u3001\u201dprepare\u201d\u3001\u201d\/\/ Set form properties\u201d\u3078hoge\u9805\u76ee\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$this-&gt;mFormProperties['hoge'] =&amp;amp;amp;amp;amp;amp;amp;amp; new XCube_StringProperty('hoge');\r\n<\/pre>\n<p>Root\/modeules\/user\/forms\/UserRegisterEditForm.class.php\u5185\u3001Function\u3001\u201dprepare\u201d\u3001\u201d\/\/ Set field properties\u201d\u3078hoge\u9805\u76ee\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$this-&gt;mFieldProperties['hoge'] =&amp;amp;amp;amp;amp;amp;amp;amp;amp; new XCube_FieldProperty($this);\r\n$this-&gt;mFieldProperties['hoge']-&gt;setDependsByArray(array('maxlength'));\r\n$this-&gt;mFieldProperties['hoge']-&gt;addVar('maxlength', 100);\r\n<\/pre>\n<p>Root\/modeules\/user\/forms\/UserRegisterEditForm.class.php\u5185\u3001Function\u3001\u201dupdate\u201d\u3078hoge\u9805\u76ee\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$obj-&gt;set('hoge', $this-&gt;get('hoge'));\r\n<\/pre>\n<h4>\u5b9f\u969b\u306b\u3001Xoops\u3078\u30e6\u30fc\u30b6\u3092\u65b0\u898f\u8ffd\u52a0\u3057\u3066\u307f\u3066\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/h4>\n<p>\u3053\u3053\u307e\u3067\u306e\u51e6\u7406\u3067\u3001\u65b0\u898f\u8ffd\u52a0\u6642\u306b\u9805\u76ee\u3092\u5897\u3084\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u53cd\u6620\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u9805\u76ee\u3092\u5897\u3084\u3057\u305f\u969b\u3001\u3053\u306e\u5f8c\u3001\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u51e6\u7406\u304c\u3044\u304f\u3064\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u65b0\u898f\u8ffd\u52a0\u6642\u306e\u5fc5\u9808\u9805\u76ee\u3001\u30c7\u30fc\u30bf\u691c\u8a3c<\/li>\n<li>\u8868\u5074\u30b5\u30a4\u30c8\u5185\u3067\u306e\u3001\u30e6\u30fc\u30b6\u7de8\u96c6\u3001\u8868\u793a\u753b\u9762\u306b\u95a2\u3059\u308b\u4fee\u6b63<\/li>\n<li>Xoops\u7ba1\u7406\u753b\u9762\u5185\u3067\u306e\u3001\u30e6\u30fc\u30b6\u7de8\u96c6\u3001\u8868\u793a\u753b\u9762\u306b\u95a2\u3059\u308b\u4fee\u6b63<\/li>\n<\/ul>\n<p>\u305d\u308c\u305e\u308c\u306b\u4eca\u56de\u3068\u540c\u3058\u304f\u3089\u3044\u306e\u51e6\u7406\u304c\u5fc5\u8981\u304b\u3068\u601d\u308f\u308c\u307e\u3059\u3002<br \/>\n\u3046\uff5e\uff5e\u3093\u3001\u3057\u3063\u304b\u308a\u9762\u5012\u3067\u3059\u306d\u2026\u2026\u2026<\/p>\n","protected":false},"excerpt":{"rendered":"<p>photo by ntr23 6\u6708\u30017\u6708\u3068Xoops\u30b5\u30a4\u30c8\u306e\u69cb\u7bc9\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u304c\u3001Xoops\u306e\u30e6\u30fc\u30b6\u7ba1\u7406\u306b\u3066\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u9805\u76ee\u306e\u8ffd\u52a0\u306a\u3069\u3092Hack\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002 Xoops\u306e\u30e6\u30fc\u30b6\u7ba1\u7406\uff08\u9805\u76ee\u306e\u8ffd\u52a0\u306a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[341,25],"tags":[94,387,314,386,253],"class_list":["post-1206","post","type-post","status-publish","format-standard","hentry","category-web-computer","category-computer","tag-php","tag-user","tag-web","tag-xoops","tag-253"],"_links":{"self":[{"href":"http:\/\/gigasmegas.com\/index.php?rest_route=\/wp\/v2\/posts\/1206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/gigasmegas.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gigasmegas.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gigasmegas.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/gigasmegas.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1206"}],"version-history":[{"count":16,"href":"http:\/\/gigasmegas.com\/index.php?rest_route=\/wp\/v2\/posts\/1206\/revisions"}],"predecessor-version":[{"id":1209,"href":"http:\/\/gigasmegas.com\/index.php?rest_route=\/wp\/v2\/posts\/1206\/revisions\/1209"}],"wp:attachment":[{"href":"http:\/\/gigasmegas.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gigasmegas.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1206"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gigasmegas.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}