{"id":16823,"date":"2012-10-11T11:23:00","date_gmt":"2012-10-11T09:23:00","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/?p=16823"},"modified":"2012-10-11T11:23:35","modified_gmt":"2012-10-11T09:23:35","slug":"wordpress-p2-company-intranet-in-5-minutes","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2012\/10\/11\/wordpress-p2-company-intranet-in-5-minutes\/","title":{"rendered":"WordPress + P2 = Company Intranet in 5 minutes"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p><a href=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2012\/10\/p2-screenshot.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"16824\" data-permalink=\"https:\/\/mamchenkov.net\/wordpress\/2012\/10\/11\/wordpress-p2-company-intranet-in-5-minutes\/p2-screenshot\/\" data-orig-file=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2012\/10\/p2-screenshot.png?fit=640%2C413&amp;ssl=1\" data-orig-size=\"640,413\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"p2 screenshot\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2012\/10\/p2-screenshot.png?fit=640%2C413&amp;ssl=1\" class=\"aligncenter size-medium wp-image-16824\" title=\"p2 screenshot\" src=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2012\/10\/p2-screenshot-500x322.png?resize=500%2C322&#038;ssl=1\" alt=\"\" width=\"500\" height=\"322\" srcset=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2012\/10\/p2-screenshot.png?resize=500%2C322&amp;ssl=1 500w, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2012\/10\/p2-screenshot.png?resize=510%2C329&amp;ssl=1 510w, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2012\/10\/p2-screenshot.png?w=640&amp;ssl=1 640w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>I&#8217;ve mentioned a few times already that I became a big fan of <a href=\"http:\/\/p2theme.com\/\">P2 theme<\/a> for <a href=\"http:\/\/wordpress.org\">WordPress<\/a>. \u00a0I currently maintain multiple installations of it, just because it is so easy to setup and start using. \u00a0I have it as company Intranet or as a project collaboration tool. \u00a0It&#8217;s like a blog, a wiki, and a chat room combined together. \u00a0And since I&#8217;ve installed it so many times, I thought I should publish what exactly I am doing, in case someone else will want to try it.<\/p>\n<p><!--more--><\/p>\n<p>First, download and install the newest version of <a href=\"http:\/\/wordpress.org\/download\/\">WordPress<\/a>. \u00a0I usually create an <em>intranet<\/em> sub-domain (e.g.: <em>intranet.example.com<\/em>) and install WordPress into <em>p2<\/em> folder, just in case I&#8217;ll need some other tools for the company or project later. \u00a0So the full URL becomes something like <em>intranet.example.com\/p2<\/em>\/ .<\/p>\n<p>Secondly, setup an automatic redirect to the p2 folder. \u00a0I usually place index.php file into the document root of intranet.example.com with the following content:<\/p>\n<pre class=\"brush: php; light: true; title: ; notranslate\" title=\"\">\r\n&lt;?php header(&quot;Location: \/p2\/&quot;); ?&gt;\r\n<\/pre>\n<p>Thirdly, login to WordPress administration, navigate to <em>Appearences-&gt;Themes-&gt;Add New<\/em> and install <a href=\"http:\/\/p2theme.com\/\">P2 theme<\/a>. \u00a0If you are not in a hurry, play around with theme options and customize it to your liking. \u00a0I usually set the site title (in <em>Settings-&gt;General<\/em>) to the company name or project title. \u00a0While you are in <em>Settings<\/em>, setup the user-friendly <em>Permalinks<\/em>. \u00a0I usually go for the &#8220;<em>Day and name<\/em>&#8221; option.<\/p>\n<p>Now for the plugins. \u00a0All of my P2 installations are private. \u00a0I want only authorized access, period. \u00a0I also want to make it easy for the registered users to utilize the P2 front-page posting functionality, rather than get confused by the WordPress administration interface. \u00a0Here are the plugins are usually install:<\/p>\n<ul>\n<li><a href=\"http:\/\/wordpress.org\/extend\/plugins\/private-wp-suite\/\">Private WP Suite<\/a> &#8211; allows me to close down the WordPress installation for the general public. \u00a0It will require people to login before they can see anything on the site at all. \u00a0I also configure the plugin to protect the file uploads, and disable RSS feeds. \u00a0The RSS bit sounds annoying, but it&#8217;s not. \u00a0People usually end up with having the intranet always open in the browser tab. So they see all updates coming in straight away. \u00a0It would be nice if there still was an RSS feed with a private key of some sort.<\/li>\n<li><a href=\"http:\/\/wordpress.org\/extend\/plugins\/peters-login-redirect\/\">Peter&#8217;s Login Redirect<\/a> &#8211; redirect users after login to the site&#8217;s front page, rather then into the administration interface.<\/li>\n<li><a href=\"http:\/\/wordpress.org\/extend\/plugins\/global-admin-bar-hide-or-remove\/\">Global Hide\/Remove Toolbar Plugin<\/a> &#8211; hide the administration toolbar by default. \u00a0Those who need it can still enable it their user profile page.<\/li>\n<li><a href=\"http:\/\/wordpress.org\/extend\/plugins\/lightbox-plus\/\">Lightbox Plus<\/a> &#8211; when installed, will make nice larger image popups when images are embedded in the posts.<\/li>\n<li><a href=\"http:\/\/wordpress.org\/extend\/plugins\/p2-likes\/\">P2 Likes<\/a> &#8211; optionally, if you want to give site users the functionality of up-voting some posts, install this plugin.<\/li>\n<\/ul>\n<p>We are almost done. \u00a0That&#8217;s configure the sidebar widgets now. \u00a0Of course, it all depends on what you&#8217;ll need and how you plan to use your site, but here is my starting point:<\/p>\n<ul>\n<li><strong>Search<\/strong>. \u00a0This will bring the search box at the top of the right sidebar &#8211; quick access to all posted information.<\/li>\n<li><strong>P2 Recent Comments<\/strong>. \u00a0Having this widget always visible on page load helps promote discussions.<\/li>\n<li><strong>P2 Recent Tags<\/strong>. \u00a0I find it very helpful in navigating to recent posts, as well suggestive to users on how to tag their postings.<\/li>\n<li><strong>Archives<\/strong>. \u00a0Access to posts by month is more useful than by category, since by default in P2 all posts will go to the default category and not many people will categorize posts. \u00a0Tags are your friends, categories &#8211; not so much.<\/li>\n<li><strong>Meta<\/strong>. \u00a0This is especially important for those installs that hide administration toolbar. \u00a0Meta provides the direct link to the site administration for those who need it.<\/li>\n<\/ul>\n<p>After I arrange those widgets, I usually do a few custom ones. \u00a0Here are the most common ones:<\/p>\n<ul>\n<li><strong>Twitter updates<\/strong>. \u00a0Usually all companies and projects have a Twitter account with frequent updates. \u00a0I find that it&#8217;s handy to show those updates in the sidebar, especially if there are several people tweeting. \u00a0It keeps everyone up-to-date.<\/li>\n<li><strong>RSS feed<\/strong>. \u00a0Most of the projects that I have P2 setup for are being developed on GitHub (private repositories). \u00a0GitHub provides private RSS feeds, which I use for the sidebar. \u00a0This is useful again to keep everyone up-to-date, and to have a quick way of checking when were the latest changes done.<\/li>\n<li><strong>Custom menu<\/strong>. \u00a0This is super handy for all sorts of shortcuts. \u00a0For instance, you might be using &#8216;bug&#8217;, &#8216;feature&#8217;, &#8216;todo&#8217; tags and then create a custom menu (through <em>Appearence-&gt;Menus<\/em> administration) that would link to those tags. With that you&#8217;ll have a quick access to all posts tagged with specific tags. \u00a0Or you could use &#8216;for-user1&#8217;, &#8216;for-user2&#8217;, &#8216;for-userN&#8217; tags when you want specific posts associated with specific users of the site. \u00a0Then you could have a custom menu with all &#8216;for-*&#8217; tags. \u00a0Users will have a quick way to see who&#8217;s given what. \u00a0Or you might just have a list of frequently accessed Google Docs, like API reference or General Ledger &#8211; create a menu with links to those documents and add it as a custom menu widget. \u00a0The possibilities are endless.<\/li>\n<\/ul>\n<p>All you have to do now is add your intranet users. \u00a0Create them <em>Users-&gt;Add New<\/em>, set their access level to <em>Author<\/em>, and suggest to them to setup their <a href=\"http:\/\/gravatar.com\">Gravatar<\/a>, so that everybody could see their picture next to their posts and comments.<\/p>\n<p>That&#8217;s all. You are done. \u00a0Enjoy!<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>I&#8217;ve mentioned a few times already that I became a big fan of P2 theme for WordPress. \u00a0I currently maintain multiple installations of it, just because it is so easy to setup and start using. \u00a0I have it as company Intranet or as a project collaboration tool. \u00a0It&#8217;s like a blog, a wiki, and a &hellip; <a href=\"https:\/\/mamchenkov.net\/wordpress\/2012\/10\/11\/wordpress-p2-company-intranet-in-5-minutes\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">WordPress + P2 = Company Intranet in 5 minutes<\/span><\/a><\/p>\n<!-- google_ad_section_end -->\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,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,62,1334,60],"tags":[1079,19,3012,1364],"keyring_services":[],"class_list":["post-16823","post","type-post","status-publish","format-standard","hentry","category-general","category-technology","category-web-work","category-wordpress","tag-productivity","tag-tools","tag-wordpress-plugins","tag-wordpress-themes"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":21451,"url":"https:\/\/mamchenkov.net\/wordpress\/2014\/04\/08\/wordpress-themes-houston\/","url_meta":{"origin":16823,"position":0},"title":"WordPress themes : Houston","author":"Leonid Mamchenkov","date":"April 8, 2014","format":false,"excerpt":"I've covered the simple, but very functional p2 theme for WordPress, that helps one to create an Intranet \u00a0in five minutes or so. \u00a0One thing that p2 lacks a bit though is eye-pleasing beauty. \u00a0It's simple and functional alright, but it's not much to look at. It turns out that\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"houston screenshot","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2014\/04\/houston-screenshot-500x375.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":7312,"url":"https:\/\/mamchenkov.net\/wordpress\/2003\/12\/24\/2003-12-24\/","url_meta":{"origin":16823,"position":1},"title":"2003-12-24","author":"Leonid Mamchenkov","date":"December 24, 2003","format":false,"excerpt":"Merry Christmas to everyone who celebrates it! :) I, myself and me have spent an excellent night in the NOC watching over the network and polishing the almost ready for release Intranet code. :)","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7315,"url":"https:\/\/mamchenkov.net\/wordpress\/2003\/12\/27\/2003-12-27\/","url_meta":{"origin":16823,"position":2},"title":"2003-12-27","author":"Leonid Mamchenkov","date":"December 27, 2003","format":false,"excerpt":"Off to Alex and Katia to celebrate their daughter's birthday (3 month). Lots of fun, excellent food, and pictures taken. After the party I went to NOC for the maintenace shift, during which I was way too productive. :) Fixed few bugs in the recently release Intranet and finished few\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7307,"url":"https:\/\/mamchenkov.net\/wordpress\/2003\/12\/18\/gnu-arch-first-impressions\/","url_meta":{"origin":16823,"position":3},"title":"GNU Arch &#8211; first impressions","author":"Leonid Mamchenkov","date":"December 18, 2003","format":false,"excerpt":"Something really strange happened today. I never thought that this is possible, even less that it could happen to me, but it did. CVS did something really strange to my Intranet\/Webcentral repository. All the code is there, but there is no more diffirentiation between versions. Whatever you try to see,\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9326,"url":"https:\/\/mamchenkov.net\/wordpress\/2005\/08\/10\/the-worst-code-ever\/","url_meta":{"origin":16823,"position":4},"title":"The worst code ever","author":"Leonid Mamchenkov","date":"August 10, 2005","format":false,"excerpt":"Today is the black day in my experiences calendar. I have seen the worst code ever. I found all that mess in our corporate intranet. It has been written by one guy who long left the company and noone looks at it nomore. Other programmers avoid it like a plague\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7416,"url":"https:\/\/mamchenkov.net\/wordpress\/2004\/04\/07\/new-colors\/","url_meta":{"origin":16823,"position":5},"title":"New colors","author":"Leonid Mamchenkov","date":"April 7, 2004","format":false,"excerpt":"As you can see, there is yet another new color scheme for this site. Since some of the visitors complained about the previous one being \"suicidal\", I decided to change it. Finding few colors that work nicely together is not an easy task. Especially for the guy who never had\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/16823","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=16823"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/16823\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=16823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=16823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=16823"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=16823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}