More than a year ago I wrote a tutorial that explained how to write a plugin to add fields to the Joomla! 2.5 user registration form.
A year later the Joomla! 3 version is widely used and it's time to update my tutorial to make it work with the new version.
We are lucky. The plugin written for the 2.5 version works right with the new platform without any change!
The plugin events used in the previous tutorial, onContentPrepareData, onContentPrepareForm, onUserAfterSave and onUserAfterDelete are unchanged with the new version
The database table used to store this information, #__user_profiles, is unchanged
Joomla! objects and methods used haven't changed
So the easy way to create the new Joomla! 3 plugin is the following:
Download the Joomla! 2.5 complete plugin and install it in your Joomla! 3 website.
If you are writing your own plugin and you are using features that only Joomla! 3 supports, you have to modify the Joomla! version in the manifest file.
So open the testprofile.xml file and change the row
<extension version="2.5" type="plugin" group="user">
with the following
<extension version="3.0" type="plugin" group="user">
With 3.0 you will cover all Joomla! 3.x versions.