Joomla User Profile Plugin
2013-02-08 1:23 pm EST
In my registration form i added the user profile plugin to collect other user informations, what i want to know if possible is how to add these fields to the Admin notification email that actually shows only the username and name of the registered user.
2013-02-08 3:43 pm EST
Unfortunately from what I can tell, I don't believe it's possible to alter your administrative email notifications to also include other information aside from their name, username, and siteurl.
This is because in the /components/com_users/models/registration.php Joomla file it's setting these 3 values as the only ones from the database with this section of code:
This correlates to the same COM_USERS_EMAIL_REGISTERED_NOTIFICATION_TO_ADMIN_BODY option in either the /language/overrides/en-GB.override.ini or /administrator/language/en-GB/en-GB.com_users.ini file, which look like this:
Unfortunately adding another %s variable replacement string in this setting does not allow for any new data to get passed, and it actually breaks the admin notifications from my testing.
The other data entered in by the Joomla User Profile plugin ends up in the jos_user_profiles database table, instead of the jos_users table where the registration.php script is setup to pull from.
So you would need to make some heavy modifications to the core Joomla scripts to get it to pull in other data for your admin notifications from what I can tell.
Please let us know if you had any other questions at all.