B2Template

This is a template plugin to help you start writing your own WordPress plugins. It demonstrated AJAX, saving variables, updating a database, internati

Author:Dan Imbrogno, Blogging Squared (profile at wordpress.org)
WordPress version required:2.8
WordPress version tested:3.1.4
Plugin version:2.2
Added to WordPress repository:17-04-2009
Last updated:17-03-2011
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://brolly.ca/blog/wordpress/brolly-templa...
Total downloads:2 621
plugin download
Click to start download

To use this plugin template, add it to your WordPress plugins directory and activate it from the Plugins page. Then take a quick moment to see how the plugin works. There are three components to the plugin that you should try out before you start looking at the code.

  1. First, go to the visitor facing side of your website. You'll notice a "Fact Check" form at the bottom of each post. This bit is intended to demonstrate AJAX form submission from the visitor facing pages.
  2. Next, go to the admin side of the website. Under the Settings tab, click B2 Template Plugin. This bit shows how to save plugin settings the normal way, how to save data using AJAX from the admin pages, and also demonstrates how internationalization works.
  3. Finally, go to the Widgets page under the Appearance tab. Here you'll see a Widget called B2 Template Widget. Drag this into one of your sidebars and experiment with the different settings. Then go to the visitor facing pages of your website and have a look at how this widget works.

Once you've examined these parts of the Plugin, open up the file B2Template.php and begin reading through the well commented code. If you have any questions please visit our blog at http://bloggingsquared.com or contact the developer directly by emailing dan.imbrogno@brolly.ca.

I hope this helps you on your way to becoming a WordPress plugin guru!

Blogging Squared provides high quality custom WordPress themes and plugins for individuals and businesses at competitive rates. Contact us at info@bloggingsquared.com to request a quote.