Talk

Creating a profile plugin

From Joomla! Documentation

Jcasal 13:17, 28 December 2010 (UTC)

The examples uses the language model for I18N of the plugin, but does not show how this elements are added to the plugin the language directories.

Looking at profile5.xml it indicates that the language files are to be found in:


But these are the language files for the User:Profile plugin. So basically, the language translations would need to be done on another plugin's language files?

Should this tutorial show the plugin containing its own language files? For example:


and examples of how these files would look like...

Jcasal 21:00, 28 December 2010 (UTC)

Actually, after lots of trial and error, I have found a few other things that needed to be updated, so the changes are now published. Hope they work for others and save you some time doing your first user profile extension plugin.

profile to profile5[edit]

I made the changes for plug-in to work as expected.

As before it was not running onUserAfterSave functon, because profile5 property in $data array was not set.

If profile keys stay the same in database, profile plugin wipes out profile5 keys and vice versa.


--Baignoire 19:08, 6 April 2011 (UTC)

hi, i copied the files as they are now and installed the plugin :

- the save in the database is ok,
- but : 
   - on the profile view, the "someting!" field appears as 'no data entered' (or its real english equivalent, i am ona french install of joomla!)
   - when editing the profile, from frontend as well as from admin area, the field is empty (not filled with the database data)

It looks like the plugin works fine for recording to database, but not for reading saved data from the database. Any ideas ???