Currently it is possible to call plugin functions after user profile has been displayed, but not after edit or registration form. This makes it quite hard to dynamically modify the forms using javascript.
Here is a patch that I wrote:
<code>
[joomla/components/com_comprofiler]$ diff comprofiler.html.php comprofiler.html.php.bak
236,243d235
<
< /*Modification to allow javascript loading at the end of edit starts*/
<
< global $_PLUGINS;
< $_PLUGINS->trigger( 'onAfterUserProfileEditDisplay', array($user,true));
<
< /*Modification to allow javascript loading at the end of edit ends*/
<
1202,1210c1194
< <?php
<
< /*Modification to allow javascript loading at the end of registration starts*/
<
< global $_PLUGINS;
< $_PLUGINS->trigger( 'onAfterRegisterUserDisplay', null);
<
< /*Modification to allow javascript loading at the end of registration ends*/
<
---
> <?php
[joomla/components/com_comprofiler]$
</code>
Post edited by: mikko, at: 2006/05/28 14:34