Thanks for the pointer Lynne,
OK, so I have created a plugin in the 'global_bootstrap_init_start' hook.
This plugin contains the following 'test code' to preregister some dummy variables into the desired template.
PHP Code:
vB_Template::preRegister('modifypassword',array('myplugin_output' => 'ABCDEFG'));
Using the following in the target template (modifypassword) works:
PHP Code:
{vb:raw myplugin_output}
So, my next questions are ;o)
> How do I get the custom profile field values into my plugin? Do I have to run a database query? Or is there a smarter way?
> Should I be using the 'global_bootstrap_init_start' hook; I got it to work with the 'profile_editpassword_start' hook too?
> Should I use the 'global_bootstrap_init_start' hook and simply register all variables I'll need so I can implement them across multiple templates if needed?
> Should I just be registering these values in the individual templates where needed?
Thanks in advance for any pointers/advice,
Kris...