<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jeff Sayre Webtrepreneur &#187; BuddyPress</title>
	<atom:link href="http://jeffsayre.com/tag/buddypress/feed/" rel="self" type="application/rss+xml" />
	<link>http://jeffsayre.com</link>
	<description>Thoughts on startups, leadership, the Web, and disruptive technologies</description>
	<lastBuildDate>Sat, 14 Apr 2012 16:43:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<atom:link rel="next" href="http://jeffsayre.com/tag/buddypress/feed/?page=2" />

		<item>
		<title>BP Privacy v1.0-RC1 is now available!</title>
		<link>http://jeffsayre.com/2011/02/16/bp-privacy-v1-0-rc1-is-now-available/</link>
		<comments>http://jeffsayre.com/2011/02/16/bp-privacy-v1-0-rc1-is-now-available/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 16:37:47 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[GPL]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=1307</guid>
		<description><![CDATA[After more than 1500 hours of work, 7300 code and comment lines, and creation of a 38-page manual, BP Privacy release candidate one is now available for download and testing. It is a release candidate, not to be used in a production site. It requires at least PHP 5.2.x and is developed and tested to [...]]]></description>
			<content:encoded><![CDATA[<p>After more than 1500 hours of work, 7300 code and comment lines, and creation of a 38-page manual, BP Privacy release candidate one is now available for download and testing. It is a release candidate, not to be used in a production site. It requires at least PHP 5.2.x and is developed and tested to work with WordPress 3.0.5 and BuddyPress 1.2.7. It also requires a modern Web browser and you and your users must have javascript enabled.<span id="more-1307"></span></p>
<p>After much debate, I decided to place BP Privacy in the WordPress Plugin Repository as that is the easiest place for the community to access it. Placing it elsewhere might result in it being quickly forgotten.</p>
<p>Please be advised that as of this post and release, I am no longer developing or supporting this plugin. Therefore, with this release ends my BuddyPress Privacy journey. BP Privacy is now in the hands of the community. It is up to someone, or preferably a team of developers, to fork BP Privacy, reshape it to their vision, and help it grow to meet the community&#8217;s needs.</p>
<p>This means that if you have issues with the plugin your only recourse is to read the BuddyPress Privacy Manual (start with the Site Administrator&#8217;s Guide section) or hire a developer. I am not for hire so please do not contact me. Also, I will not be answering any emails about BP Privacy, including requests for suggestions on competent developers to hire. Please use the BuddyPress Support forums instead.</p>
<p><a href="http://wordpress.org/extend/plugins/bp-privacy/">Visit this link to download BP Privacy</a>!</p>
<p><strong>Even More Details</strong></p>
<p>For a detailed history of BP Privacy, read my article, <a href="http://jeffsayre.com/2011/01/19/bp-privacy-history-and-lessons-learned-from-developing-a-major-buddypress-component/">BP Privacy: History and Lessons Learned from Developing a Major BuddyPress Component</a>.</p>
<p><strong>BP Privacy’s Future</strong></p>
<p>The current version of this plugin was to be released as v1.0 but I have reverted the version numbering to pre-release status. Therefore it should be treated as a pre-release version and not used in a production environment.</p>
<p>Before installing and using this plugin, you should fully and carefully read the plugin’s readme.txt file, the disclaimer.txt file, and the BuddyPress Privacy Manual that comes bundled with the plugin.</p>
<p>Also, please see the future.txt file which contains the roadmap features for BP Privacy’s further development. The items listed under v1.0-RC2 were originally planned for multiple version releases&#8211;some under v1.0.x and some under v1.1. These features have been gathered under v1.0-RC2 to suggest that they should be developed, fully tested, and rolled out before someone else (or some team) releases a production-ready fork of this plugin. It will take that long for a developer or team of developers to sufficiently understand the inner workings of this plugin before they can claim that their forked-version is production ready.</p>
<p>Enjoy and best of luck!</p>
<p><em>Note: Comments are turned on but I will not be allowing any comments asking for support as I am not providing support. I also will not be allowing through any negative comments. This is not a public forum.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2011/02/16/bp-privacy-v1-0-rc1-is-now-available/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>BP Privacy: History and Lessons Learned from Developing a Major BuddyPress Component</title>
		<link>http://jeffsayre.com/2011/01/19/bp-privacy-history-and-lessons-learned-from-developing-a-major-buddypress-component/</link>
		<comments>http://jeffsayre.com/2011/01/19/bp-privacy-history-and-lessons-learned-from-developing-a-major-buddypress-component/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 20:29:35 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[Entrepreneurship & Leadership]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[FOSS]]></category>
		<category><![CDATA[freedoms]]></category>
		<category><![CDATA[GPL]]></category>
		<category><![CDATA[leadership]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[project management]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=1288</guid>
		<description><![CDATA[Coding great-quality, open source software, while often rewarding, can also be a thankless, difficult task. As many have been asking for an update on BP Privacy&#8211;also known as the BuddyPress Privacy Component&#8211;I thought I would take the time to write up an exhaustive history of the project and share some lessons learned. It is important [...]]]></description>
			<content:encoded><![CDATA[<p>Coding great-quality, open source software, while often rewarding, can also be a thankless, difficult task. As many have been asking for an update on BP Privacy&ndash;also known as the BuddyPress Privacy Component&ndash;I thought I would take the time to write up an exhaustive history of the project and share some lessons learned.<span id="more-1288"></span></p>
<p>It is important to state up front that there are many wonderful, helpful, supportive, knowledgeable, community-minded members in the greater WordPress community. If you are an active participant within this community, you already understand that fact.</p>
<p>Of course, a great community of supportive, fun-loving people does not guarantee that you will face few challenges with your WordPress or BuddyPress projects&mdash;whether that is starting and running a community, designing themes, or developing plugins.</p>
<p>This is the story about the challenges I have faced in bringing BP Privacy to fruition. It is just one developer&#8217;s journey and, as such, should not be construed as anything more than my perspective.</p>
<p>I hope that those who manage to read through this entire, long article walk away with not only a better understanding of some of the difficulties BP Privacy has faced, but also a feel for how they might want to approach taking on similar open source projects in the future.</p>
<p><strong>Genesis of the Idea</strong></p>
<p>In the beginning, there was an idea that BuddyPress needed privacy. Well, that idea was not present at the genesis of BuddyPress as it does not offer core privacy, but the idea was hatched in the early pre-RC2 release days of the BuddyPress project by two very active community leaders&mdash;one of whom was me.</p>
<p>At the inception of this project, BP Privacy had two developers. That&#8217;s right. I had a project partner. This partner was a key BuddyPress member and very interested in coding his first BP plugin. We teamed up on this project as we realized the complexity of the task at hand and that it would be beneficial to have a project partner.</p>
<p>We had a number of discussions about how we should tackle this project. I set up a subversion repository on my dedicated server for the project and gave him access. I started the long, tedious process of learning, really understanding, the inner workings of BuddyPress. After all, BP Privacy would not be a typical plugin. It had to interact with all the core BuddyPress components. It had to monitor and take control of output based on an individual&#8217;s desires. We both realized that BP Privacy was going to be a major, foundational component in its own right&mdash;even though it would be a third-party plugin.</p>
<p>However, as weeks passed into months, my project partner&#8217;s schedule did not allow him to participate. So, I told him that I was just going to get started and that he could join in at any time.</p>
<p>So that is the humble, less than exciting beginning of BP Privacy. It started with a two-person project team but ended up becoming a solo effort.</p>
<p><strong>BP Privacy Timeline</strong></p>
<p>On the BP Privacy site, I state <a href="http://bp-privacy.com/2010/09/privacy-comes-to-buddypress/">in a blog post</a> that this journey has been 16-months long. Of course, that was posted  basically October 1, 2010. So as of the date on this post, the process is nearing 20 months. The reality, however, is that this project had its inception even earlier, almost two years ago.</p>
<p>Here is a blow-by-blow timetable for BP Privacy and some of the key factors and issues at each point along the way:</p>
<p><em>Project idea inception</em>: Early April 2009. My project partner and I began discussing BP Privacy (what was at that time called BPAz or BP-Authz)</p>
<p><em>First code written</em>: June 23, 2009. This was two months after hatching the concept. It was the point when my project partner determined his schedule would not allow him to participate. So, I started coding the project on my own.</p>
<p><em>First public beta release</em>: December 5, 2009. Only four months and two weeks after the first code block was written, <a href="http://jeffsayre.com/2009/12/05/buddypress-privacy-component-released/">I released a very solid public beta version</a> to the community. Note that before that public beta release, there was a small, select group of private alpha testers.</p>
<p>This was a very solid beta version with only a few minor bugs. It worked perfectly with BuddyPress v1.1.3, offering privacy filtering for four of BuddyPress&#8217; then core components. But the rug was about to be pulled out from underneath the project.</p>
<p><em>Codebase and platform concerns arise</em>: January 2, 2010. As BuddyPress 1.2 was fast approaching release, it became clear that a major BP Privacy code refactoring would be required. A good portion of the previous 4 months of work would need to be reevaluated and much rewritten. As I looked at the time commitment involved, I realized <a href="http://jeffsayre.com/2010/01/02/do-you-support-buddypress-privacy/">I needed to try a new approach</a>.</p>
<p>Not surprisingly, this approach failed. It only raised about $175 dollars. Without a big financial boost to help me focus on BP Privacy, I had to turn my attention elsewhere for awhile.</p>
<p><em>Late spring through early fall of 2010</em>: The BuddyPress project experienced critical uncertainties in my opinion. These uncertainties made me question its long-term health. During this time, the development of BP Privacy progressively slowed down, practically grinding to a halt in late summer of 2010 as I awaited a few, final core patches I had submitted months before to be accepted.</p>
<p>Due to these factors, nine months passed with very little development time being invested.</p>
<p><em>Announcement of Public Release (v1.0)</em>: September 30, 2010. I was privy to some promising developments in the world of BuddyPress that gave me hope that BuddyPress might actually weather the storm. So, after almost nine months of greatly reduced activity on my part, I went out on a limb, venturing back into the BP Privacy project on a more serious level once again.</p>
<p>I created the <a href="http://bp-privacy.com/">BP Privacy site</a> and made an announcement on that new site that BP Privacy would be released on November 8, 2010. This is the first officially-advertised date given for the release of the public, production-ready version (v1.0).</p>
<p>A few weeks later came <a href="http://buddypress.org/2010/10/introducing-paul-and-boone-2/">the news for which I had been waiting</a>. The BuddyPress community had a shot of adrenaline and renewed hope. We welcomed the announcement that <a href="http://twitter.com/pgibbs">Paul Gibbs</a> and <a href="http://twitter.com/boonebgorges">Boone Gorges</a> had been &#8220;promoted&#8221; to core committers.</p>
<p>Of course, November 8, 2010 came and went. I continued working on BP Privacy as time permitted as I patiently awaited the release of BuddyPress 1.2.7 which was finally released on December 22, 2010.</p>
<p><em>BP Privacy&#8217;s Future</em>:  See the end of this article.</p>
<p><strong>Time Invested and Anticipated Returns</strong></p>
<p>Projects of the magnitude of BP Privacy require a considerable time commitment. Whereas it is difficult to be absolutely precise, I have a pretty accurate estimate as to the number of hours I&#8217;ve invested in BP Privacy. My total time spent to date working on BP Privacy is 1450 hours.</p>
<p>What kinds of activities go into a project that would require such a time commitment? A great number of essential activities such as: emails, forum and IRC discussions, support of alpha and beta1 testers, writing and submitting core patches required to bring privacy services to BuddyPress, debating a number of these patches, studying and thoroughly understanding the inner workings of BP, keeping up to date with codebase changes in BP Trac, <a href="http://jeffsayre.com/2010/04/29/introducing-wordpress-hook-sniffer-a-developer-plugin/">writing tools that were necessary in figuring out some unexpected behaviors with BuddyPress&#8217; action and filter hooks</a>, continuous and exhaustive testing of BP Privacy, and writing detailed documentation. Of course, all of this is on top of the actual coding of the component itself which has required (so far) two major refactorings of the codebase.</p>
<p>What will I earn for all of this effort? Zero. Okay, I had a total of about $225 in donations to help support development ($175 as mentioned above plus $50 received before that post). I am very grateful to all who donated, to my select testers, and to everyone who offered support in other ways.</p>
<p>This means that I will have earned just shy of 16 cents per hour working on BP Privacy. So, the next time you question the commitment and contribution of those who actively volunteer in the open source world, remember that number. Of course, if all the additional <a href="http://jeffsayre.com/2009/12/21/i’m-buddypress-ed-for-time/">hours of time that I&#8217;ve donated on the BP support forums</a>, IRC, via email, Twitter, and Skype are included, that total would undoubtably be about half of that.</p>
<p>Financially, I would have been better off spending that time working at McDonalds. It is ironic that the vast majority of people who will benefit from my work will not even contribute enough for me to buy a Big Mac. By the way, I do not eat at McDonalds so please don&#8217;t send coupons. In fact, I am not interested in any more donations.</p>
<p>Why do I have a section emphasizing the monetary aspects of BP Privacy? Because like the vast majority of people, I need to pay bills, put food on my family&#8217;s table, and save for the future. How many of you can donate 1450 hours of time creating free products or services for others to use?</p>
<p>I am a vocal advocate of the open source model, as anyone who reads my blog and tweets would know. I have volunteered a thousand hours plus of my time answering questions on the BuddyPress community support forums, via email, in IRC, on the phone, and via Skype. None of those hours are included in my total time spent on BP Privacy. Like many active members of the community, I give in more ways than just creating plugins.</p>
<p>The reality for me is that this community and its open source model does not make it possible to earn even a small part of my living in a way that I prefer&mdash;coding great-quality GPLed plugins that provide needed services to others.</p>
<p>As I do not take on client work&ndash;I&#8217;ve discussed this fact with people many times before&ndash;I need another means with which to recoup some of the time I have invested in coding open source software for the community. If you really want to learn more about this point, please <a href="http://jeffsayre.com/2010/01/02/how-can-buddypress-developers-earn-a-living/">read this post about this issue from my perspective</a>&mdash;and read the comments for a fascinating discussion.</p>
<p><strong>Lessons Learned</strong></p>
<p>Here are a few lessons learned that may help other WordPress and BuddyPress developers have a better experience with offering GPLed software to the greater community.</p>
<p><em>Work on Projects that Give You Energy, Not Sap Your Strength</em>: By and large, I have lost more energy working on the BP Privacy project than I have gained. It has been exceedingly frustrating at times. To be honest, if this were not something desperately needed for the BuddyPress platform, I would have dropped this project a year ago.</p>
<p>At the time I started coding BP Privacy, I was planning on using BuddyPress as the foundation of my startup, and privacy was key to that vision. So it made sense to continue BP Privacy and then release the component to the greater community once it was ready. Had I any idea how vocal the negative minority would be as they impatiently waited for me to provide them with high-quality, free-as-in-cost software, I would have canned the community release a long time ago and just worked on it for my private use.</p>
<p><em>The Vocal, Negative Minority</em>: It is important to realize that more likely than not, the vast majority of users will be happy about your work, or at least indifferent. Unfortunately, human nature makes us more vocal when we&#8217;re displeased than when we are pleased. It is a minority of users that will be anywhere from disappointed to obsessively outraged. It will be this minority that will be most vocal. If you release your work to the community, expect to have a greater volume of &#8220;I hate you&#8221; than &#8220;I love you&#8221; feedback from your user base.</p>
<p>Whereas community members may appreciate your volunteer help on various support forums, and paying clients may love you, when it comes to freely-contributed plugins,  don&#8217;t expect the same rosy reception.</p>
<p><em>Don&#8217;t Expect Donations</em>: Based on the vast majority of all plugin developers&#8217; experience, ninety-nine percent (and realistically more) of all users will never donate to your efforts. There are many plugin developers who have written about this. Here are just a few articles to shed some light on this issue. Again, read the comments to get a more balanced perspective on this issue as there are good points on both sides:</p>
<ul>
<li><a href="http://www.justinparks.com/have-you-made-donation-to-your-wordpress-plugin-developer/">Have you made a donation to your WordPress Plugin Developer?</a></li>
<li><a href="http://speckyboy.com/2011/01/13/do-we-do-enough-to-support-wordpress-plugin-developers/">Do we do enough to support WordPress Plugin Developers?</a></li>
<li><a href="http://alexking.org/blog/2010/12/01/open-source-motivations">Open Source Motivations</a></li>
</ul>
<p>The donation model is not broken, for the vast majority of creators, it never worked to begin with. I have tried many tactics to increase donation conversions. My plugins and appropriate blog posts all had obvious donate badges. But that has not made a difference. Donating to something that is freely available apparently also goes against human nature.</p>
<p><em>Plugin support</em>: Unless you clearly and explicitly state that there will be zero support offered for your plugin (at a minimum that should be communicated in the readme.txt file) then it is your moral obligation to offer some level of support if you release a plugin to the community&mdash;which includes forking an existing plugin.</p>
<p>Therefore, expect there to be questions that must be answered, that user issues will take away time from your other projects, and possibly impact your paid work and family obligations. There will be users who claim they are having a problem with your plugin when in actuality it will be caused by something other than your plugin. No matter how hard you try to communicate that it is not an issue with your plugin, in these people&#8217;s minds, you will still be the party at &#8220;fault&#8221;.</p>
<p>It is for this reason that some plugin developers <a href="http://www.gnu.org/philosophy/selling.html">fully exercise their GPL rights</a>. Please note that if you plan to charge for support, you should be aware of a potential issue.</p>
<p>Since all WordPress plugins and themes need to be licensed under then same GPL version as WordPress itself&ndash;GPL version 2&ndash;you do not technically have the freedom or right to charge support fees. That explicit freedom and right was added later in GPL version 3. (Compare the last paragraph of Section 1 of <a href="http://www.gnu.org/licenses/gpl-2.0.html">GPL version 2</a> to the last paragraph of Section 4 of <a href="http://www.gnu.org/licenses/gpl.html">GPL version 3</a>).</p>
<p>Therefore, if you are planning on charging for support, you are operating outside the freedoms of the GPL version 2. You would be wise to seek legal counsel.</p>
<p><em>Disclaimer: You should seek legal counsel if you have questions or concerns about your freedoms and rights under the GPL. I am not a lawyer and the information presented is my opinion only.</em></p>
<p><em>With Plugin Popularity Comes Possible Trouble</em>: I do not envy plugin developers with high download counts. I know that that means one of two things: they are at the first stage of the plugin&#8217;s support lifecycle where they are spending an inordinate amount of their time supporting the plugin (probably for free), or they will soon be entering the final stage of the plugin&#8217;s support lifecycle where they discontinue support and future development as their time commitment to the project cannot be sustained.</p>
<p>It is for these two reasons that I always donate to plugin developers whose software I use and only use plugins that I am sufficiently interested in as I expect that one day I will have to maintain them myself.</p>
<p>Plugin development should not be a popularity contest, he or she who has the highest plugin download count often does not win. Do not release a plugin for praise and glory. That rarely happens. What really happens is the more popular your plugin becomes, the greater the potential for you to lose control over your time. This can lead to a rather unpleasant, overall experience with your project.</p>
<p><em>Alpha &#038; Beta testing</em>: If you have limited time to work on your project, then it is best to make the alpha and maybe first beta version private releases. Provide copies only to those people who you believe will genuinely test it and provide you with useful feedback. It is better to have a small, focused group of testers than a horde of quasi-interested and knowledgeable testers.</p>
<p>The exception to this lesson would be if you have a team of developers who can share the responsibilities of managing a public alpha and beta test. But, if you are a solo developer, you could be in for a world of hurt if you set your pre-release software free for any and all to test.</p>
<p>Bugs will continue to be found even after you&#8217;ve released the first public version. You have to go no farther than WordPress or BuddyPress Trac to see how many bugs still exist in those stable, public products. That is the nature of all software. No matter how mature a software product, there will always be bugs, some of them serious.</p>
<p><em>Develop on a Developer-stable Version</em>: Although BuddyPress v1.0 was the first official public release deemed suitable for general use, it was far from stable from a developer&#8217;s standpoint. This is evidenced by the fact that significant changes occurred between BP 1.0 and BP 1.1 that caused developers some grief and then even greater changes occurred between BP 1.1 and BP 1.2.</p>
<p>In my opinion, BP 1.2 should have been then first public release. In other words, BP 1.2 is really v1.0 in my mind. Now, with BP 1.3 close at hand, I&#8217;m concerned that developers (and possibly even users) will be faced with difficult upgrade challenges. Although, Paul, Boone, and John have been working hard to make the transition to BP 1.3 as painless as possible. So, perhaps my concerns are not valid. Whatever the reality, when the dust settles, BP 1.3 will become the first developer-stable version in my opinion.</p>
<p><em>Group or Solo effort</em>: As should be obvious from the start of this article, you need to carefully vet your project partners. Although I had little data with which to make an honest assessment of my project partner&#8217;s suitability&ndash;the BuddyPress community was very new at the time&ndash;I nevertheless made a mistake at the start of this project. I should have quietly started by myself and only asked for interested project partners once I had some code to share and knew more about the skill sets of the various BP developers with whom I associated.</p>
<p><em>Communicate Less, Not More</em>: This may come across as a hypocritical suggestion in light of some of the communication issues BuddyPress had last year. However, you need to differentiate BuddyPress as a developer platform and community from that of developing a BP plugin. With the former, the community is what makes the project a success. With the later, only a few key people need to be kept apprised. Communication is essential to the former, whereas to the latter it is not necessary until the plugin is released.</p>
<p>When it comes to plugin development, it is better to surprise the community with a new release (especially the initial release) than it is to build up their expectations. Although there is a thrill with getting validation for your efforts at the start of a project, there is no way to know what challenges lie ahead and how difficult the task may be. Interest and attention in any project can quickly turn negative if there are seemingly few results to share. Blame will always go to you, whether the issues holding up your project are beyond your control or not. This is especially true for a project that is deemed very important or possibly even vital&mdash;such as BP Privacy.</p>
<p>Once a plugin is released to the world, then proactive communication and vigilant project management are crucial to the project&#8217;s continued success. But before the public release, communicating less might actually help the project succeed as you won&#8217;t be distracted by the negative vocal minority.</p>
<p><em>Promised Release Dates</em>: As a follow up to the point above, it is best to never put a date on a release. You are working on a plugin, not the core foundation of WordPress or BuddyPress where it makes sense to have project deadlines and development freeze dates.</p>
<p>If you do communicate a release date, do not be overly concerned if you fail to meet it. You are generously working on GPLed software that will more than likely earn you little if any for your efforts invested. You are not beholden to anyone.</p>
<p>Even the BuddyPress project has difficulties meeting its promised release dates. As this article can witness, there are many factors that contribute to a missed release date. Some are beyond your control. From a community standpoint, it is best if people remain patient and remember that they are getting GPLed software that provides them many freedoms of use. The software will be released when its released.</p>
<p><em>Use of the WordPress Plugin Repository</em>: The WP Plugin Repo is a great service to developers and the greater community. You should use this service if you are planning not to exercise your full GPL rights. However, do not use the Repo for releasing alpha, beta, or RC versions. Most users will have no clue what an alpha or beta version truly means. More importantly, most will not care. If it&#8217;s on the Repo they&#8217;ll expect it to work. You should make your plugins available on the Repo only when they are ready for full public release. Until then, use another service, or your own server, to make pre-release versions available to those whom you wish to have access.</p>
<p><strong>When Will BP Privacy Be Released?</strong></p>
<p>Over the past two months, I have been reassessing my role in this project. As you have found out from the above history, my time commitment and investment into this project have been substantial. I&#8217;ve decided that the time required to support and maintain this project, and the energy required to do it properly, is incompatible with me earning a semblance of a living. It has also taken too much focus away from my current startup.</p>
<p>This project started out as a team effort but unfortunately became a solo effort. I believe that this project needs to become a team effort again&mdash;as in a team of developers, not a team of testers.</p>
<p>To be clear, BP Privacy was never intended to be a core BuddyPress component&mdash;even though some of you think that was the case. I am not and have never been part of BuddyPress&#8217; core development team. I was simply an active community volunteer, support forum moderator, and plugin developer.</p>
<p>As most of you know, I am a staunch privacy advocate. Since my first days with the BuddyPress project, I have believed that privacy was a necessary core feature. That has yet to be realized. Perhaps part of the BP Privacy codebase can serve that purpose in the future. Although it might make more sense to refactor BuddyPress, offering true core privacy as a component.</p>
<p>What does this all mean?</p>
<p>I will be releasing the fully-functioning BP Privacy codebase over the next several days, along with a very extensive manual (35+ pages). At that point, I will end my official involvement with the project, and as such, I will not be providing any support.</p>
<p>The project will be in the hands of the community. It will be available for anyone to use as is, expand upon, fork, or even merge into BuddyPress core. Perhaps a group of developers will adopt BP Privacy and maintain it as a community-based project.</p>
<p>Because of my decision to end my official involvement with the project, I&#8217;ve decide to back tag the version I&#8217;ll be releasing, making it a release candidate instead of a public, ready-for-production version. Therefore, it will be v1.0-RC1 instead of V1.0. It also means that I will not be placing it on the WordPress Plugin Repository per the reasons I mentioned at the end of the last section. It will be available for a short while on the BP Privacy site before that site is taken down. The link will go to some yet-to-be-determined public repository. I will also be placing the link within a BP support forum thread.</p>
<p>By the way, for any group of developers interested, I have registered the bp-privacy distribution name with the WP Repo. I would be more than willing to assign that over to another group, if that is possible, or at the bare minimum add other committers. But be advised that I will not be participating in the project anymore.</p>
<p>Once BP Privacy v1.0-RC1 is out, it will be up to each person to fully evaluate the plugin and decide for themselves whether or not to run it on a production site. Although in my exhaustive testing BP Privacy works very will under WP 3.0.4 and BP 1.2.7, you must decide for yourself the viability of its use in a production environment. Thus, please be advised, no matter what you do, you are on your own until (and if) a new group of developers takes the reigns of BP Privacy and assumes support and maintenance responsibilities.</p>
<p>As far as the upcoming release of BP 1.3, I have not fully tested the most recent BP trunk version in Trac. Therefore, I cannot say how much refactoring may be required. I may put some effort into that, but do not wait for me. You should take the initiative and bring it up to date on your own volition.</p>
<p>As far as the few people that have pre-purchased BuddyPress Privacy Support Plans, I will be refunding all the monies received over the next week. But first I will focus on getting BP Privacy out the door. I will also be refunding my two, wonderful advertising partners. Yes, your ads have been up on BP Privacy going on three months (I have only charged them for the first month), but you have not received the type of exposure that you had expected. It is only fair that you get full refunds as well.</p>
<p>I hope that BP Privacy finds a useful life going forward!</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2011/01/19/bp-privacy-history-and-lessons-learned-from-developing-a-major-buddypress-component/feed/</wfw:commentRss>
		<slash:comments>35</slash:comments>
		</item>
		<item>
		<title>BP Privacy: An Update</title>
		<link>http://jeffsayre.com/2011/01/18/bp-privacy-an-update/</link>
		<comments>http://jeffsayre.com/2011/01/18/bp-privacy-an-update/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 00:47:05 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=1275</guid>
		<description><![CDATA[This is an update on BP Privacy. I felt that it was important to communicate its current status. I also think that it is necessary to address a few who are claiming that BP Privacy is very late, for instance this statement that it is &#8220;at least 14 months late now&#8220;. First off, whereas it [...]]]></description>
			<content:encoded><![CDATA[<p>This is an update on <a href="http://bp-privacy.com/">BP Privacy</a>. I felt that it was important to communicate its current status. I also think that it is necessary to address a few who are claiming that BP Privacy is very late, for instance this statement that it is &#8220;<a href="http://bp-theme-converts.com/2011/01/almost-a-year-later/">at least 14 months late now</a>&#8220;.<span id="more-1275"></span></p>
<p>First off, whereas it is true that two-and-a-half months have passed since the <a href="http://jeffsayre.com/2010/10/23/buddypress-privacy-component-about-to-launch/">initially-announced release date of the first public version of BP Privacy</a> (version 1.0), I never promised that a public version of BP Privacy would be released before then. I had  mentioned several times in the past, and in several places, that I was hoping to release a beta2, but I never set a firm date on a production-ready, public version until my above referenced post. So comments that BP Privacy is very late (as in over a year) are not valid.</p>
<p>Secondly, BP Privacy will be finished when it is finished. I am hoping that is soon, but the reality is that it will be released when it&#8217;s released. You get what you pay for. I am not under contract to produce BP Privacy, I am not getting paid by anyone to provide free software to the community. This is an all volunteer effort. Attempts to goad any developer into accelerating the pace at which they are offering you free software are usually unproductive.</p>
<p>However, having said that, I will mention that I share a couple of the concerns expressed in the BuddyPress Theme Converts post. I may elaborate on this in an upcoming article on the history of BP Privacy and the lessons learned&mdash;to be published once BP Privacy has been released.</p>
<p><strong>Note:</strong> I have received a very, very modest amount of funds via people who purchased a BuddyPress Privacy Component Support Plan at the pre-launch pricing and a marginal amount of ad revenue. I have not yet used any of those funds. They remain in my PayPal account and I may very well refund them. But these funds are not donations to the development work. They are pre-paid fees that purchase a bit of my time in supporting the plugin once released or a leasing fee for real estate on the BP Privacy site.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2011/01/18/bp-privacy-an-update/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Release of BuddyPress Privacy Component Pushed Back One Week</title>
		<link>http://jeffsayre.com/2010/11/07/release-of-buddypress-privacy-component-pushed-back-one-week/</link>
		<comments>http://jeffsayre.com/2010/11/07/release-of-buddypress-privacy-component-pushed-back-one-week/#comments</comments>
		<pubDate>Sun, 07 Nov 2010 07:00:07 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[GPL]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=1122</guid>
		<description><![CDATA[Yes, I know. What??? How could you??!! And just on the greatly-anticipated eve of BP Privacy&#8217;s release? Is this a warped event caused by a rip in the space-time continuum or possibly even triggered by Daylight Savings Time? Is this some sort of a joke? Nope. It is real. The reason is simple and practical. [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, I know. What??? How could you??!! And just on the greatly-anticipated eve of <a href="http://bp-privacy.com/">BP Privacy&#8217;s</a> release? Is this a warped event caused by a rip in the space-time continuum or possibly even triggered by Daylight Savings Time? Is this some sort of a joke?</p>
<p>Nope. It is real. The reason is simple and practical.<span id="more-1122"></span></p>
<p>This past Wednesday during the BuddyPress Developers’ Chat on IRC, it was decided that another subdecimal release of BP was necessary to provide a few fixes to some key bugs. BuddyPress v1.2.7 is <a href="http://bpdevel.wordpress.com/2010/11/03/minutes-of-november-3rd-dev-chat-buddyp/">scheduled to come out around the end of this coming week</a>.</p>
<p>As I thought about this more and more over the past few days, I released that it is not a good practice to release a major new BuddyPress component targeted to a version of BuddyPress that will be obsolete a few days after launch. There is no way to determine how many additional changes to BuddyPress&#8217; core files will be made over the next week&mdash;some of which could affect the operation of BP Privacy.</p>
<p>It would be foolish to release BP Privacy this coming Monday and then take a chance that it will play well with BP 1.2.7 when that comes out four or five days later. It could be an operations pain for my users and a support nightmare for me. So the prudent course of action is to postpone the release of BP Privacy pending the release of BP 1.2.7.</p>
<p>Therefore, BP Privacy will not be launching tomorrow, November 8, 2010. Instead, assuming BP 1.2.7 will be released as detailed in the link above&ndash;and that there are no major issues with it negatively affecting the operation of BP Privacy&ndash;the new launch date for BP Privacy will now be Monday, November 15, 2010.</p>
<p>It’s just one, short week. I’m just as eager to set this free as you are to get your hands on it. But prudence and patience must win out.</p>
<p><strong>It’s Not a Total Loss</strong></p>
<p>There are tangible benefits to this postponement. If you have not yet purchased a BuddyPress Privacy Component Support plan (BPCSP), this delay gives you an additional week to act. It will allow you another chance to get a great, <a href="http://bp-privacy.com/2010/09/stellar-pre-launch-discount-on-support-plans/">permanent discount on support plans</a>.</p>
<p>Furthermore, if you are a current advertiser on BP-Privacy.com, I’m going to give you the full month of December at no additional cost. I cannot justify having my ad clients paying for a full month but not having a full month’s worth of regular traffic. So, December is on me!</p>
<p>This offer for an extra month (December) of advertising will apply to the <a href="http://bp-privacy.com/advertise/">last two remaining ad spots</a> if they are leased before BP Privacy launches on Monday, November 15, 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/11/07/release-of-buddypress-privacy-component-pushed-back-one-week/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>BuddyPress Privacy Offers You the Power of the Force</title>
		<link>http://jeffsayre.com/2010/10/28/buddypress-privacy-offers-you-the-power-of-the-force/</link>
		<comments>http://jeffsayre.com/2010/10/28/buddypress-privacy-offers-you-the-power-of-the-force/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 17:57:17 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[data schemas]]></category>
		<category><![CDATA[InnoDB]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=1092</guid>
		<description><![CDATA[Okay, that title may not be accurate. But for those advanced BuddyPress administrators and site owners who are performance focused, the BuddyPress Privacy Component will offer the option of creating the ACL (access control list) tables with the InnoDB storage engine instead of the MyISAM storage engine which WordPress and BuddyPress use as the default. [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, that title may not be accurate. But for those advanced BuddyPress administrators and site owners who are performance focused, the <a href="http://bp-privacy.com/">BuddyPress Privacy Component</a> will offer the option of creating the ACL (access control list) tables with the InnoDB storage engine instead of the MyISAM storage engine which WordPress and BuddyPress use as the default. This offers a number of advantages such as referential integrity with cascading deletes and updates and row-level locking instead of table-wide locking&mdash;which increases performance by facilitating multi-user concurrency, a crucial point for under-powered servers or highly-trafficked sites.<span id="more-1092"></span></p>
<p><span class="post_special callout rightsidecall">InnoDB offers many advantages including one of my favorites as a developer&mdash;cascading deletes and updates.</span>The conventional wisdom that the MyISAM storage engine is always the preferred type is outdated. I will not go into the whys in this article as it is discussed in many places. Here is an article that discusses <a href="http://tag1consulting.com/MySQL_Engines_MyISAM_vs_InnoDB">the benefits of the InnoDB storage engine type</a> in great detail.</p>
<p><em>Refer to the <a href="http://dev.mysql.com/doc/refman/5.0/en/innodb-configuration.html">MySQL documentation</a> for more details on the InnoDB storage engine.</em></p>
<p>Suffice it to say, that two years ago, the Drupal project decided to make the InnoDB storage engine the default type for Drupal 7 and have not looked back since. You can <a href="http://drupal.org/node/301362">read more about that decision here</a>.</p>
<p><strong>Use the Force, Luke</strong></p>
<p>To use the InnoDB storage engine type for the BP Privacy tables, you must manually configure before installing. Details will be provided in the readme.txt file.</p>
<p>InnoDB offers many advantages including one of my favorites as a developer&mdash;cascading deletes and updates. To take advantage of this, I’ve coded dual delete methods within each class model. The method that is fired depends upon which storage engine a given install has chosen. If the InnoDB storage engine is in use, then record deletion is a very simple process as deletes are automatically cascaded down through the child tables. If the default MyISAM storage engine is in use, then multi-table deletes require a more complex looping routine to ensure that associated records are deleted.</p>
<p><span class="post_special callout leftsidecall">Do WordPress and BuddyPress really need to use the BIGINT numeric field type for UserID? Is it even realistic to make allowances for the possibility of 18.446 quintillion unique user records?</span>Although MySQL allows for the mixing of storage engine types across tables, there are solid reasons for standardizing on one storage engine type across your entire database.   It is up to you to decide if you want to mix and match storage engine types and to determine which tables may benefit from one storage engine type versus another.</p>
<p>If you decide to install BP Privacy using the InnoDB option, then you should consider whether it makes sense to convert all of your existing WordPress and BuddyPress tables to use the InnoDB storage engine. If you are doing a clean install of WordPress and/or BuddyPress, you can set the default storage engine type to the storage engine of your choice for each table before running the install script. Future core upgrades, unfortunately, will then require extra vigilance. So, proceed with extreme caution.</p>
<p>Here are some additional resources to help you better understand the risks, benefits, and issues involved (read the comments in the below articles as well):</p>
<p><a href="http://wpmu.org/scaling-wordpress-wpmu-buddypress-like-edublogs/">How to scale WordPress to half a million blogs and 8,000,000 page views a month</a></p>
<p><a href="http://highervisibilitywebsites.com/convert-your-mysql-database-myisam-innodb-and-get-ready-drupal-7-same-time">Convert your MySQL database from MyISAM to InnoDB</a></p>
<p><a href="http://www.619cloud.com/blog/5-essential-steps-for-hosting-wordpress/">5 Essential Steps For Hosting A Scalable WordPress Blog Or Website</a></p>
<p><strong>Not All Lightsabers are Equal</strong></p>
<p>To understand the next section, you need to heed the words of this ancient Jedi saying. It means, do not compare apples to oranges. <em>Note: I&#8217;m not sure if that phrase is a Jedi saying as I made it up.</em></p>
<p>The MyISAM and InnoDB storage engines are different storage technologies. Therefore, whereas overall performance results can be compared between these two different storage engines, what I discuss in the next section pertains to performance tuning a table within a given storage engine type.</p>
<p><strong>These Aren’t the Droids You’re Looking For</strong></p>
<p>To do my part <a href="http://dev.mysql.com/doc/refman/5.1/en/data-size.html">in reducing data bloat</a>, and helping those users that have lower-powered servers, or are on shared hosting, I’ve structured BP Privacy’s tables to be as compact as possible&mdash;whether using the MyISAM or InnoDB storage engine type. How? Well for starters, by using the INT, instead of BIGINT, numeric field type for the Main ACL table&#8217;s primary key field and by using partial indexing where practical for both the Main and Lists ACL tables.</p>
<p>The benefit of using the INT numeric field type is that it’s a 50% reduction in storage space compared to BIGINT (not a fifty percent reduction in the maximum number of unique possible records within a table, but in the number of bits required to store the data in the ID field of each record in the table). Using the INT numeric field type for the table ID still allows for 4.29 billion unique records within each table. This should be more than adequate for 99.5% (likely even more) of all BuddyPress installs.</p>
<p>The other performance gain comes from the fact that in the latest version of BP Privacy (starting with v1.0), I&#8217;ve done away with storing user lists in a serialized array within the userlist field of the single table. Instead, I&#8217;ve normalized that bit of data, storing any group or user lists in a separate ACL Lists child table. The benefits of this approach are many.</p>
<p>Whereas serialized data can be useful when storing disparate data in a settings field, for instance, it is not a great idea when the type of data will always be the same in a given field. Why? Because when you serialize data, you are storing a table within a table. This can lead to <a href="http://www.mysqlperformanceblog.com/2010/01/21/when-should-you-store-serialized-objects-in-the-database/">all sorts of performance issues</a> and makes it very difficult to perform meaningful searches with the data &#8220;locked&#8221; within the serialized array. In fact, once you start storing serialized objects in a relational database on a regular basis, then you have moved beyond the utility of a table-based model. Instead, a schemaless system would prove more beneficial.</p>
<p>There is another performance hit when choosing to serialize the same type of data within a table&#8217;s field. Whether a given record stores any data in the serialized field or not, the overall record overhead size is much larger as a result of a set minimum number of stored bytes for the LONGTEXT data type. This means that space is used in the table even if data is not stored in that field. As most users will more than likely not be setting any group or user list data, it makes more sense to only take up space when actual data is required to be saved. Therefore, the child ACL Lists table.</p>
<p><span class="post_special sidebar rightsidecall">If you are designing tables for WordPress or BuddyPress, it&#8217;s crucial that you learn how to properly store data and when it is okay to serialize (most of the time, it is not). Are you serializing data because you think that&#8217;s the way it must be done, because that&#8217;s the way most developers do it in the WP ecosystem? Think again. If you&#8217;ve heard that sharding requires data to be serialized. The answer to that is, wrong. Sharding and serialization are two separate issues. There are other, more desirable ways to make your table shardable. With the exception of serialized data within the WP settings and options metadata fields, serialization is misunderstood and misused within WordPress and BuddyPress tables.</span></p>
<p>Given the fact that these improvements are for a few, small privacy tables, it may not seem like that little of a space savings makes a difference in the grander picture. But imagine if WordPress and BuddyPress core made similar changes and all plugin developers took the time to optimize their plugin’s data schema (if they have one). Every bit saved on better field type and index sizes can add up to big performance gains, especially as a WordPress-powered site begins to get noticed and needs to scale.</p>
<p>Ask yourself this. Do WordPress and BuddyPress each really need to use the BIGINT numeric field type for UserID? Is it even realistic to make allowances for the possibility of 18.446 quintillion unique user records? Or, would larger benefits accrue to WordPress and BuddyPress users if the data size for that field was reduced by 50% (by using INT) or even better 62.5% (by using MEDIUMINT). Imagine where else data schema optimization could occur! By thinking about data storage issues, you can help to reduce table size and thereby improve performance.</p>
<p><em>Additional Resources:</em></p>
<p>To get to the heart of the discussion above&ndash;the infamous serialized fields&ndash;start the below-linked-to video at timecode 32:48, which is point nine in his list of ten. The section is entitled EAV. The most pertinent discussion will start at timecode 35:22, with what the author calls EAV 2.0: E-BLOB, but it is a good idea to start a few minutes earlier at the beginning of point nine.</p>
<p>This hour-long video became the source of a latter OSCON presentation. The audio is pretty bad, but it gives some great pointers on database best-management practices, <a href="http://www.youtube.com/watch?v=uFLRc6y_O3s">10 Ways to Wreck Your Database</a>.</p>
<p><strong>A Jedi Uses the Force for Knowledge and Defense, Never for Attack</strong></p>
<p>As this famous quote from Yoda implies, with great power comes great responsibility (how about that for mixing SciFi and comic book metaphors). So, here it goes.</p>
<p><strong>Warning:</strong> If attempting anything mentioned in this article or in the linked-to articles, the typical caveats apply: backup your existing WordPress and BuddyPress database(s) before you do anything, know how to restore your database(s) from your backups, know what you are doing and what you’re getting yourself into, don’t cry if you break something, it is entirely your responsibility to fix anything that breaks, and there is no one you can blame except yourself if something goes wrong.</p>
<p>I will not answer any questions about how to do anything discussed above or in the linked-to articles, nor provide any assistance in helping you do this, nor provide any help if you do this and your site breaks. It is up to you to know what you are doing. Proceed at your own risk. You have been warned.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/10/28/buddypress-privacy-offers-you-the-power-of-the-force/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>BuddyPress Privacy Component About to Launch</title>
		<link>http://jeffsayre.com/2010/10/23/buddypress-privacy-component-about-to-launch/</link>
		<comments>http://jeffsayre.com/2010/10/23/buddypress-privacy-component-about-to-launch/#comments</comments>
		<pubDate>Sat, 23 Oct 2010 19:01:24 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[SocialWeb]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=1086</guid>
		<description><![CDATA[Here’s a brief update on my efforts to provide a suite of privacy filtering services to BuddyPress’ core components. With the release of BP v1.2.6, the last of the essential ingredients are now in place to allow my Privacy Component to function. On November 8, 2010, I plan to make the component available to all [...]]]></description>
			<content:encoded><![CDATA[<p>Here’s a brief update on my efforts to provide a suite of privacy filtering services to BuddyPress’ core components. With the release of <a href="http://buddypress.org/2010/10/buddypress-1-2-6/">BP v1.2.6,</a> the last of the essential ingredients are now in place to allow my Privacy Component to function. On November 8, 2010, I plan to make the component available to all via the WordPress Plugin Repository. You can learn more on <a href="http://bp-privacy.com/">BP-Privacy.com</a>.</p>
<p>To celebrate this occasion, I am offering two specials: 40% off of the standard <a href="http://bp-privacy.com/support/">BuddyPress Privacy Component Support Plan</a> (BPCSP) and the other 25% discount on <a href="http://bp-privacy.com/advertise/">advertising rates</a>. All but two of the first month’s ad spots are sold. So, if you want to get in early and lock in these prerelease rates, act now.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/10/23/buddypress-privacy-component-about-to-launch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How the Death of Net Neutrality Effects You</title>
		<link>http://jeffsayre.com/2010/08/16/how-the-death-of-net-neutrality-effects-you/</link>
		<comments>http://jeffsayre.com/2010/08/16/how-the-death-of-net-neutrality-effects-you/#comments</comments>
		<pubDate>Mon, 16 Aug 2010 16:34:14 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[Entrepreneurship & Leadership]]></category>
		<category><![CDATA[Social Media & Semantic Web]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[FOSS]]></category>
		<category><![CDATA[freedoms]]></category>
		<category><![CDATA[net neutrality]]></category>
		<category><![CDATA[SocialWeb]]></category>
		<category><![CDATA[startups]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=785</guid>
		<description><![CDATA[The potential impact of the Google-Verizon proposal to end wireless net neutrality on bloggers, niche social network owners, and ecommerce sites seems to be misunderstood or not even realized by many of my colleagues in the the Web design and development business. This surprises me as their livelihoods depend on the ability of their clients [...]]]></description>
			<content:encoded><![CDATA[<p>The potential impact of the Google-Verizon proposal to end wireless net neutrality on bloggers, niche social network owners, and ecommerce sites seems to be misunderstood or not even realized by many of my colleagues in the the Web design and development business<span id="more-785"></span>. This surprises me as their livelihoods depend on the ability of their clients to compete on an equal footing.</p>
<p>The issue in summary is that the big telecos are aiming to rate limit packet traffic across the entire wireless spectrum. That means that no matter what kind of data you send (text or media based), there could very well be a toll. Those that pay the highest access fees will see their data travel at the maximum throughput rates. Those who can&#8217;t pay as much, will in effect have their data throttled.</p>
<p>As I state at the beginning of a <a href="http://jeffsayre.com/2010/08/09/google-verizon-joint-statement-presages-end-to-net-neutrality/">previous article on this issue</a>:</p>
<blockquote><p>If you design websites, run a small web-based business, make money from blogging, or are launching a startup, the level playing field of the Internet is about to get very bumpy. If you think that mobile-based services are the future and are catering to the wireless crowd, then be prepared for a game-changing shift.</p></blockquote>
<p>There is a potentially game-changing new variable being considered that will skew the Internet’s competitive landscape. Currently, content creators pay fees to host their data, maybe even overage fees if bandwidth limits are exceeded in a given month. But once the data leaves the confines of their Web server, it travels across the Internet’s backbone infrastructure at the same rate as all other traffic.</p>
<p>The Google-Verizon proposal would allow an altogether new fee to be charged for wireless throughput&mdash;an access fee, a toll placed on data after it leaves your hosting firm’s building, or your company-owned server farm. This means that content providers&ndash;bloggers, ecommerce sites, social networks, you name it&ndash;will all be assessed wireless transmission fees. The higher the fee paid, the faster their data will be allowed to travel.</p>
<p>Why is this an issue? Because healthy competition requires a level playing field. Without net neutrality across the Internet’s entire infrastructure, users looking to join new niche social networks or who frequent boutique ecommerce sites may very well bypass those sites that appear to run very slowly on their wireless devices. They may instead move toward those sites that have a fast wireless response time.</p>
<p>It is not realistic to think that an unfunded startup, a new <a href="http://jeffsayre.com/2010/08/13/buddypress-beginning-to-mature-at-the-right-time/">BuddyPress-based site</a>, or a small blog-based ecommerce site would be able to afford paying the same fees as big companies. That would mean that their data would not travel as fast across the wireless infrastructure.</p>
<p>How many Web surfers want to waste their time waiting for what appears to be a slow server response? In fact, it may not be the server at all. Instead, it could be the speed limit placed on the data packets after they leave the Web server.</p>
<p>Think of it this way. When a WordPress Multisite install runs on a heavily-trafficked shared server, it can be painfully slow to use. Site owners who have configured their network this way often report that their members are complaining about how slow the site is to use, that new user registration is down as a result of the poor load times. The solution often suggested is to enable caching and upgrade to a VPN or to a dedicated server.</p>
<p>But guess what. That solution will not help if wireless packet traffic is rate limited. You could have the biggest server farm in the world with the fastest processors, maxed out memory, efficiently cached and compressed data, and best switches. But if you are not willing, or able, to pay the fees required to let your data travel unencumbered across the wireless infrastructure, then your users may have the same experience as if your site was on a shared host. Your users will not care why your site runs slowly. They may jump ship and spend their time on those sites that run at the speeds they have become accustomed to before net neutrality went out the window.</p>
<p>It is true that the total, theoretical wireless capacity is not nearly as high as that of the current wired-based infrastructure. But let&#8217;s remember that the wireless spectrum is not privately owned. It is leased from the public. There must be realistic limits placed on what private corporations can do with public assets. Allowing telecos to leverage their leases in such a way that condones economic inequality does not seem like a move in the public’s best interest.</p>
<p>Finally, we must remember that the wireless carriers already charge for data access. They just do it on the receiving end via subscriber fees and limits put on total bandwidth usage per month. What they want to do now is charge an additional toll to the content creators. So they&#8217;ll get paid by both parties, they’ll charge a toll on both ends of the wireless highway.</p>
<p><strong>If it Costs Users, it Could Cost You</strong></p>
<p>Guess to whom these costs will be passed? Why do you think that <a href="http://bits.blogs.nytimes.com/2010/08/11/facebook-breaks-with-google-on-net-neutrality/">Facebook, eBay, and Amazon have all recently communicated their disapproval</a> with Google, Verizon, and AT&#038;T on this issue? Although these three behemoths could all afford to pay the highest access fees that the telecos may charge, they know that these costs would have to be passed back to their customers. They also realize that it sets a dangerous precedent&mdash;that of assigning data packet priority based on transmission fees paid.</p>
<p>If you don’t think that this issue might negatively impact your business, think again. Although this is currently a potential threat, it is a serious threat nonetheless. If the very people who create the content, consult for the content creators, and run the small ecommerce sites do not speak up, then the FCC and elected officials may not take as much interest in this issue as they should.</p>
<p>So, if you make your living as a blogger, by catering to the blogging community, or working for a social media design or marketing company, it’s time that you stir the pot and write your own post, contact your elected officials, or band together with some of your colleagues to shine light on this important issue. It does not matter if you are not based in the United States. This issue may affect your bottom line where ever you live.</p>
<p><strong>Related Articles</strong></p>
<p><a href="http://jeffsayre.com/2010/08/09/google-verizon-joint-statement-presages-end-to-net-neutrality/">Google-Verizon Joint Statement Presages End to Net Neutrality</a></p>
<p><a href="http://jeffsayre.com/2010/08/06/goodbye-google-old-friend-it’s-time-for-the-open-source-internet/">Goodbye Google Old Friend: It’s time for the Open-Source Internet</a></p>
<p><strong>Updates</strong></p>
<p>December 21, 2010: Today the FCC voted on net neutrality regulation. The results do not bode well. See, <a href="http://arstechnica.com/tech-policy/news/2010/12/why-everyone-hates-new-net-neutrality-ruleseven-nn-supporters.ars">Why everyone hates new net neutrality rules—even NN supporters</a>.</p>
<p>November 4, 2010: With the U.S. midterm elections finally over, the possibilities for protecting net neutrality seem even worse. Read this CNNMoney article, <a href="http://money.cnn.com/2010/11/03/technology/net_neutrality_election/index.htm?section=money_latest"><em>Final nail in coffin for Net neutrality?</em></a></p>
<p>November 29, 2010: In a related development, Comcast is striking a blow against net neutrality for the wired Internet, requiring Level 3 Communications&ndash;a major fiber-based backbone provider&ndash;<a href="http://www.marketwatch.com/story/level-3-communications-issues-statement-concerning-comcasts-actions-2010-11-29?reflink=MW_news_stmp">to pay them a recurring fee to transmit high-bandwidth content to Comcast&#8217;s customers.</a></p>
<p>November 30, 2010: Tell the FCC what you think by standing up for net neutrality. <a href="http://act.credoaction.com/campaign/comcast_netflix/?rc=tw1">Sign the petition to stop Comcast from blocking Netflix IP traffic</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/08/16/how-the-death-of-net-neutrality-effects-you/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>BuddyPress Beginning to Mature At the Right Time</title>
		<link>http://jeffsayre.com/2010/08/13/buddypress-beginning-to-mature-at-the-right-time/</link>
		<comments>http://jeffsayre.com/2010/08/13/buddypress-beginning-to-mature-at-the-right-time/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 18:06:45 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[SocialWeb]]></category>
		<category><![CDATA[startups]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=769</guid>
		<description><![CDATA[I’ve written about social-networking fatigue in the past, and still believe that&#8211;in the long term&#8211;distributed Social Web platforms will win out over the traditional, Web2.0-styled, closed-data-silo social networks. However, until that time arrives, a crack in the armor of the mega social networking sites may be expanding. This presents the BuddyPress project with a prime [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve written about <a href="http://jeffsayre.com/2010/02/17/flocking-to-the-stream/">social-networking fatigue</a> in the past, and still believe that&ndash;in the long term&ndash;<a href="http://jeffsayre.com/2010/02/24/a-flock-of-twitters-decentralized-semantic-microblogging/">distributed Social Web platforms</a> will win out over the traditional, Web2.0-styled, closed-data-silo social networks.<span id="more-769"></span> However, until that time arrives, a crack in the armor of the mega social networking sites may be expanding. This presents <a href="http://buddypress.org/">the BuddyPress project</a> with a prime opportunity.</p>
<p>There is new research out that indicates that <a href="http://www.ypulse.com/ypulse-research-status-update-facebook-fatigue">teenagers are starting to look for alternatives to Facebook</a> for their social-networking needs. Some of the stated reasons (besides fatigue) are that they’re fed up with advertising inundation and insufficient privacy controls. When it comes to Facebook’s privacy controls, many teens find them hard to use, <a href="http://www.ypulse.com/the-age-of-privacy-for-young-people-is-far-from-over">difficult to understand</a>, and believe that Facebook will likely change them again.</p>
<p>The result? As users become overwhelmed and burnt out by the one–size–fits–all social networking monoliths, they are beginning to seek out more intimate, interest-specific communities. This provides an opening to developers who wish to create narrowly-focused, niche networks. <a href="http://buddypress.org/">BuddyPress</a> is a great tool that can allow you to do just that.</p>
<p>With BuddyPress fast approaching its version 1.3 release (around the new year), now is the perfect time for those who have been thinking about creating a targeted community to learn how BuddyPress can help achieve that goal. A well–executed BuddyPress site could offer potential members a more meaningful, productive experience than simply joining another Facebook group.</p>
<p>As an open source project, BuddyPress thrives as a result of its community. If you are a designer, developer, or site owner, please consider joining the community and helping to evolve BuddyPress into a strong alternative to the traditional social-networking platforms. New ideas, energy, and contributions are always welcome.</p>
<p><strong>Important Message</strong></p>
<p>If you’re currently running a niche social network, or thinking about creating one, you should be aware of a <a href="http://jeffsayre.com/2010/08/09/google-verizon-joint-statement-presages-end-to-net-neutrality/">possible threat on the horizon</a>. It is up to the Web’s netizens to fight for equal access and data equality.</p>
<p><em>Update</em></p>
<p>December 15, 2010: Also, see my article <a href="http://buddydress.com/2010/12/leverage-buddypress-to-build-your-niche-community-by-jeff-sayre/">Leverage BuddyPress to Build Your Niche Community</a> posted on buddydress.com.</p>
<p>September 2, 2010: If you don&#8217;t think that BuddyPress or niche social networking is growing in popularity, <a href="http://www.buddyboss.com/50-buddypress-designs-that-will-blow-your-mind/">see this article</a>. </p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/08/13/buddypress-beginning-to-mature-at-the-right-time/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>WordPress Hook Sniffer v0.14 Released!</title>
		<link>http://jeffsayre.com/2010/07/28/wordpress-hook-sniffer-v0-14-released/</link>
		<comments>http://jeffsayre.com/2010/07/28/wordpress-hook-sniffer-v0-14-released/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 14:34:44 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[Social Media & Semantic Web]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=710</guid>
		<description><![CDATA[As I posted about ten-days ago, my WordPress Hook Sniffer had a cold, its sniffer all clogged up and not functioning properly. Today, I release a once-again healthy, new and improved Hook Sniffer plugin for all WordPress plugin developers. There are a number of nice improvements. (You can download the latest version of WordPress Hook [...]]]></description>
			<content:encoded><![CDATA[<p>As I posted about ten-days ago, <a href="http://jeffsayre.com/2010/07/17/important-developers-notice-please-deactivate-wordpress-hook-sniffer-for-the-time-being/">my WordPress Hook Sniffer had a cold</a>, its sniffer all clogged up and not functioning properly. Today, I release a once-again healthy, new and improved Hook Sniffer plugin for all WordPress plugin developers.<span id="more-710"></span> There are a number of nice improvements.</p>
<p>(You can <a href="http://wordpress.org/extend/plugins/wordpress-hook-sniffer/">download the latest version of WordPress Hook Sniffer here</a>. Please read the readme.txt file for important usage and installation notes.)</p>
<p>After the bug fixes, the most noticeable improvement is that you no longer need to manually install the modified plugin.php file&mdash;the file that gives hook sniffer its abilities. The plugin now automatically installs the modified plugin.php file upon plugin activation and then reinstalls the original, stock WP version of the /wp-includes/plugin.php file upon plugin deactivation. This means that when you deactivate the plugin, you can rest assured that WP Hook Sniffer no longer has any influence over the operation of WordPress.</p>
<p>As there are important differences between the /wp-includes/plugin.php files of WP 2.9.2 and WP 3.0, WP Hook Sniffer now requires WordPress 3.0. Upon activation, an automatic version check is performed to make sure that WP Hook Sniffer is installed on the proper version of WordPress. If the plugin is installed on an older version of WordPress, it will not run. A warning message is displayed in the Plugins directory and in the WP Hook Sniffer Settings screen.</p>
<p>Also, I’ve versioned the modified plugin.php file that comes with WP Hook Sniffer. Now, when you activate the plugin, it runs a check to make sure that the proper version of the modified plugin.php file is installed in /wp-includes.</p>
<p>Finally, I added a CSS file to improve proper code separation&ndash;the older version simply had inline CSS definitions&ndash;and renamed all CSS selectors to make them unique to the plugin.</p>
<p>If WordPress Hook Sniffer has become an indispensable tool in your WP plugin development toolkit, please donate to help me keep this plugin updated and its sniffer healthy! Thank you!</p>
<div class="paypal_button">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick"/>
<input type="hidden" name="hosted_button_id" value="VTHMENKR9ZWB4"/>
<table>
<tr>
<td>
<input type="hidden" name="on0" value="Sponsorship Levels"/>Sponsorship Levels</td>
</tr>
<tr>
<td>
<select name="os0">
<option value="Supporter">Supporter $15.00</option>
<option value="Donor">Donor $25.00</option>
<option value="Sponsor">Sponsor $50.00</option>
<option value="Benefactor">Benefactor $100.00</option>
<option value="Patron">Patron $250.00</option>
<option value="Open Source Angel">Open Source Angel $500.00</option>
<option value="Holy Cow!">Holy Cow! $1,000.00</option>
</select>
</td>
</tr>
</table>
<input type="hidden" name="currency_code" value="USD"/>
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
						<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"/><br />
					</form>
<p><em>If you are a corporate user, consultant, plugin developer, or theme designer and profit from using my plugin, please consider donating at one of the upper levels. Thank you!</em></p>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/07/28/wordpress-hook-sniffer-v0-14-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Important Developers&#8217; Notice:  Please deactivate WordPress Hook Sniffer for the time being</title>
		<link>http://jeffsayre.com/2010/07/17/important-developers-notice-please-deactivate-wordpress-hook-sniffer-for-the-time-being/</link>
		<comments>http://jeffsayre.com/2010/07/17/important-developers-notice-please-deactivate-wordpress-hook-sniffer-for-the-time-being/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 16:26:52 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=703</guid>
		<description><![CDATA[If you are using my WordPress Hook Sniffer plugin, I ask that you please deactivate it at this time and remove the modified plugin.php file&#8211;the one that comes with the plugin&#8211;replacing it with the original version that ships with WordPress. Make sure that you use the one that comes with the version of WordPress you [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using my WordPress Hook Sniffer plugin, I ask that you please deactivate it at this time and remove the modified plugin.php file&ndash;the one that comes with the plugin&ndash;replacing it with the original version that ships with WordPress.<span id="more-703"></span> Make sure that you use the one that comes with the version of WordPress you are running.</p>
<p>I have been having a few issues with BuddyPress development over the past week. I went through all the usual techniques to isolate the issue, finally deactivating all my 3rd-party plugins. But, the issue remained. Finally, I wondered about my WordPress Hook Sniffer plugin. I realized that although it was deactivated, it might be negatively affecting the operation of WordPress if the modified plugin.php file that comes with the plugin had issues. I replaced the modified version of plugin.php with the original one that ships with my version of WordPress, and bingo, the issues went away. All I could think was crap&mdash;especially as I say this in the installation instructions:</p>
<p>&#8220;The modifications to WordPress’ standard Plugin API file are used exclusively for WordPress Hook Sniffer. They should not affect the functioning of the rest of WordPress.&#8221;</p>
<p>In fact, this statement is still technically correct. The culprit is that when I updated the modified plugin.php file for last week&#8217;s version 0.13 update to the WP Hook Sniffer, I failed to use the proper base plugin.php file. I used the one that ships with WP 2.9.2 and not WP 3.0. Even though I thought I had done a sufficient parity check between these two files, I had failed to notice a few important changes.</p>
<p><strong>WordPress Core Developers please note</strong>: if you change a function you should indicate as much in the inline documentation. Please use the <a href="http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_tags.version.pkg.html">@version PHPDocumenter tag</a> to indicate that the function has changed.  The @since tag version indicator is not helpful if the function has changed.</p>
<p>What issues did I have that caused me to discover this problem? The WordPress &#8220;wp&#8221; action hook was not firing. Yep. That is a big problem, especially if you are doing development work. Interestingly enough, most of BuddyPress continued to function as expected, except for a few features that used to work but suddenly stopped working&mdash;right at the time I installed the updated version of WP Hook Sniffer. Of course, I failed to notice this for several days.</p>
<p>I have gone through the stock plugin.php file&ndash;with a very fine-toothed comb&ndash;and ferreted out all the changes. I am in the process of updating the modified plugin.php file that WP Hook Sniffer is required to use. I want to make sure that it is adequatley tested before releasing an updated version. Look for the updated version with a fixed plugin.php file to be available either Sunday or Monday.</p>
<p>With this pending update, WordPress Hook Sniffer will require WordPress 3.0. Therefore, if you want to use it in an older version of WordPress, you will have to install Version 0.12 of WP Hook Sniffer. Please note, I will only support the most recent version of WordPress Hook Sniffer.</p>
<p>I apologize if this has caused you to lose valuable development time. I know that I have lost several days of productive coding due to this issue. There were obviously some important changes between WP 2.9.x and WP 3.0. Even though I thought I had properly assessed potential changes within the plugin.php file, I had not. I guess I need more sleep, more caffeine, fewer late-night alien visits, or some combination of those three.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/07/17/important-developers-notice-please-deactivate-wordpress-hook-sniffer-for-the-time-being/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>The Growing Panoply of Specialty BuddyPress Developer and Administration Tools</title>
		<link>http://jeffsayre.com/2010/05/08/the-growing-panoply-of-specialty-buddypress-developer-and-administration-tools/</link>
		<comments>http://jeffsayre.com/2010/05/08/the-growing-panoply-of-specialty-buddypress-developer-and-administration-tools/#comments</comments>
		<pubDate>Sat, 08 May 2010 18:27:42 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=658</guid>
		<description><![CDATA[When it comes to the availability of useful, specialty plugins for site administrators and plugin developers, BuddyPress may be approaching an interesting inflection point. Recently, several new plugins have been released that help site administrators better understand and manage their network or offer developers insight into vexing issues and help make coding their WordPress and [...]]]></description>
			<content:encoded><![CDATA[<p>When it comes to the availability of useful, specialty plugins for site administrators and plugin developers, BuddyPress may be approaching an interesting inflection point. Recently, several new plugins have been released that help<span id="more-658"></span> site administrators better understand and manage their network or offer developers insight into vexing issues and help make coding their WordPress and BuddyPress plugins a little easier.</p>
<p>These are not the normal, run-of-the-mill plugins that extend BuddyPress by adding additional functionality for a site’s members, or allow a site administrator to selectively alter the core functionality of BuddyPress. Instead, the plugins that I’m excited about are  specifically targeted to providing site administrators and developers with unique services. I call these tools to differentiate them from the general-purpose plugins.</p>
<p>Although there are currently only a handful of such tools available, I hope that these releases indicate a trend. The WordPress ecosystem needs more specialty tools for site administrators and plugin developers.</p>
<p>So, in no particular order of importance, here is a listing of the more interesting plugins that provide useful tools for the site administrator’s or developer’s toolbox.</p>
<p><strong>Developer Tools</strong></p>
<p><a href="http://jeffsayre.com/2010/04/29/introducing-wordpress-hook-sniffer-a-developer-plugin/ "><em>WordPress Hook Sniffer</em></a>: This is a tool I recently released that helps plugin developers determine the sequence in which action and filter functions are fired. It provides a window into the inner workings of the WordPress Plugin API and can help a developer figure out why a custom action or filter hook or function is not working as intended.</p>
<p><a href="http://wordpress.org/extend/plugins/demo-data-creator/"><em>WordPress MU Demo Data Creator</em></a>: Provides a utility for populating your WPMU development sandbox database with dummy data. Why waste time creating your own dummy data to test your plugins when it can be auto generated for you.</p>
<p><a href="http://wordpress.org/extend/plugins/buddypress-skeleton-component/"><em>BuddyPress Skeleton Component</em></a>: This is not a new developer tool. In fact, as an example BuddyPress plugin component, it is the grand progenitor of many BuddyPress plugins.</p>
<p><a href="http://wordpress.org/extend/plugins/bp-template-pack/"><em>BuddyPress Template Pack</em></a>: This is not a developer’s tool per say. But I think it deserves listing nonetheless. It is actually a theme designer’s tool that helps make a custom WordPress theme compatible for use as a BuddyPress theme.</p>
<p><strong>Site Administrator Tools</strong></p>
<p><a href="http://teleogistic.net/code/buddypress/bp-system-report/"><em>BP System Report</em></a>: This tool gathers useful network intelligence on a site’s member and group activity. It provides a site administrator with usage trends and statistics, offering important insights into the health of their community.</p>
<p><a href="http://wordpress.org/extend/plugins/import-from-ning/"><em>Import from Ning</em></a>: I thought I should throw this one in as well as it is a tool that helps social network operators. It provides some utility in helping to migrate a Ning network to BuddyPress. As Ning does not offer too much help in migrating existing networks to competing platforms, this tool is not a panacea to your Ning-networking woes&mdash;but it is a great start!</p>
<p><strong>Plugin Developers Need Your Support</strong></p>
<p>Creating a high-quality plugin takes more time than most people realize. In fact, it can take as much time if not more than creating a top-quality theme. But plugin developers rarely receive the same financial rewards that premium theme designers do.</p>
<p>My limited, empirical data shows that with the number of downloads of my current three WordPress / BuddyPress plugins, that less than 0.1% (yes, that is less than one-tenth of  one percent) bother to donate. If my plugins received poor reviews, that would be understandable. But, as my lowest-rated plugin received a 4.5-star review out of 5, the lack of donations obviously has nothing to do with perceived quality. <em>Note: Although I am a listed contributor to the BuddyPress Skeleton Component, I do not include that as one of  my three plugins.</em></p>
<p>Whereas the greater WordPress community appears to have no issue with spending money on what are called premium themes, there seems to be a disconnect when it comes to supporting the developers of the plugins that help make their communities successful. Yes, great themes definitely provide an important face to a community, but it’s important to remember that plugins&ndash; along with the core functionality of WordPress and BuddyPress&ndash;provide the foundation to our networks.</p>
<p>So please generously donate to plugin developers and help keep them coding their wonderful plugins be they general purpose or specialty in nature.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/05/08/the-growing-panoply-of-specialty-buddypress-developer-and-administration-tools/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>BuddyPress Featured Members Plugin Widget Re-Released</title>
		<link>http://jeffsayre.com/2010/05/05/buddypress-featured-members-plugin-widget-re-released/</link>
		<comments>http://jeffsayre.com/2010/05/05/buddypress-featured-members-plugin-widget-re-released/#comments</comments>
		<pubDate>Wed, 05 May 2010 18:09:52 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[GPL]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=650</guid>
		<description><![CDATA[After dragging my feet for too long, I’ve finally upgraded and updated my old Featured Members Widget to work with WP/MU 2.9.2 and BuddyPress 1.2.3. The code has been entirely rewritten using the WordPress Plugin API. This re-released version is what I call a plugin widget as it is a BuddyPress-specific widget and must be [...]]]></description>
			<content:encoded><![CDATA[<p>After dragging my feet for too long, I’ve finally upgraded and updated my old Featured Members Widget to work with WP/MU 2.9.2 and BuddyPress 1.2.3. The code has been entirely rewritten using the <a href="http://codex.wordpress.org/Widgets_API">WordPress Plugin API</a>.<span id="more-650"></span></p>
<p>This re-released version is what I call a plugin widget as it is a BuddyPress-specific widget and must be activated like other BP plugins. Widget installation is handled this way so that if BuddyPress is not activated, then this plugin widget will not be loaded&mdash;which could cause issues with your WP site. The widget does an internal check to see if BuddyPress is activated, if so then it continues loading. If not, it stops loading and will not be visible in the widget gallery. The widget is automatically activated sitewide so your other members will not see it in their plugins section if you&#8217;re running a multisite install.</p>
<p><strong>Download BuddyPress Featured Members Plugin Widget and Donate!</strong></p>
<p>You can <a href="http://wordpress.org/extend/plugins/buddypress-featured-members-widget/">download version 1.2 of the BuddyPress Featured Members Plugin Widget from the WordPress Plugin Repository</a>. Even more excitingly, you can help me support this plugin, encourage me to create new ones, and enable me to keep living by selecting a sponsorship level below and clicking the &#8220;Pay Now&#8221; button. Thank you!</p>
<div class="paypal_button">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick"/>
<input type="hidden" name="hosted_button_id" value="VTHMENKR9ZWB4"/>
<table>
<tr>
<td>
<input type="hidden" name="on0" value="Sponsorship Levels"/>Sponsorship Levels</td>
</tr>
<tr>
<td>
<select name="os0">
<option value="Supporter">Supporter $15.00</option>
<option value="Donor">Donor $25.00</option>
<option value="Sponsor">Sponsor $50.00</option>
<option value="Benefactor">Benefactor $100.00</option>
<option value="Patron">Patron $250.00</option>
<option value="Open Source Angel">Open Source Angel $500.00</option>
<option value="Holy Cow!">Holy Cow! $1,000.00</option>
</select>
</td>
</tr>
</table>
<input type="hidden" name="currency_code" value="USD"/>
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
						<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"/><br />
					</form>
<p><em>If you are a corporate user, consultant, plugin developer, or theme designer and profit from using my plugin, please consider donating at one of the upper levels. Thank you!</em></p>
</p></div>
<p><strong>Using the Plugin Widget</strong></p>
<p>Please read the readme.txt file for installation and usage instructions. If you have any issues, please leave a comment in this post, or visit the <a href="http://buddypress.org/community/groups/buddypress-featured-members-widget/forum/">support forum for this plugin widget</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/05/05/buddypress-featured-members-plugin-widget-re-released/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Introducing WordPress Hook Sniffer: a Developer Plugin</title>
		<link>http://jeffsayre.com/2010/04/29/introducing-wordpress-hook-sniffer-a-developer-plugin/</link>
		<comments>http://jeffsayre.com/2010/04/29/introducing-wordpress-hook-sniffer-a-developer-plugin/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 20:26:56 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=575</guid>
		<description><![CDATA[As a developer, one of the benefits to sophisticated Open Source projects like WordPress and BuddyPress is that a significant amount of foundational code is already in place. This makes adding additional functionality, additional value, to the platform easier. You just create a plugin. As a developer, one of the downsides to Open Source projects [...]]]></description>
			<content:encoded><![CDATA[<p>As a developer, one of the benefits to sophisticated Open Source projects like WordPress and BuddyPress is that a significant amount of foundational code is already in place. This makes adding additional functionality, additional value, to the platform easier. You just create a plugin.<span id="more-575"></span></p>
<p>As a developer, one of the downsides to Open Source projects like WordPress and BuddyPress is that a significant amount of foundational code is already in place. There are hundreds of functions, classes, methods, and general code that you never actually get to know. Sure, you might call them from within your code, you might know how and when to use them, but you more than likely do not understand how and why they work and what they actually do to accomplish their task.</p>
<p>Why? Because you were (more than likely) not part of the team that wrote the code, that figured out what each function was required to accomplish and in what ways that code would interact with other parts of the foundation.</p>
<p>This is exactly the situation I found myself in several weeks ago as I was trying to figure out why one of my custom do_action events in my BuddyPress Privacy Component was not working as I had expected. My investigation into this issue not only opened my eyes into the inner workings of WordPress’ Plugin API, but also helped me figure out why a few <a href="http://trac.buddypress.org/ticket/2325">BuddyPress action events were not behaving as intended</a>.</p>
<p><strong>Understanding Hook Firing Sequence</strong></p>
<p>How can you know the firing sequence of action functions or filter functions that you attach to existing WordPress and BuddyPress hooks? Why is this even important?</p>
<p>To answer the second question, read my article, <a href="http://jeffsayre.com/2010/04/29/wordpress-hooks-barbs-and-snags/"><em>WordPress Hooks, Barbs, and Snags</em></a>. The answer to the first question is more difficult.</p>
<p>Since many internal WordPress and BuddyPress functions may be tying into the same action or filter hooks, there is no easy way to know the firing sequence of action functions or filter functions. Add to that the fact that 3rd-party external plugins can also tie into these same action or filter hooks and the issue becomes even more murky. </p>
<p>As I had a serious issue with a custom do_action event in my BuddyPress Privacy Component not working as expected, I set out to solve the first question. Although my problem appeared to be with my custom do_action event, I soon discovered that it was caused by another hook to which I had tied in to.</p>
<p>The result of my investigation: a new tool for WordPress and BuddyPress developers called the WordPress Hook Sniffer. What does this plugin do? It helps plugin developers determine the sequence in which action and filter functions are fired, providing a window  into the inner workings of the WordPress Plugin API.</p>
<p>As with all of my other WordPress and BuddyPress plugins, this plugin is licensed under the <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License 3.0 (GPL)</a>.</p>
<p><strong>Download WordPress Hook Sniffer and Donate!</strong></p>
<p>You can download <a href="http://wordpress.org/extend/plugins/wordpress-hook-sniffer/">the WordPress Hook Sniffer via the WP Plugin Repository</a>. Even more excitingly, you can help me support this plugin, encourage me to create new ones, and enable me to keep living by selecting a sponsorship level below and clicking the &#8220;Pay Now&#8221; button. Thank you!</p>
<div class="paypal_button">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick"/>
<input type="hidden" name="hosted_button_id" value="VTHMENKR9ZWB4"/>
<table>
<tr>
<td>
<input type="hidden" name="on0" value="Sponsorship Levels"/>Sponsorship Levels</td>
</tr>
<tr>
<td>
<select name="os0">
<option value="Supporter">Supporter $15.00</option>
<option value="Donor">Donor $25.00</option>
<option value="Sponsor">Sponsor $50.00</option>
<option value="Benefactor">Benefactor $100.00</option>
<option value="Patron">Patron $250.00</option>
<option value="Open Source Angel">Open Source Angel $500.00</option>
<option value="Holy Cow!">Holy Cow! $1,000.00</option>
</select>
</td>
</tr>
</table>
<input type="hidden" name="currency_code" value="USD"/>
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
						<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"/><br />
					</form>
<p><em>If you are a corporate user, consultant, plugin developer, or theme designer and profit from using my plugin, please consider donating at one of the upper levels. Thank you!</em></p>
</p></div>
<p><strong>Using the Plugin</strong></p>
<p><em>WARNING: This plugin is to be used only in a development sandbox and not in a production environment. It is intended solely for use by plugin developers to help determine the sequence in which action and filter functions are fired. Use at your own risk. As this plugin should not be installed on an active WordPress-based site (a production site), no support for broken sites will be given. You have been warned!</em></p>
<p>As with all plugins, please read the installation instructions in the readme.txt file. You may find the FAQ in the readme.txt file useful. Also, if you have been using an older version of this plugin, the installation process is now much simpler&mdash;<a href="http://jeffsayre.com/2010/07/28/wordpress-hook-sniffer-v0-14-released/">see this post for details</a>.</p>
<ol>
<li>Once installed and activated, you will find a new menu option in the Settings menu<br />
<a href="http://jeffsayre.com/wp-content/uploads/2010/04/WP-Hook-Sniffer-Menu.png"><img src="http://jeffsayre.com/wp-content/uploads/2010/04/WP-Hook-Sniffer-Menu.png" alt="" title="WordPress Hook Sniffer Menu Selection" width="161" height="214" class="alignnone size-full wp-image-576" /></a></li>
<li>Clicking on that will bring up the WordPress Hook Sniffer Settings screen. The first thing to do is look in the upper left-hand corner of the screen. See that gratuitous &#8220;Please Support My Work&#8221; section? Go ahead and select a nice, juicy amount and then click the “Pay Now” button. Your donation (in any amount) is greatly appreciated! Okay, enough begging.<br />
<a href="http://jeffsayre.com/wp-content/uploads/2010/04/WP-Hook-Sniffer-Settings.png"><img src="http://jeffsayre.com/wp-content/uploads/2010/04/WP-Hook-Sniffer-Settings-300x283.png" alt="" title="WordPress Hook Sniffer Settings Screen" width="300" height="283" class="alignnone size-medium wp-image-577" /></a></li>
<li>Next, read the “Usage Notes” section at the end of this article for a few additional bits of important information</li>
<li>Finally, select “Enabled” in the Main Sniffer Settings section, choose what data you wish to view in the Output Options section, and then select where you would like the output to go in the Output Location section</li>
<li>It’s that easy!</li>
</ol>
<p><strong>Output Settings Options</strong></p>
<p>Whereas getting the WordPress Hook Sniffer to work is relatively straight forward, interpreting the output is a different story. What does all of that crap stuff mean?</p>
<p>Here is a brief overview of each of the output options and what information it can provide. However, to truly understand how to interpret the output and how best to use it in your development work, you will need to read my article, <a href="http://jeffsayre.com/2010/04/29/wordpress-hooks-barbs-and-snags/"><em>WordPress Hooks, Barbs, and Snags article</em></a>.</p>
<p>A. Added Functions</p>
<p>Selecting this option outputs the special WP Hook Sniffer array that holds, in the order in which they were encountered during code execution, all add_action calls and add_filter calls. The file and line number from which a given function was triggered is also provided.</p>
<p>B. Removed Functions</p>
<p>Selecting this option outputs the special WP Hook Sniffer array that holds, in the order in which they were encountered during code execution, all remove_action calls and remove_filter calls. The file and line number from which a given function was triggered is also provided.</p>
<p>C. Action and Filter Function Array </p>
<p>This is the grandaddy, grandmommy, grandchild, Grand Ole Opry of output data. It contains the output of the $wp_filter array, the array that holds all of the added action and filter functions and is used by the do_action and apply_filters functions call to determine function firing order&mdash;although there is a twist here. You must read my article <a href="http://jeffsayre.com/2010/04/29/wordpress-hooks-barbs-and-snags/"><em>WordPress Hooks, Barbs, and Snags article</em></a> to learn what it is.</p>
<p>D. Action Event Firing Order </p>
<p>This option contains the output of the $wp_actions array. A simple, one dimensional array that holds the sequential listing of all the do_action events that need to be processed. The events within this array used in conjunction with with corresponding data in the $wp_filter array determines the firing sequence of all action functions</p>
<p>E. Action Event Firing Sequence</p>
<p>Selecting this option outputs the special WP Hook Sniffer array that holds the sequential listing of do_action events with their corresponding fired action function(s). This listing shows you exactly the sequence in which each triggered action event fires its hooked action functions.</p>
<p>F. Filter Event Firing Sequence</p>
<p>Selecting this option outputs the special WP Hook Sniffer array that holds the sequential listing of apply_filters events with their corresponding fired filter function(s). This listing shows you exactly the sequence in which each triggered filter event fires its hooked filter functions.</p>
<p><strong>
<div id="notes">Usage Notes</div>
<p></strong></p>
<ol>
<li><em>Reporting Bugs</em>: If you find bugs or are having issues using this plugin, you can either post a comment in this article or <a href="http://buddypress.org/community/groups/wordpress-hook-sniffer/forum/">visit the support forum for this plugin</a>. Assistance in providing patches to this plugin is appreciated.</li>
<li><em>Increasing Precision</em>: If you want to see a more precise accounting of the execution time of a given function, you have to edit your php.ini file to increase the precision displayed for floating point numbers. Search your php.ini file for the entry:
<p><code>precision = 12</code></p>
<p>and change that to:</p>
<p><code>; precision = 12<br />
precision = 16</code></p>
<p>As you can see, I like to comment out any changes to my default php.ini settings just in case I decide to revert the changes later. This allows you to do so easily without having to remember or look up what the default setting is supposed to be.</p>
<p>Save your modified php.ini file and then restart your development server and you should now see the time-executed stamp displaying 6 significant figures instead of 2. This provides a sufficient level of detail.</li>
<li><em>Text Output Issues</em>: If you’re using SSL or are behind a proxy server, you may have issues when selecting to send the output to a text file. There are a few work arounds for this, but suffice it to say that since this plugin is to be used exclusively in a development sandbox environment, I will not be coding these into the plugin. If you must use this plugin with SSL or behind a proxy server, then simply select the screen output option. You can learn more about this in the <a href="http://www.php.net/manual/en/function.fopen.php">PHP manual for the fopen function</a>.</li>
<li><em>Screen Output</em>: When printing to screen, it may take a several seconds for output to finish. The output will start just below your theme’s footer.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/04/29/introducing-wordpress-hook-sniffer-a-developer-plugin/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>WordPress Hooks, Barbs, and Snags</title>
		<link>http://jeffsayre.com/2010/04/29/wordpress-hooks-barbs-and-snags/</link>
		<comments>http://jeffsayre.com/2010/04/29/wordpress-hooks-barbs-and-snags/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 20:25:07 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=587</guid>
		<description><![CDATA[This article is intended to help you learn how to interpret the output from the WordPress Hook Sniffer developer’s tool This article is my exhaustive study of what I thought was a simple little function&#8212;the do_action function. It details how WordPress action hooks really work. It is a long, detailed article. If you want to [...]]]></description>
			<content:encoded><![CDATA[<p><em>This article is intended to help you learn how to interpret the output from the <a href="http://jeffsayre.com/2010/04/29/introducing-wordpress-hook-sniffer-a-developer-plugin/">WordPress Hook Sniffer developer’s tool</a></em></p>
<p>This article is my exhaustive study of what I thought was a simple little function&mdash;the do_action function. It details how WordPress action hooks really work.<span id="more-587"></span> It is a long, detailed article. If you want to understanding the inner works of the do_action function, then it will be worth your time. Although this article only briefly mentions the apply_filters function, the lessons learned about the do_action function apply equal as well as the coding of these two functions is nearly identical.</p>
<p>This is not a beginners guide to <a href="http://codex.wordpress.org/Plugin_API">WordPress action and filter hooks</a>. To benefit from this article, you need to understand what hooks are, why you use them, and how to use them.</p>
<p><strong>Hooks, Barbs, and Snags</strong></p>
<p>Before we start, I need to define two terms. You may be wondering about the title of this article, “WordPress Hooks, Barbs, and Snags.” You should already know the definition of a WordPress hook. But what are barbs and snags?</p>
<p>These are two terms I created to classify the following:</p>
<p><em>Barbs</em>: salient insights about the functioning of WordPress hooks that stick out and grab your attention. Understanding these barbs help you avoid snags. In this sense, a barb is a good thing.</p>
<p><em>Snags</em>: WordPress hooks that do not execute as expected, not because the do_action or apply_filters functions are misbehaving, but rather because you do not understand how these functions actually work.</p>
<p><strong>The Hook Loop or Where the Issue Gets Complex</strong></p>
<p>When it comes to code, loops can be tricky constructs to properly implement. What seems like a simple, innocuous operation may actually be more complex than meets the eye. This is the case with the do loops in the do_action and apply_filters functions.</p>
<p>There are two key arrays that WordPress uses to determine the firing sequence of actions and filters&mdash; the $wp_actions and $wp_filter arrays. These arrays get built throughout the execution of each page load and are not fully populated until page load is complete and PHP stops execution, waiting for its next command.</p>
<p><em>The $wp_filter Array</em></p>
<p>The $wp_filter array is where all added action functions and filter functions are stored for future reference and processing by both the apply_filters function and the do_action function. This array is a very-large, multidimensional array nested to four levels. See the snapshot of the partial contents of this massive array.<a href="http://jeffsayre.com/wp-content/uploads/2010/04/WP-Hook-Sniffer-filter-array.png"><img src="http://jeffsayre.com/wp-content/uploads/2010/04/WP-Hook-Sniffer-filter-array-300x211.png" alt="" title="WordPress Hook Sniffer $wp_filter Array" width="300" height="211" class="alignright size-medium wp-image-603" /></a></p>
<p>Here is a snapshot of what is generated in the $wp_filter array just by navigating to the homepage in my particular setup. Your results will vary depending on which plugins you have activated, which theme you’re using, whether you’re running WordPress in single-site or multi-site mode, whether you’re running BuddyPress, whether a user is logged into your site, and of course which versions of WP / BP you currently have installed.</p>
<p>As you can see, there are a lot of action functions and filter functions listed, each of which result in the grabbing and storing of added actions and filters. Not all of these are necessarily triggered. It is up to the apply_filters and do_action functions to determine which of the referenced functions will be fired.</p>
<p><em>The $wp_action Array</em></p>
<p>The $wp_actions array holds all of the current actions invoked by do_action events in the files that are processed when a given page is loaded. Like the $wp_filter array, the contents of this array obviously depend on the page to which a user navigates.</p>
<p>Here is a snapshot of what is generated in the $wp_actions array just by navigating to the homepage in my particular setup.<a href="http://jeffsayre.com/wp-content/uploads/2010/04/WP-Hook-Sniffer-action-array.png"><img src="http://jeffsayre.com/wp-content/uploads/2010/04/WP-Hook-Sniffer-action-array-300x88.png" alt="" title="WordPress Hook Sniffer $wp_action Array" width="300" height="88" class="alignright size-medium wp-image-604" /></a></p>
<p>But read on as knowing about these two arrays is only one aspect to fully understanding the underlying processes, in figuring out the entire puzzle.</p>
<p><strong>Populating the Arrays, Firing the Hooks</strong></p>
<p>Here’s another piece to this complex puzzle. We know that the array $wp_filter holds an array listing all of the currently active action functions and filter functions. But how is this array built?</p>
<p>It’s simple. All action and filter functions that are not enclosed within a function, a loop, or any type of conditional clause currently not triggered, are added sequentially to this array as a given file is executed after it’s loaded (via either an include, include_only, require, or require_only function call). Therefore, as soon as a file is loaded, execution passes to that file and all directly executable add_action, add_filter, remove_action, and remove_filter function calls are processed.</p>
<p>This means that PHP is furiously processing function calls from these four functions, resulting in data being added or removed from the $wp_filter array. When an add_action call is triggered, the parameters are sent to the add_action function in the WP plugin API. When an add_filter call is triggered, the parameters are sent to the add_filter function&mdash;and so on.</p>
<p>However, one additional function is called when an add_action call is processed. As soon as the add_action function gets called, it immediately passes on the responsibility to the add_filter function. This means that WordPress looks at action functions and filter functions as the same. This is another key insight and is why both action functions and filter functions are referenced within the same array&mdash; the $wp_filter array.</p>
<p>Once the add_filter function gets control, it adds the calling function to the growing list of  actions and filters that can be triggered by a given do_action or apply_filters event. This process quickly results in the $wp_filter array growing into a massive, multidimensional array. Of course, action and filter functions can get removed from the array via calls from the remove_action and remove_filter functions.</p>
<p>The reality of code execution is of course more complex. The $wp_filter array is still being populated with action and filter functions when the first do_action events are triggered. This means that it is possible to have a situation where an action or filter that is hooked to a given do_action or apply_filters event will not get triggered if the file in which the hooked function is located has not been loaded before the hook is triggered.</p>
<p>This last point is exactly what was happening in BuddyPress when the bp_init action hook fired. This is the issue that was puzzling me and resulted in this exhaustive study and creation of my new WordPress Hook Sniffer plugin. You can <a href="http://trac.buddypress.org/ticket/2325">read this BuddyPress Trac ticket</a> to learn more.</p>
<p><strong>A Detailed Analysis to Shed Some Light</strong></p>
<p>Here is a breakdown and partial analysis of the $wp_actions array, the array that holds all of the current actions invoked by do_action events in the files that are processed when the homepage is loaded. We will use this array along with the $wp_filter array to figure out what is really going on.</p>
<p>The contents of this array obviously depends on the page to which a user navigates. This is just what happens when a non-logged-in user visits the homepage of the default BuddyPress theme in my WPMU setup. The only other plugin that is activated is my BuddyPress Privacy Component. For these tests, I am running WPMU 2.9.2 and BuddyPress 1.2.3.</p>
<p>NOTE: To fully understand what is going on, you need to make sure that you are looking at the completed arrays and not the partial arrays grabbed partway through page-load.</p>
<p>Let’s look at the order in which do_action events will be triggered. We will analyze what is happening in the first four elements of the $wp_actions array (index value of “0” through “3”). How is each action triggered and what are the results? This will start off as a detailed look into each hook’s actions, but will provide fewer details with each additional event as the basic processes become evident.</p>
<p><em>The First Four Triggered Action Events</em></p>
<p><code>[0] => muplugins_loaded</p>
<p>[1] => bp_core_loaded</p>
<p>[2] => plugins_loaded</p>
<p>[3] => bp_setup_root_components<br />
</code></p>
<p><em>[0] => muplugins_loaded</em></p>
<p>When a user navigates to the homepage of a default BuddyPress install running on top of WPMU, the first action hook that is invoked is muplugins_loaded. This is directly triggered on line 547 in wp-settings.php. Any added actions that are tied to this event will next be triggered.</p>
<p>Looking at the $wp_filter array, you will see that there are no actions tied to this hook. This means that there is no subarray element with a key name of muplugins_loaded. In other words, you will not find any reference to that action event within the $wp_filter array. So, this action event does not result in any action functions getting fired.</p>
<p><em>NOTE: A triggered hook may or may not have actions tied to it. If no actions are tied to the hook, the do_action routine passes by that hook, checking the next invoked hook for added action functions to fire.</em></p>
<p>Before the next action event is triggered, something important happens.</p>
<p>Execution of the wp-settings.php file continues. On line 703 of wp-settings.php, all the active plugins are loaded&mdash;both blog specific plugins and site-wide plugins.</p>
<p>If you look at that line, $current_plugins can be modified by any added filters. That is what happens. On line 2348 of wpmu-functions.php, an add_filter call triggers function mu_filter_plugins_list. This filter modifies the contents of $current_plugins, adding any MU plugins that have been activated site wide. Processing is returned wp-settings.php, resulting in the main file of each activated plugin getting loaded.</p>
<p>There is an interesting item to notice within function mu_filter_plugins_list. On line 2345 of that function, the two arrays $active_plugins and $active_sitewide_plugins are merged and the resultant new array is sorted.</p>
<p>What does this mean? It means that when it comes to the issue of action and filter sequence firing, it does not matter which plugins you activate first. The order in which plugins are added to each of the serialized objects active_plugins and active_sitewide_plugins is immaterial. The sort function will alphabetically reorder the contents of the merged array.</p>
<p><em>NOTE: Each WPMU blog has it’s own listing of active plugins that are stored in a serialized object in the blog’s wp_x_options table. Look for the entry “active_plugins” within the option_name field of that table. The corresponding active plugins are in the option_value field of that record. All plugins that are to be activated site wide within WPMU are stored in a serialized object in the wp_sitemeta table. Look for the entry “active_sitewide_plugins” within the meta_key field of that table and the corresponding plugins that are to be activated site wide in the meta_value field of that record.</em></p>
<p>So, in our particular case with two site-wide plugins installed and activated (buddypress and bp-authz), the order in which they were activated is immaterial in determining which file is included (loaded) first by the conditional loop code starting on line 704 of wp-settings.php.</p>
<p>If you look in the wp_sitemeta table for the meta_key “active_sitewide_plugins”, you will see this:</p>
<p><code>a:2:{s:24:"buddypress/bp-loader.php";i:1270239897;s:28:"bp-authz/bp-authz-loader.php";i:1270396554;}</code></p>
<p>BuddyPress appears first because I activated it first&mdash;as is necessary. But, when the references to these two main plugin files are processed through the mu_filter_plugins_list function, they get sorted. This results in bp-authz-loader.php getting loaded before bp-loader.php.</p>
<p>This could be a big issue as all BP-dependent plugins rely on BuddyPress to be installed, activated, and loaded. Any BP-dependent plugin that comes alphabetically before “buddypress” will have their main file loaded before BuddyPress’ main file.</p>
<p><strong>Barb 1:</strong> As a BuddyPress plugin developer, this is the first major insight, the first important barb that can prevent your code from hitting a snag with regards to action and filter execution.</p>
<p>Fortunately, there is an easy way to prevent this barb from snagging you and those that use your plugin. Make sure that <a href="http://codex.buddypress.org/how-to-guides/checking-buddypress-is-active/">BuddyPress is active before your plugin loads</a> its core files.</p>
<p>Since that is exactly what I’ve done with my BuddyPress Privacy Component, there are no issues and execution quickly passes back to the loop and the next file in the $current_plugins array is loaded. This is the main BuddyPress file, bp-loader.php.</p>
<p><em>[1] => bp_core_loaded</em></p>
<p>Execution of bp-loader.php begins. On line 22 of bp-loader.php, the first custom BuddyPress action event is invoked:</p>
<p><code>do_action( 'bp_core_loaded' );</code></p>
<p>It is directly invoked, directly triggered. It is not enclosed within a function, a loop, or any type of conditional clause. This invoked event is what appears in the second element of the $wp_actions array.</p>
<p>Since there are currently no tied-in actions to this particular action event (as can be easily determined by looking at the $wp_filter array), the invocation of this action does not result in further actions being triggered.</p>
<p>The execution of bp-loader.php continues. Right after line 22, a series of conditional clauses include (load) all enabled BuddyPress modules&mdash;activity, blogs, forums, friends, groups, messages, xprofile.</p>
<p>As each of these files are included (loaded), any directly invoked (directly triggered) action events within each of them will also be invoked. Since there are no additional, directly invokable do_action calls within any of these files, execution is passed back to wp-settings.php.</p>
<p><em>[2] =>plugins_loaded</em></p>
<p>On line 735 in wp-settings.php, the do_action event for plugins_loaded is directly triggered.</p>
<p><code>do_action('plugins_loaded');</code></p>
<p>This is when things really start to accelerate. Up until this time, only a few lines of php code within BuddyPress have actually been run.</p>
<p>With the invocation of the plugins_loaded event, we now have our first action hook that has actions tied to it. Understanding what happens next leads us to the second major insight, the second important barb.</p>
<p>To understand what happens next, we need to inspect the elements within the plugins_loaded array of the $wp_filter array. I have extracted just that subarray element below:</p>
<p><code>plugins_loaded:<br />
Array<br />
(<br />
    [0] => Array<br />
        (</p>
<p>            [wp_maybe_load_widgets] => Array<br />
                (<br />
                    [function] => wp_maybe_load_widgets<br />
                    [accepted_args] => 1<br />
                )</p>
<p>            [wp_maybe_load_embeds] => Array<br />
                (<br />
                    [function] => wp_maybe_load_embeds<br />
                    [accepted_args] => 1<br />
                )</p>
<p>        )</p>
<p>    [2] => Array<br />
        (<br />
            [bp_core_setup_root_uris] => Array<br />
                (<br />
                    [function] => bp_core_setup_root_uris<br />
                    [accepted_args] => 1<br />
                )</p>
<p>            [bp_setup_root_components] => Array<br />
                (<br />
                    [function] => bp_setup_root_components<br />
                    [accepted_args] => 1<br />
                )</p>
<p>        )</p>
<p>    [3] => Array<br />
        (<br />
            [bp_core_set_uri_globals] => Array<br />
                (<br />
                    [function] => bp_core_set_uri_globals<br />
                    [accepted_args] => 1<br />
                )</p>
<p>        )</p>
<p>    [5] => Array<br />
        (<br />
            [bp_core_load_buddypress_textdomain] => Array<br />
                (<br />
                    [function] => bp_core_load_buddypress_textdomain<br />
                    [accepted_args] => 1<br />
                )</p>
<p>            [bp_setup_globals] => Array<br />
                (<br />
                    [function] => bp_setup_globals<br />
                    [accepted_args] => 1<br />
                )</p>
<p>        )</p>
<p>    [10] => Array<br />
        (<br />
            [bp_setup_nav] => Array<br />
                (<br />
                    [function] => bp_setup_nav<br />
                    [accepted_args] => 1<br />
                )</p>
<p>            [bp_setup_widgets] => Array<br />
                (<br />
                    [function] => bp_setup_widgets<br />
                    [accepted_args] => 1<br />
                )</p>
<p>            [bp_register_activity_actions] => Array<br />
                (<br />
                    [function] => bp_register_activity_actions<br />
                    [accepted_args] => 1<br />
                )</p>
<p>            [bp_loaded] => Array<br />
                (<br />
                    [function] => bp_loaded<br />
                    [accepted_args] => 1<br />
                )</p>
<p>        )</p>
<p>)<br />
</code></p>
<p>This array element is itself a multidimensional nested array. In fact, the first element (with an index value of “0”) has two action functions referenced.</p>
<p><em>An important point: each subarray of the $wp_filter array is a numeric array. Read that again. This means that the second level of the nested $wp_filter array contains numeric arrays.</em></p>
<p>You might be wondering how the index values for these numeric arrays are set. This is simple.</p>
<p>The key, the index value, of each 2nd-level array element is determined by the priority assigned to the event in the add_action and add_filter call. Thus, the priority set for a given action or filter function becomes the key of each element in a given hook’s multidimensional array. If a priority is not set for a given add_action or add_filter call, it is automatically defaulted to “10”. This means that any and all added actions or filters that do not specify a priority are automatically assigned to the proper action array element with an index value of “10”.</p>
<p>As an example, if the priority for a given added action is set to “16”, then that particular action function will be located in the array element for that action with an index value of “16”. Multiple action functions can be added under the same index value, creating an array of action functions associated with the same numeric key element. The order in which they appear is determined by the order in which they were executed.</p>
<p><strong>Barb 2:</strong> This is the second major insight, the second important barb that can prevent your code from hitting a snag with regards to action and filter execution.</p>
<p>Now, the next piece of the puzzle is this. The order in which action functions are added to a given action array element is determined by the order in which they are encountered, the order in which their corresponding add_action or add_filter calls were fired. As we will see below, this is what makes determining the firing order of added actions and filters difficult.</p>
<p><strong>Barb 3:</strong> This is the third major insight, the third important barb that can prevent your code from hitting a snag with regards to action and filter execution.</p>
<p><strong>Barb 4:</strong> The higher the index key, the later the action or filter functions within that index-key grouping will get fired. Therefore, using the example above, if we set a priority of “16” for a given action function, it would get fired only after all the other action functions with a lower priority have been fired.</p>
<p>We have now reached the final piece of the puzzle!</p>
<p>Near the beginning of this article, the complexity of the do loops within the do_action and apply_filters functions was briefly mentioned. And it is within those loops that this story really finally gets resolved.</p>
<p>If you look at lines 166 (within the apply_filters function) and line 339 (within the do_action function) of the wp-includes/plugin.php file, you will find the code lines where the actual hooked functions are fired. Do you see the call_user_func_array() function call? That is a core PHP function. It is what will actually fire the next action or filter function in line, as determined by the data in the $wp_filter array.</p>
<p>The action of the call_user_func_array() function nested within the do loop is not as simple as it may seem. Why is this? Well, currently we are discussing the plugins_loaded action event and all of the tied into functions that get fired.</p>
<p>Look at the next action event to get triggered within the $wp_actions array. It is the action event bp_setup_root_components. But wait. Why is there another action event being triggered? We have not yet finished iterating through all of the added action functions to the plugins_loaded action event.</p>
<p>Once again, the reason is simple. Triggered action functions can themselves have action events. Inspecting the plugins_loaded subarray in the $wp_filter array, we see that the bp_setup_root_components action function is invoked by the plugins_loaded event via an added action call on line 2021 in bp-core.php. Within that action function there is an action event called bp_setup_root_components.</p>
<p>So, the sequential processing of all the added action functions with the plugins_loaded subarray of the $wp_filter function has come across a new action event to trigger. It now gets priority and further processing of the plugins_loaded subarray is put on hold until the bp_setup_root_components action event is finished processing its added action functions.</p>
<p><strong>Barb 5:</strong> This can quickly result in a nested grouping of action events with the firing of their corresponding action functions. This is the final piece to the puzzle and the last and final barb that can prevent your code from hitting a snag with regards to action and filter execution.</p>
<p>As you are reading this, the juxtaposed actions of the do loop with the call_user_func_array() function more than likely seem obvious. It may seem this is not unexpected behavior or difficult to understand.</p>
<p>Whereas that is the case when all of the data is clearly laid out before you, the complex actions of these intertwined functions are not apparent when you are coding a plugin. There is no practical way to peek inside this action-event, action-function feedback loop.</p>
<p>This is were the true value of the WordPress Hook Sniffer plugin is revealed.</p>
<p><em>[3] => bp_setup_root_components</em> </p>
<p>Here’s where we understand the last piece to this confusing puzzle.</p>
<p>Inspecting the $wp_filter array for this action event you will see that there are four action functions that are hooked to this action event: bp_activity_setup_root_component, bp_blogs_setup_root_component, bp_forums_setup_root_component, groups_setup_root_component.</p>
<p>These action functions are fired in that sequence. Since they do not have any action events which they trigger, control is passed back to the plugins_loaded event and the next action function in the plugins_loaded subarray is fired.</p>
<p><strong>Applying the Lessons</strong></p>
<p>When interpreting the results of the WoodPress Hook Sniffer plugin, you need to look at the output of the $wp_actions array and then search out the hooked actions to each of those items (if any) in the $wp_filter array. This will give you a general idea of what gets fired when. You can then experiment and see how changes to action priorities affect the firing sequence of a given added action.</p>
<p>You need to carefully think about the execution timing of each action or filter you add, looking at the corresponding triggering event for the hook or hooks to which it’s tied. Remember, you can hook a function to more than one hook which means that it is possible, if you are not careful, that some of them may fire whereas others may not. It’s all a matter of whether or not the reference to the action or filter function was successfully added to the $wp_filter array before the associated hook is triggered.</p>
<p>Looking at the Action Event Firing Sequence and the Filter Event Firing Sequence will help you precisely tune your added hooks and filters. Remember that execution my temporarily pass to another action or filter event. The output of these two WordPress Hook Sniffer arrays will show you when that happens.</p>
<p>Finally, there is no requirement that you place your add_action and add_filter calls right below the functions in which they are associated. Whereas doing so does facilitate code understanding, you could instead place them all at the top of the file (or the bottom) in which the associated functions are located. Remember, each add_action and add_filter function call that is directly executable is processed as soon as a file is loaded. So it does not matter where within the file those calls are located&mdash;with the possible exception of fine tuning the execution order of a particular function.</p>
<p><strong>Final Notes on the $wp_filter and $wp_actions Arrays</strong></p>
<p>The arrays $wp_filter and $wp_actions are repopulated from scratch each time a page is loaded. They do not contain a running accounting of all action and filter functions and all action and filter hooks. The contents of both of these arrays may vary depending on which page you navigate. The contents will depend on the files that are loaded (via include, include_only, require, require_only) when a given page you are on is displayed.</p>
<p>The reality is that, when visiting a given page, there will always be more hooks, action, and filter functions buried deep inside non-loaded files or within function blocks that are not directly hooked. The first is a result of the add_action, remove_action, add_filter, or remove_filter calls not getting fired until that file is loaded. At file load, any directly-executable do_action or apply_filters will be triggered as well. The second is the result of functions that have hooks that only get triggered if the file is loaded and the function is fired.</p>
<p>Although the WP Hook Sniffer will locate all action and filter hooks, and action and filter functions no mater the source&ndash;core files, custom themes, or 3rd-party plugins&ndash;what is captured depends on one simple rule&mdash;that the hooks and function calls are actually fired during page load.</p>
<p>As an example, WP Hook Sniffer cannot locate add_action calls that get fired on a different page than the currently loaded page. It can also not locate add_action calls that are buried inside a function that does not get triggered unless a special criteria is met. To sniff out those added actions, you have to navigate to that page so that those calls get fired or cause the special criteria to be met so that the function containing the buried action call is triggered.</p>
<p>Remember, the way that the WordPress Plugin API processes added and removed actions and filters is by storing (or deleting) a reference to them in the $wp_filter array. But that only happens for hooked functions that are actually encountered during page load. The $wp_filter array is wiped clean with each page load and rebuilt from scratch. The same holds true for the $wp_actions array and the action hooks it tracks.</p>
<p>Therefore, if you have action or filter functions that are supposed to be fired on a given page but you are not seeing that they’ve been fired, then that indicates that they are hooked to an action or filter event that finishes firing before the file in which the target action or filter functions are located even gets loaded. This is exactly what happened to me and caused me to write WP Hook Sniffer.</p>
<p><strong>Summary of Barbs: the Key Insights</strong></p>
<p>1. When it comes to the issue of action function and filter function sequence firing, it does not matter which plugins you activate first.</p>
<p>2. The key, the index value, of each 2nd-level array element within the $wp_filter array is determined by the priority assigned to the event in the add_action and add_filter call.</p>
<p>3. The order in which action functions and filter functions are added to a given action or filter subarray element in the $wp_filter array is determined by the order in which they are encountered during code execution.</p>
<p>4. The higher the index key, the later the action or filter functions within that index-key grouping will get fired.</p>
<p>5. Action hooks (events) &#8211;> trigger action functions &#8211;> which can have additional action hooks &#8211;> which can trigger additional action functions &#8211;> until control is passed back to the the originally-triggering action hook.</p>
<p><a href="http://jeffsayre.com/wp-content/uploads/2010/04/WP-Hook-Sniffer-action-firing.png"><img src="http://jeffsayre.com/wp-content/uploads/2010/04/WP-Hook-Sniffer-action-firing-300x277.png" alt="" title="WordPress Hook Sniffer Action Event Pausing" width="300" height="277" class="alignnone size-medium wp-image-612" /></a></p>
<p>This is the action-event, action-function feedback loop caused by the juxtaposed actions of the do loop with the call_user_func_array() function.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/04/29/wordpress-hooks-barbs-and-snags/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Crap, GPL Questions Once Again</title>
		<link>http://jeffsayre.com/2010/04/12/crap-gpl-questions-once-again/</link>
		<comments>http://jeffsayre.com/2010/04/12/crap-gpl-questions-once-again/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 20:00:40 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[Social Media & Semantic Web]]></category>
		<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[GPL]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=522</guid>
		<description><![CDATA[Recently, someone sent me a private message on the BuddyPress.org community network. They had joined WPMU DEV and acquired all of their premium plugins. They wanted to know it they could, “release those plugins all to the buddypress / wp mu community without consequences.” I wrote a response but decided to share it here as [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, someone sent me a private message on the <a href="http://buddypress.org/forums/">BuddyPress.org community network</a>. They had joined <a href="http://wpmudev.org/">WPMU DEV</a> and acquired all of their premium plugins. They wanted to know it they could, “<em>release those plugins all to the buddypress / wp mu community without consequences</em>.”</p>
<p>I wrote a response but decided to share it here as I periodically receive<span id="more-522"></span> similar DMs, PMs, and emails. So, the next time that someone asks my opinion on this issue, I can simply point them to this post and be done with it.</p>
<p>Although this topic seems to rear its ugly head periodically, it clearly will not die. This is not an attempt to reignite any of the heated debates of the past.</p>
<p>Please respectfully add your comments and thoughts. I will include all that stay civil.</p>
<p><strong>My Response</strong></p>
<p>You have specific freedoms with all GPLed themes and plugins. To find out what those are, you should read the appropriate version of the license under which a given theme or plugin is licensed.</p>
<p>Here are a few things to consider:</p>
<ol>
<li>If you turn around and release any premium GPLed theme or plugin to the public, you will have to offer support to anyone who uses it or tell them that there is no support offered. Most authors of premium themes and plugins will not provide support for thier work if it was obtained from another site.</li>
<li>The community in general frowns upon people who take someone else&#8217;s work and profit from it&mdash;even though it may be perfectly acceptable under the GPL. So, if you decide to redistribute someone else&#8217;s premium work for a fee, then you should be aware that it may cause some backlash. If you are using someone else&#8217;s premium work as the basis of a new product, in other words you will be adding additional value to it, that is a different issue. The value added should be appreciable, you must always give credit to the original creator, and the work must remain licensed under the GPL.</li>
<li>You will have to provide your own download site. Since you are not the author of the theme or plugin, the WordPress repository will most likely not accept it for inclusion. The exception to this would be if you are creating a new version of the original theme or plugin, if you are adding additional, substantive value to it as detailed above. One scenario would be updating and rereleasing a GPLed theme or plugin that the original author no longer supports.</li>
<li>Many people within the greater WP community frown upon such maneuvers in general. Both premium theme designers and premium plugin developers donate a considerable amount of time to designing their themes and coding their plugins. They are simply trying to earn an honest living from their generous contributions.</li>
<li>There is nothing in the GPL that disallows theme designers or plugin developers from charging a distribution fee or a support fee for their work. The GPL is about usage freedoms, not about free-as-in-cost software. There is nothing in the GPL that differentiates between a designer&#8217;s work being fundamentally different than a developer&#8217;s work. So designers and developers are operating within the rights of the GPL when they offer their work for a premium&mdash;as long as they are only charging a distribution and/or support fee. When it comes to offering premium themes or plugins, any talk about the differences in rights between designers and developers is outside of the GPL, is a matter of opinion more than legal fact.</li>
<li>Currently it seems that in the WordPress community, premium theme designers are accepted in general whereas many premium plugin developers are not. I believe this disparity, this inequity, cannot last for long. The community needs both designers and developers. If developers are not afforded the same opportunities, then some will move on.</li>
<li>See my post in the following thread for <a href="http://buddypress.org/community/groups/miscellaneous/forum/topic/gpl-question-re-upcoming-plugin-release/#post-36398">my additional thoughts and opinions on this topic</a>.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/04/12/crap-gpl-questions-once-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy Code to Show Your Most Recent Tweets in WordPress</title>
		<link>http://jeffsayre.com/2010/03/13/easy-code-to-show-your-most-recent-tweets-in-wordpress-2/</link>
		<comments>http://jeffsayre.com/2010/03/13/easy-code-to-show-your-most-recent-tweets-in-wordpress-2/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 23:26:15 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[Social Media & Semantic Web]]></category>
		<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=491</guid>
		<description><![CDATA[I’ve been reworking my website today and decided it was time to add a recent Twitter tweet to the front page. I checked out the Twitter widget and several (of the many) WordPress plugins that display your most recent tweets, but decided that they had a few issues. I went looking for a solution. The [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve been reworking my website today and decided it was time to add a recent Twitter tweet to the front page. I checked out the Twitter widget and several (of the many) WordPress plugins that display your most recent tweets, but decided that they had a few issues.<span id="more-491"></span></p>
<p>I went looking for a solution. The result, 15 lines of PHP you can use to accomplish the goal. No need to mess with plugins. Instead, you pull your tweets from your own Twitter RSS feed using the simpler <a href="http://apiwiki.twitter.com/Twitter-Search-API-Method%3A-search">Twitter Search API</a>, not the Twitter REST API.</p>
<p>Here’s the <a href="http://scriptplayground.com/tutorials/php/Latest-Twitter-Update-With-PHP/">article I found and used as the basis for my own solution</a>. I’ve made a few modifications to the parsing function that I think provides a better, more flexible outcome. One change is that I add the rel=“nollow” attribute to each &#8220;a&#8221; tag. Since the content you are displaying (in your tweet) is your own, Why would you want the search engines sending some of your hard-fought link juice back to Twitter? </p>
<p>The second change I made was to parse the array an additional time so as to separate out the body of the tweet from the metadata. I just want to display my tweet. That’s all. But, the new array can be used as you see fit. </p>
<pre class="brush: php; title: ; notranslate">
&lt;div id=&quot;my_tweets&quot;&gt;
	&lt;?php
		// Your twitter username; replace below; keep username in quotes
		$username = &quot;blahblah&quot;;

		// Content you want to include before your tweet; I'm using this for a quick title
		$prefix = &quot;&lt;h2&gt;My Latest Tweet&lt;/h2&gt;&quot;;

		// Content you want to include after your tweet
		/*$suffix = &quot;&lt;br /&gt;&lt;br /&gt;You should follow me on Twitter&quot;;*/

		$latest_tweet = &quot;http://search.twitter.com/search.atom?q=from:&quot; . $username . &quot;&amp;rpp=1&quot;;

		function parse_feed( $latest_tweet ) {
		    $tweet_array = explode( &quot;&lt;content type=\&quot;html\&quot;&gt;&quot;, $latest_tweet );
		    $tweet_array2 = explode( &quot;&lt;/content&gt;&quot;, $tweet_array[1] );

			$tweet = $tweet_array2[0];

			//No need for search engines to follow twitter links or tags; add no follow
			$tweet = str_replace( &quot;&amp;lt;a &quot;, &quot;&amp;lt;a rel=\&quot;nofollow\&quot; &quot;, $tweet );
		    $tweet = str_replace( &quot;&amp;lt;&quot;, &quot;&lt;&quot;, $tweet );
		    $tweet = str_replace( &quot;&amp;gt;&quot;, &quot;&gt;&quot;, $tweet );

		    //some extra tweet metadata you can use if you want
		    $tweet_extra = $tweet_array2[1];

		    return array ( $tweet, $tweet_extra );
		}		

		list ( $tweet, $tweet_extra ) = parse_feed( file_get_contents( $latest_tweet ) );

		echo stripslashes( $prefix ) . html_entity_decode( $tweet );

		// If you want to include more content after the tweet, use this instead
		/*echo stripslashes( $prefix ) . $tweet . stripslashes( $suffix );*/
	?&gt;
&lt;/div&gt;
</pre>
<p>I simply placed this code in a division within my index.php file. You can place the code wherever you like&mdash;in a sidebar, the footer, a separate page, etcetera. Of course, you could also add it to your functions.php file and simply call your custom twitter-feed function in your template. It’s your choice. </p>
<p>Also, I imagine this simple code could be adapted for use in BuddyPress as well.</p>
<p>To see how it looks on my site, just <a href="http://jeffsayre.com/">go to my homepage</a>.</p>
<p>By the way, it may come as little surprise to you, but I am not a design genius nor even a moderately-skilled designer. I choose to spend my WordPress time either coding or actually creating content for my site. So, you are on your own as far as positioning the output. But, I hear that you can use CSS to do that. <img src='http://jeffsayre.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </p>
<p>Have fun! </p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/03/13/easy-code-to-show-your-most-recent-tweets-in-wordpress-2/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Do You Support BuddyPress Privacy?</title>
		<link>http://jeffsayre.com/2010/01/02/do-you-support-buddypress-privacy/</link>
		<comments>http://jeffsayre.com/2010/01/02/do-you-support-buddypress-privacy/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 20:47:02 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[Social Media & Semantic Web]]></category>
		<category><![CDATA[Featured Posts]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=96</guid>
		<description><![CDATA[In a recent post, I asked for ideas on how WordPress ecosytem developers can earn a living doing what they love to do&#8212;coding great-quality plugins for WordPress, BuddyPress, and bbPress. This post is my attempt to try the time&#8211;honored (but more than likely ineffective) request&#8211;for&#8211;donation approach for my BuddyPress Privacy Component. Please Note: The new [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://jeffsayre.com/2010/01/02/do-you-support-buddypress-privacy/privacy-funding/" rel="attachment wp-att-205"><img src="http://jeffsayre.com/wp-content/uploads/2010/01/Privacy-Funding.png" alt="Plugin Funding Progress" title="BuddyPress Privacy Plugin Funding Progress" width="500" height="60" class="aligncenter size-full wp-image-205" /></a></p>
<p>In a recent post, I asked for <a href="http://jeffsayre.com/2010/01/02/how-can-buddypress-developers-earn-a-living/">ideas on how WordPress ecosytem developers can earn a living</a> doing what they love to do&mdash;coding great-quality plugins for WordPress, BuddyPress, and bbPress. This post is my attempt to try the time&ndash;honored<span id="more-96"></span> (but more than likely ineffective) request&ndash;for&ndash;donation approach for my <a href="http://jeffsayre.com/2009/12/05/buddypress-privacy-component-released/">BuddyPress Privacy Component</a>.</p>
<p><strong>Please Note: The new BuddyPress Privacy Component which will work with BP 1.2.7 is not yet available. The below PayPal button is for donation to support development. It is not a paywall that provides access to a download link for the Privacy Component. All of my WordPress and BuddyPress plugins to date are GPLed and are freely available on the WordPress Plugin Repository. Once the updated-version of the BuddyPress Privacy Component is ready, I will make it available in the same manner. Only donate if you want to provide development support.</strong><br />
<a href="http://jeffsayre.com/wp-content/uploads/2010/01/No-more-donations.png"><img src="http://jeffsayre.com/wp-content/uploads/2010/01/No-more-donations.png" alt="" title="No-more-donations" width="440" height="300" class="aligncenter size-full wp-image-1283" /></a></p>
<p>But, I&#8217;m going to go about this in a slightly different way. This approach is a serious attempt at doing things differently. I hope it does not provoke the ire of my readers.</p>
<p>How is my approach going to be different? Well, I&#8217;m going to be upfront and honest about the time commitment on my part to code, update, and support my BuddyPress Privacy Component. Then, I&#8217;m going to appeal to your sensibilities. If that doesn&#8217;t work, I&#8217;m then going to leverage your needs!</p>
<p>Please click the first link above and read that, if you have not already. Then, come back to this post and continue reading.</p>
<p><strong>First a Caveat</strong></p>
<p>Please be advised that the approach I&#8217;m about to detail will be controversial. This is my attempt at one possible solution to the question posed in the first link above. It is an experiment at best.</p>
<p>Do I think that this approach will be warmly received? No. Do I think that it will be successful? No.</p>
<p>But perhaps it will stir up healthy conversation and some tangible solutions.</p>
<p><strong>The Ever-Changing BuddyPress Landscape</strong></p>
<p>BuddyPress version 1.2 is fast approaching its public release. However, the underlying codebase has undergone major <a href="http://en.wikipedia.org/wiki/Code_refactoring">code refactoring</a> and even significant changes in functionality. So much has changed that it will require a significant amount of time to refactor my Privacy Component codebase to function properly in the newly-overhauled BP platform.</p>
<p>I&#8217;m not complaining about the changes. I&#8217;m just stating a fact. I believe that BP version 1.2 will be superior to previous versions.</p>
<p>I&#8217;ve had discussions with a few other BuddyPress plugin developers who wonder if we&#8217;ll see similar codebase changes in future versions of the BuddyPress platform. At this stage, we have to assume that this is a real possibility. Therefore, it is only wise to plan accordingly, to assume that with each major new release, that parts of our plugins may require significant TLC. But again, when the dust settles, version 1.3 of BuddyPress will be superior to previous versions.</p>
<p><strong>It’s Just Time, Right?</strong></p>
<p>I currently estimate that it will take at least 30 to 40 hours of code refactoring and functional code changes to bring the current version of my BuddyPress Privacy Component up to working order for BP v1.2. Of course, not all of this time is for coding. A noticeable amount of this time is studying the changes to the BP codebase and figuring out how key object arrays, actions, and filters have changed. When version 1.3 comes out later this year, it may require a similar amount of effort. This estimate does not even take into account the incremental versions (1.2.x, 1.3.x) that could require fixes here and there. But, leaving the incremental version changes out of the equation, I estimate that this phase of the project will require between 60 and 80 hours of work in 2010.</p>
<p>Along with updating the plugin, support is another time sponge. I estimate that once my plugin hits the mainstream, that I could be looking at at least 5-10 hours a week for support requests during the first two weeks of a version release and then 10 hours a month until the next version is released. With two major BP privacy plugin versions assumed to be released in 2010, that equates to an estimated total of 100-140 support hours in 2010.</p>
<p>Finally, there is at least one big, missing piece of the privacy puzzle&mdash;group privacy filtering. Until development of BP v1.2 is frozen, I will not be able to provide an accurate estimate of how many hours it will take to code a full-featured suite of group privacy filters. But, I do know that there is <a href="http://trac.buddypress.org/ticket/1493">talk of possible, significant changes to the groups component in version 1.3</a>. So, once again, this is my best guesstimate. I&#8217;m assuming roughly 80 hours of coding to bring to fruition group privacy filtering.</p>
<p>What does this all add up to? The total estimated time required in 2010 to upgrade, maintain, augment, and support my BuddyPress Privacy Component is 240-300 hours. At my standard, weekly work schedule, that is roughly 4 weeks of my time!</p>
<p>This is more than likely an underestimate of the amount of time that will be required, but I’m using that figure to help me determine a realistic financial support request. Also, it does not include the hundreds of hours already invested in the current version.</p>
<p><strong>An Appeal to Your Sensibilities</strong></p>
<p>Now, of course I cannot possibly donate four weeks of my time on this plugin or any of my other not&ndash;yet&ndash;released BuddyPress plugins. Can you donate four weeks of your time for anything? Would you give up your vacation time (and then some) to provide free software programming and consulting services?</p>
<p>My goal is to recoup some of the time I’ve already put into developing this plugin, to fund the current and future upgrades and enhancements to this plugin over the course of this year, and to cover some of the support time I will inevitably be requested to provide.</p>
<p><strong>Supporting Development, Developing Support</strong></p>
<p>How is my donate button different than others? Well, it is not a donate button. It is a support this project button. It&#8217;s a request for action, an opportunity for you to show your support by buying into the project. If there is not sufficient support, then the project will be discontinued.</p>
<p>Without sufficient financial support, I cannot continue to develop this, or any other plugin. I need to have a reasonable cash flow. I have to contribute to the support of my family.</p>
<p>Based on my above estimates of the number of hours that I will be required to put into my BuddyPress Privacy Component in 2010, I’ve set a goal of $9,000. That adds up to an hourly rate of between $30 and $37.50. This, in itself, is a greatly reduced hourly rate from my previous consulting days. That is okay. I’ll consider the difference as my continued donation to the cause.</p>
<p><strong>What Happens in 2011?</strong></p>
<p>This request for financial support is only for 2010. So, you rightfully may ask, what will happen when 2011 rolls around?</p>
<p>By then, privacy in some form or other should be a core BuddyPress component. It will thus be maintained by the core development team&mdash;and I&#8217;d be willing to help them maintain it as well.</p>
<p>Of course, it&#8217;s possible (but I think unlikely), that privacy will become a core feature of BuddyPress this year. If it does, I very much doubt that it will be the fined grained, fully-featured privacy suite that I offer in my plugin. But Andy and JJJ are very clever guys. So, you never know!</p>
<p><strong>What Happens if You Don&#8217;t Raise the Entire Amount?</strong></p>
<p>Since PayPal allows for refunds to be sent within 60 days of receiving a payment, I plan to hold all proceeds in my PayPal account. In 58 days from the date on this post, I will assess the results. If the goal has not been met, I will decide if I&#8217;m willing (and able) to provide the entire year&#8217;s worth of work discussed above for the amount raised. If I decide to proceed, I&#8217;ll withdraw the funds from my PayPal account. If I decide not to proceed, I&#8217;ll issue a refund through PayPal.</p>
<p>So, on Monday, March 1, 2010, the final decision will be made.</p>
<p><strong>BuddyPress Privacy and BP Version 1.2</strong></p>
<p>Just to allay any fears, I have already committed to bringing my privacy component up to code to work under BuddyPress version 1.2. That will happen no matter how this little experiment turns out. The real issue is what happens from that point.</p>
<p><strong>Wait, Open Source is Supposed to be Free</strong></p>
<p>Most people expect software to be free these days, especially with Open Source projects. But the spirit of Open Source is not providing free (as in no cost) software. It is in providing freedoms in how you use the software. These two pages on Gnu&#8217;s website&ndash;the maintainers of the GNU GPL license which WordPress is licensed under&ndash;explain it very well:</p>
<ul>
<li><a href="http://www.gnu.org/philosophy/selling.html">Selling Free Software</a></li>
<li><a href="http://www.gnu.org/philosophy/free-sw.html">The Free Software Definition</a></li>
</ul>
<p>So, although it is customary in the WordPress ecosystem for plugin developers to offer their work for no cost, it is not what is intended by the GPL, it is not what Open Source is truly about.</p>
<p>Has the misguided assumption about free (as in cost) software become too ingrained in our community? Whereas designers who offer GPLed&ndash;premium themes seem to be accepted into the community without issue, developers who offer GPLed&ndash;premium plugins are often treated differently. There should not be a double standard. Both designers and developers should have the right to earn a living from providing great-quality free software.</p>
<p><strong>My Plugins will Always Be Free</strong></p>
<p>I believe in the free software movement, in the spirit of open source. I will always freely provide my plugins to the greater community. I&#8217;m truly not looking to sell my code. I am just looking for an acceptable vehicle (besides the consulting route) that provides some financial support so that I can continue offering high-quality (I hope!) plugins.</p>
<p><strong>An Appeal to Your Needs</strong></p>
<p>Now, I’m in no way intending to hold the BuddyPress community hostage. I’m trying to see if this idea will work.</p>
<p>Is privacy something that you think is important in BuddyPress? Is privacy filtering for your members&#8217; data something that you need for your BuddyPress-based community?</p>
<p>If you have read this far, and have not unfriended me over at BP.org or unfollowed me on Twitter, then I am amazed! Actually, it does not surprise me. I assume that you agree that Privacy is of paramount import in BuddyPress, in any social network.</p>
<p>If privacy is something you value in BuddyPress, then I ask that you please help support my efforts. Tweet about this post (you can use the Tweet This! button on top), blog about my post, draw attention to my efforts in other ways, and finally, put a few dollars into the project&#8217;s coffers. I’ll then do all the heavy lifting!</p>
<p>Thank you!</p>
<p>The bar chart below and at top will update as support rolls in. The question is, will it roll in at all? If not, what are my options?</p>
<p><a href="http://jeffsayre.com/2010/01/02/do-you-support-buddypress-privacy/privacy-funding/" rel="attachment wp-att-205"><img src="http://jeffsayre.com/wp-content/uploads/2010/01/Privacy-Funding.png" alt="Plugin Funding Progress" title="BuddyPress Privacy Plugin Funding Progress" width="500" height="60" class="aligncenter size-full wp-image-205" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/01/02/do-you-support-buddypress-privacy/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>How Can BuddyPress Developers Earn a Living?</title>
		<link>http://jeffsayre.com/2010/01/02/how-can-buddypress-developers-earn-a-living/</link>
		<comments>http://jeffsayre.com/2010/01/02/how-can-buddypress-developers-earn-a-living/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 19:35:48 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[Social Media & Semantic Web]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[GPL]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=121</guid>
		<description><![CDATA[In the WordPress ecosystem, when it comes to getting paid for time spent, it seems that theme designers are far ahead of plugin developers. GPLed&#8211;premium themes are not only an accepted part of this ecosystem, but seem to thrive. Plugin developers, on the other hand, have been shunned in the past for offering premium plugins. [...]]]></description>
			<content:encoded><![CDATA[<p>In the WordPress ecosystem, when it comes to getting paid for time spent, it seems that theme designers are far ahead of plugin developers. GPLed&ndash;premium themes are not only <a href="http://wordpress.org/extend/themes/commercial/">an accepted part of this ecosystem</a>, but seem to thrive. Plugin developers, on the other hand, have been shunned in the past for offering premium plugins. I won&#8217;t go into the reasons for this, but there is a sordid history, to say the least. I also do not want to reopen the war wounds from previous debates on this topic.<span id="more-121"></span></p>
<p><em>UPDATE: January 19, 2010 A year after this post and here are the results. See my current thoughts on this issue in this article, <a href="http://jeffsayre.com/2011/01/19/bp-privacy-history-and-lessons-learned-from-developing-a-major-buddypress-component/">BP Privacy: History and Lessons Learned from Developing a Major BuddyPress Component</a>.</em></p>
<p>I think it is not only fair and appropriate, but also necessary for plugin developers to have the opportunity to make a living, or at least part of their living, writing great code that extends the base functionality of the BuddyPress platform.</p>
<p>To be clear, I am not an employee of Automattic. Like the vast majority of BuddyPress developers, I do not get paid a single cent for my contributions. In fact, as a salaried employee of Automattic, Andy Peatling, the lead developer of BuddyPress, is the only one who gets paid for his time working on this Open Source project (as far as I know).</p>
<p>Again, I am not looking to fan the embers of previous debates. I do not have any issue with how Automattic runs the WP plugin repository or care if they never list commercial plugins. That is not my point.</p>
<p>All I’m asking is how can plugin developers exist on an equal footing with theme designers when it comes to the issue of earning a living? Currently, the only three options that developers have, it seems, are to advertise a donate button for each plugin, accept consulting gigs, or accept advertising on their website. But <a href="http://www.justinparks.com/have-you-made-donation-to-your-wordpress-plugin-developer/">donate buttons rarely provide much support</a> and providing consulting services to clients is not for everyone. Furthermore, for me, I do not care to turn my personal website into a billboard.</p>
<p>The argument that plugin developers benefit by offering their work for free is flawed. It assumes that all developers are looking for consulting work, and two that all developers who offer their work for free will receive consulting work. Whereas it is certainly the case that some plugin developers have built a nice consulting business as a result of their donated work in the WordPress community, that does not mean that this route is for everyone.</p>
<p>What if a developer just wishes to code great-quality plugins like a theme designer designs high-quality themes? What if he or she does not want to provide any other service? How should this developer be compensated for their time?</p>
<p>But, since you asked, I do have a <a href="http://jeffsayre.com/2010/01/02/do-you-support-buddypress-privacy/">donate-like button for my BuddyPress Privacy Component</a>. You can read more about my version of &#8220;donate&#8221; here.</p>
<p>I would like to hear some ideas on this topic as <a href="http://jeffsayre.com/2009/12/21/i’m-buddypress-ed-for-time/">I have contributed much time to the BuddyPress community</a> but have not earned a single penny. I am not looking to provide programming services or start a consulting company. I have a significant project that I’m working on so I don&#8217;t have time for much else.</p>
<p>Since I am not yet making an money on my project, I need a vehicle to earn some semblance of a respectable cash flow. Just as some theme designers earn a decent income from their premium themes, I would like to think that my income vehicle could be BuddyPress component development.</p>
<p>So, ideas and civil discussion, please!</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/01/02/how-can-buddypress-developers-earn-a-living/feed/</wfw:commentRss>
		<slash:comments>49</slash:comments>
		</item>
		<item>
		<title>OAuth, BuddyPress, and Privacy</title>
		<link>http://jeffsayre.com/2009/12/21/oauth-buddypress-and-privacy/</link>
		<comments>http://jeffsayre.com/2009/12/21/oauth-buddypress-and-privacy/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 22:09:03 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[OAuth]]></category>
		<category><![CDATA[privacy]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=82</guid>
		<description><![CDATA[When I first started kicking around the idea of coding a privacy component for BuddyPress, several people suggested looking into using the OAuth protocol to accomplish the task. Being semi-omniscient, and totally oblivious to everything else, I did not have the faintest clue on how to work with OAuth. After learning the rudimentary workings of [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://jeffsayre.com/wp-content/uploads/2009/12/OAuth.png" alt="OAuth" title="OAuth" width="125" height="125" class="alignleft size-full wp-image-83" />When I first started kicking around the idea of coding a privacy component for BuddyPress, several people suggested looking into using the OAuth protocol to accomplish the task. Being semi-omniscient, and totally oblivious to everything else, I did not have the faintest clue on how to work with OAuth.<span id="more-82"></span></p>
<p>After learning the rudimentary workings of OAuth, it quickly became clear that it did not offer a mechanism for internal access control, nor was it even intended to be used as an authorization protocol. I’ll discuss this last statement in more detail later.</p>
<p>So, to educate my fellow social media gurus, I decided it would be helpful to jot down what I learned and determined about OAuth, its intended use in any social media application like BuddyPress, and how privacy control needs to be implemented within BuddyPress.</p>
<p><strong>What is OAuth?</strong></p>
<p>From the <a href="http://oauth.net/core/1.0/">OAuth Core 1.0 Specifications</a>:</p>
<blockquote><p>The OAuth protocol enables websites or applications (Consumers) to access Protected Resources from a web service (Service Provider) via an API, without requiring Users to disclose their Service Provider credentials to the Consumers. More generally, OAuth creates a freely-implementable and generic methodology for API authentication.</p></blockquote>
<p>Therefore, OAuth is a set of rules and procedures that facilitate the exchange of data between websites without the requesting website requiring the user to provide his or her sensitive authentication credentials. This enables a greater level of security for all users.</p>
<p>Imagine if you had to provide your Twitter credentials (username and password) when installing the Twitter Facebook Application in your Facebook profile. Fortunately, Twitter now uses the OAuth protocol so your password does not need to be provided to and stored by Facebook. Instead, a token with defined rights is created and used by the Twitter Facebook Application to gain access to your Twitter data.</p>
<p><strong>How Privacy Needs to be Implemented in BuddyPress</strong></p>
<p>Whereas OAuth can provide access control to a user’s private data, or any URL with a need for access restrictions, it does so only between sites. OAuth is not a protocol used for internal access control; it is not an internal authorization protocol.</p>
<p>(Visit this post to learn more about <a href="http://jeffsayre.com/2009/12/05/buddypress-authentication-versus-authorization/">Authentication Versus Authorization</a>)</p>
<p>Again, from the OAuth Core 1.0 specification:</p>
<blockquote><p>It is important to understand that security and privacy are not guaranteed by the protocol. In fact, OAuth by itself provides no privacy at all and depends on other protocols to accomplish that.</p></blockquote>
<p>Therefore, BuddyPress requires its own internal privacy protocol. Enter, BPAz, my <a href="http://jeffsayre.com/2009/12/05/buddypress-privacy-component-released/">BuddyPress Privacy Component</a></p>
<p>BPAz is a necessary protocol for providing privacy to all BuddyPress users’ personal data. Once a given user’s data is sufficiently controlled by their BPAz access control list (ACL), they can feel more confident in exposing any data they wish to share across the Web.</p>
<p>BPAz is internal to a given BuddyPress install. It provides the mechanism whereby a give authenticated user can establish access rights&mdash;via an ACL&mdash;to their internal objects. The focus is on allowing users to have fine-grained control over their personal data. OAuth, on the other hand, is a protocol that facilitates the cross-site sharing of user content.<img src="http://jeffsayre.com/wp-content/uploads/2009/12/Bpaz_OAuth.png" alt="Bpaz_OAuth" title="Bpaz_OAuth" width="250" height="250" class="alignright size-full wp-image-84" /></p>
<p>With BPAz, users can compartmentalize their data, to decide which pieces can be shared and with whom. OAuth can then generate tokens based on a given user’s ACL that allow clearly defined access rights to users in outside networks. Without the privacy filtering of BPAz, OAuth tokens would be very broad in scope, potentially allowing access to all of a user’s data with a single token.</p>
<p>Now, it is not as simple as installing my Privacy Component and suddenly your BuddyPress site is ready to safely communicate your users’ data to the outside world via OAuth. WPMU and BuddyPress first need to properly communicate with OAuth. This is on the roadmap for a future version. Once that happens, I will take a look at the code and figure out what, if any, I need to alter in my Privacy Component to properly communicate with OAuth.</p>
<p>So, the take home message is this. Authentication within BuddyPress is currently handled by a few internal core WPMU scripts. Authorization, however, is not yet a core feature of BuddyPress. My Privacy Component is an important first step in molding BuddyPress into a platform that can safely and effectively interact with other social media sites.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2009/12/21/oauth-buddypress-and-privacy/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

