June 18, 2011
Here are the slides from my talk: Licensing and Business Models for Premium Plugins (ppt).
And FYI, slides from my similar talk at WordCamp Philly (pretty similar, but more stuff on GPL in the beginning)
What You Need to Know About the GPL, Download: ppt, pptx
June 14, 2011
I’m excited to say that I’ve been accepted as a speaker at WordCamp Columbus this coming Saturday. I was a last minute addition… so thanks to the WCC folks for working that out. (Shout out to Angie Meeker: @angiemeeker / blog)
My talk is on “Licensing and Business Models for Premium Plugins”, which is a fancy way of saying “How I plan to make money with Paid Memberships Pro“. Sadly, the event is all sold out, but if you are going or able to squeeze in somehow, I look forward to seeing you there.
More info on the schedule: http://wordcampcolumbus.com/schedule/
Thanks WordCamp Columbus Sponsors: http://wordcampcolumbus.com/sponsors/
June 2, 2011
The WP Page Tree plugin is a nice plugin. It shows a tree view of pages in your WP site… but it’s been broken since about version 3 or so.
I’m sure there are other tree view plugins that work well, but I liked that one. And it is actually an easy fix to get it working in WordPress versions 3+.
The issue was that the links generated in the tree view pointed to the old admin URLs for editing pages (page.php?action=edit&post=#). The new more generalized URLs for editing pages is (post.php?post=#&action=edit).
So, what you want to do is find line 404 in wppagetree.php (of version 2.8 of the plugin) and change page.php to post.php. That’s it. The whole block of code around there should look like:
if ($public) {
// Create our own link to edit page for this ID
$out .= "<a class=\"$pageStatus\" href=\"$pageURL\">" . $pageTitle . "</a>";
}
else {
$out .= "<a class=\"$pageStatus\" href=\"" . get_bloginfo('wpurl') . "/wp-admin/post.php?action=edit&post=$pageID\">" . $pageTitle . "</a> <a style=\"font-size: 10px;\" class=\"$pageStatus\" href=\"$pageURL\">#</a>";
}
Or download this zip here which has version 2.8 of the plugin plus that one fix. I may upload it to the WP directory sometime, but then I’d have to maintain. Feel free to do it for me.
Download: page-tree-fixed.zip
June 2, 2011
Here is a variation of some code I found on Yoast.com to disable the WP admin bar for non-admins only.
function yoast_hide_admin_bar_settings()
{
?>
<style type="text/css">
.show-admin-bar {
display: none;
}
</style>
<?php
}
function yoast_disable_admin_bar()
{
if(!current_user_can('administrator'))
{
add_filter( 'show_admin_bar', '__return_false' );
add_action( 'admin_print_scripts-profile.php', 'yoast_hide_admin_bar_settings' );
}
}
add_action('init', 'yoast_disable_admin_bar', 9);
Just copy and paste this code into your functions.php or another plugin/theme file that can add hooks. Save/upload and watch it work.
Let me know if you have any trouble using this.