{"id":562,"date":"2008-11-02T21:27:17","date_gmt":"2008-11-03T04:27:17","guid":{"rendered":"http:\/\/mightyohm.com\/blog\/?p=562"},"modified":"2015-09-26T11:11:11","modified_gmt":"2015-09-26T18:11:11","slug":"admin-only-access-fix-for-wordpresscom-stats-plugin","status":"publish","type":"post","link":"https:\/\/mightyohm.com\/blog\/2008\/11\/admin-only-access-fix-for-wordpresscom-stats-plugin\/","title":{"rendered":"Admin-only Access Fix for WordPress.com Stats Plugin"},"content":{"rendered":"<p>I use the <a href=\"http:\/\/wordpress.org\/extend\/plugins\/stats\/\">WordPress.com Stats Plugin<\/a> and highly recommend it to others who are interested in monitoring traffic to their <a href=\"http:\/\/www.wordpress.org\">WordPress<\/a> blog.<\/p>\n<p>One issue I have had with this otherwise excellent plugin is that only the &#8216;admin&#8217; user is allowed to view the Blog Stats summary in the Dashboard.\u00a0 To me, this is akin to having to constantly log in as root on a UNIX system &#8211; it should not be necessary and presents a security risk to the blog (one forgotten logout on a shared terminal could spell disaster for the blog).<\/p>\n<p>To fix this, I modified the stats.php file, replacing all instances of &#8216;manage_options&#8217; with &#8216;moderate_comments&#8217;.\u00a0 This change allows both editors and admins to see stats by lowering the access level the plugin uses to decide if a user is authorized.<\/p>\n<p>Thanks to this fix, I no longer have to log in as the blog administrator just to see stats.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I use the WordPress.com Stats Plugin and highly recommend it to others who are interested in monitoring traffic to their WordPress blog. One issue I have had with this otherwise excellent plugin is that only the &#8216;admin&#8217; user is allowed to view the Blog Stats summary in the Dashboard.\u00a0 To me, this is akin to &hellip; <a href=\"https:\/\/mightyohm.com\/blog\/2008\/11\/admin-only-access-fix-for-wordpresscom-stats-plugin\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Admin-only Access Fix for WordPress.com Stats Plugin<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_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},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[93,92],"class_list":["post-562","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-stats","tag-wordpress"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pioCd-94","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":2910,"url":"https:\/\/mightyohm.com\/blog\/2010\/03\/run-avrdude-without-root-privs-in-ubuntu\/","url_meta":{"origin":562,"position":0},"title":"Run avrdude on Ubuntu without root","author":"Jeff","date":"March 30, 2010","format":false,"excerpt":"A quick tip for Ubuntu users: As installed by the avrdude package on Ubuntu, avrdude needs root priveledges to work properly with the Adafruit USBTinyISP AVR programmer.\u00a0 This gets annoying pretty fast because to program an AVR you need to run avrdude (or make) with sudo every time or log\u2026","rel":"","context":"In &quot;Microcontrollers&quot;","block_context":{"text":"Microcontrollers","link":"https:\/\/mightyohm.com\/blog\/category\/microcontrollers\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1872,"url":"https:\/\/mightyohm.com\/blog\/2009\/05\/building-a-wifi-radio-part-9-a-few-odds-and-ends\/","url_meta":{"origin":562,"position":1},"title":"Building a Wifi Radio &#8211; Part 9, A Few Odds and Ends","author":"Jeff","date":"May 27, 2009","format":false,"excerpt":"This is the ninth part of an ongoing series about building a low cost, open source streaming internet radio based on the ASUS WL-520gU Wireless Router.\u00a0 If you haven\u2019t already, check out the previous parts (see the links at the end of this article) for some background about the project.\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/mightyohm.com\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"http:\/\/www.ftjcfx.com\/image-3238164-10440897","width":350,"height":200},"classes":[]},{"id":300,"url":"https:\/\/mightyohm.com\/blog\/2008\/09\/arduino-fix-your-pin-spacing\/","url_meta":{"origin":562,"position":2},"title":"Arduino &#8211; fix your pin spacing!","author":"Jeff","date":"September 24, 2008","format":false,"excerpt":"From the Arduino Diecimila page on arduino.cc: Physical Characteristics ... Note that the distance between digital pins 7 and 8 is 160 mil (0.16\"), not an even multiple of the 100 mil spacing of the other pins. Seriously, why???\u00a0 This means you can't drop a protoboard on top of an\u2026","rel":"","context":"In &quot;Microcontrollers&quot;","block_context":{"text":"Microcontrollers","link":"https:\/\/mightyohm.com\/blog\/category\/microcontrollers\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5521,"url":"https:\/\/mightyohm.com\/blog\/2013\/08\/rescue-shield-kits-back-in-stock-fix-your-bricked-avrs\/","url_meta":{"origin":562,"position":3},"title":"Rescue Shield kits back in stock &#8211; fix your bricked AVRs!","author":"Jeff","date":"August 3, 2013","format":false,"excerpt":"A new batch of HV Rescue Shield kits are fresh off the hotplate and ready to rescue your bricked AVRs! You can purchase kits here. Also, I only have a few Geiger Counter kits left in stock. Things have been pretty busy here lately, so it will likely be a\u2026","rel":"","context":"In &quot;Kits&quot;","block_context":{"text":"Kits","link":"https:\/\/mightyohm.com\/blog\/category\/kits\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2715,"url":"https:\/\/mightyohm.com\/blog\/2010\/01\/debugging-david-agans\/","url_meta":{"origin":562,"position":4},"title":"Debugging (David Agans)","author":"Jeff","date":"January 11, 2010","format":false,"excerpt":"I recently saw David Agans' book Debugging mentioned in one of the many trade journals I receive (I can't remember which one).\u00a0 After seeing how much praise it received on amazon.com, I decided to pick up a copy. Debugging really spoke to me because a large portion of my career\u2026","rel":"","context":"In &quot;Books and Resources&quot;","block_context":{"text":"Books and Resources","link":"https:\/\/mightyohm.com\/blog\/category\/books-and-resources\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mightyohm.com\/blog\/wp-content\/uploads\/2009\/12\/debugging.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3543,"url":"https:\/\/mightyohm.com\/blog\/2011\/01\/hv-rescue-shield-2-0-status-update\/","url_meta":{"origin":562,"position":5},"title":"HV Rescue Shield 2.0 status update","author":"Jeff","date":"January 12, 2011","format":false,"excerpt":"Just before the holidays, an issue with the Rescue Shield 2.0 (which I have at times referred to as \"2.x\") was identified. \u00a0The issue involves problems reading\/writing to parts that have certain startup timer (SUT) fuse values set. There is some more information about the issue on the forums and\u2026","rel":"","context":"In &quot;Kits&quot;","block_context":{"text":"Kits","link":"https:\/\/mightyohm.com\/blog\/category\/kits\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/posts\/562","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/comments?post=562"}],"version-history":[{"count":1,"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/posts\/562\/revisions"}],"predecessor-version":[{"id":563,"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/posts\/562\/revisions\/563"}],"wp:attachment":[{"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/media?parent=562"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/categories?post=562"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/tags?post=562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}