Wednesday, August 29

WordPress Plugin: Member Only

To create member only pages, I deployed Chad Butler's WP-Members plugin. The original plugin only support Posts, not Pages. And Chad makes it very complicate. So I modified the program and deleted most of his codes to make it simple. Now the code only has 20 lines, while the original one has 1000 lines.


* Upload memberonly.php to your plugins directory
* Login to the WP admin
* Go to plugins tab and activate the plugin
* Any post or page whith < !-- more -- > tag will be blocked from anonymous visit.


PS: (Aug 30, 2007)
The WP-Members plugin integrated a sidebar login widget.

But the Sidebar Login Widget from Mike Jolley is better. Basically, I don't like the style of Chad Butler, putting several things in one package.

Labels: , ,