{"id":2163,"date":"2008-04-12T18:04:50","date_gmt":"2008-04-12T18:04:50","guid":{"rendered":""},"modified":"2026-04-18T22:58:19","modified_gmt":"2026-04-18T22:58:19","slug":"how-to-create-a-private-blog-using-b2evolution","status":"publish","type":"post","link":"https:\/\/hellem.org\/wblog\/?p=2163","title":{"rendered":"How to create a private blog using b2evolution"},"content":{"rendered":"<p>I&#8217;ve just installed the latest version of B2evolution and now wanted to create a new private blog as well for friend and family only. To be able to do that I needed to be able to password protect the blog. This is not straight forward in B2 if you are not familiar with programming PHP. I would hope for that they make this a feature in backoffice in coming releases.<\/p>\n<p>Anyhow, this post in the forum got me started<br \/>\n<a href=\"http:\/\/forums.b2evolution.net\/viewtopic.php?t=15031&amp;highlight=password \">http:\/\/forums.b2evolution.net\/viewtopic.php?t=15031&amp;highlight=password <\/a><\/p>\n<p>I needed to adjust the code a bit, so this is what I ended up with<\/p>\n<blockquote><p>\nif ( isset($blog) == &#8220;2&#8221; ) {<br \/>\n   $login_required = true;<br \/>\n}<br \/>\nelseif (!isset($login_required)) {<br \/>\n\t$login_required = false;<br \/>\n}<\/p><\/blockquote>\n<p>At least because of how I have configured my blogs you will need to check if $blog is set, or else you will get an error.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve just installed the latest version of B2evolution and now wanted to create a new private blog as well for friend and family only. To be able to do that I needed to be able to password protect the blog. This is not straight forward in B2 if you are not familiar with programming PHP. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-2163","post","type-post","status-publish","format-standard","hentry","category-c18"],"_links":{"self":[{"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=\/wp\/v2\/posts\/2163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2163"}],"version-history":[{"count":1,"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=\/wp\/v2\/posts\/2163\/revisions"}],"predecessor-version":[{"id":15427,"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=\/wp\/v2\/posts\/2163\/revisions\/15427"}],"wp:attachment":[{"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hellem.org\/wblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}