{"id":162,"date":"2009-01-09T07:00:56","date_gmt":"2009-01-09T14:00:56","guid":{"rendered":"http:\/\/blogs.icta.net\/slty\/?p=162"},"modified":"2009-01-23T16:38:05","modified_gmt":"2009-01-23T23:38:05","slug":"blog-building-1-registration","status":"publish","type":"post","link":"https:\/\/blogs.icta.net\/slty\/2009\/01\/09\/blog-building-1-registration\/","title":{"rendered":"Blog building #1: registration"},"content":{"rendered":"<p><span style=\"border-top: 3px double; border-bottom: 1px solid; padding: 0.5em; line-height: 1.3; font-size: 1.6em; float: right; text-align: left; margin-left: 0.5em; width: 120px; color: #777777;\">I <em>think<\/em> site registration is now working&#8230; <\/span>We put together a friendly\/welcoming site, invited a bunch of people&#8230; and <em>nobody <\/em>registered. Then we started getting emails from friends&#8230; &#8220;it won&#8217;t let me register!&#8221;<\/p>\n<p>After tearing out a few more of my dwindling collection of hairs, I think site registration is now working for everyone. Had to create a plugin to fix it; tech details below!<\/p>\n<p>For now, we&#8217;ve enabled comments even if you <em>can&#8217;t<\/em> register. Please tell us&#8230;<\/p>\n<ul>\n<li>Is registration working for you?<\/li>\n<li>Does the blog site look ok?<\/li>\n<li>Is anything hard to navigate?<\/li>\n<li>Do the private and\/or public RSS feeds work?<\/li>\n<\/ul>\n<p>Thanks!<\/p>\n<h4><!--more-->Tech Details<\/h4>\n<p>This blog is built using WPmu &#8211; multiuser WordPress. There are settings that allow new user registration and even new blog creation. Unfortunately, what they <em>don&#8217;t <\/em>tell you is this: there&#8217;s no way to enable the setting that allows users to register themselves!<\/p>\n<p>I&#8217;d love it if software designers put more effort into serving the needs of blog administrators, as well as you the blog readers. We&#8217;d call that a <em>SLTy <\/em>perspective: serving well.<\/p>\n<p>Bottom line: a bit of web searching revealed the issue and the code I needed. Moments later, I had created a plugin that does what we need. It&#8217;s short and sweet:<\/p>\n<pre>&lt;?php\r\n\/*\r\nPlugin Name: ICTA WPmu Registration Setup\r\nPlugin URI: https:\/\/blogs.icta.net\/plugins\/\r\nDescription: Decipher users_can_register from WPmu registration setting\r\nVersion: 0.1\r\nAuthor: Mr Pete\r\nAuthor URI: https:\/\/blogs.icta.net\/plugins\/\r\n*\/\r\n\r\nglobal $user_ID;\r\n\r\nfunction wpmufrl() {\r\n     $registration = get_site_option('registration');\r\n     if ($registration == 'all' || $registration == 'user') {\r\n         return true;\r\n     } else {\r\n         return false;\r\n     }\r\n}\r\nadd_filter('option_users_can_register', 'wpmufrl');\r\n?&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I think site registration is now working&#8230; We put together a friendly\/welcoming site, invited a bunch of people&#8230; and nobody registered. Then we started getting emails from friends&#8230; &#8220;it won&#8217;t let me register!&#8221; After tearing out a few more of my dwindling collection of hairs, I think site registration is now working for everyone. Had [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[43],"tags":[],"coauthors":[],"class_list":["post-162","post","type-post","status-publish","format-standard","hentry","category-blog"],"_links":{"self":[{"href":"https:\/\/blogs.icta.net\/slty\/wp-json\/wp\/v2\/posts\/162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.icta.net\/slty\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.icta.net\/slty\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.icta.net\/slty\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.icta.net\/slty\/wp-json\/wp\/v2\/comments?post=162"}],"version-history":[{"count":11,"href":"https:\/\/blogs.icta.net\/slty\/wp-json\/wp\/v2\/posts\/162\/revisions"}],"predecessor-version":[{"id":166,"href":"https:\/\/blogs.icta.net\/slty\/wp-json\/wp\/v2\/posts\/162\/revisions\/166"}],"wp:attachment":[{"href":"https:\/\/blogs.icta.net\/slty\/wp-json\/wp\/v2\/media?parent=162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.icta.net\/slty\/wp-json\/wp\/v2\/categories?post=162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.icta.net\/slty\/wp-json\/wp\/v2\/tags?post=162"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/blogs.icta.net\/slty\/wp-json\/wp\/v2\/coauthors?post=162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}