2011-10-14, 17:58:11
Light-Pix Wrote:[p01-contact] does refer to user.xml,For a quick solution, you can edit the file p01-contact_gs.php in the plugin directory:
...
How would I change it to point to the current user?
Code:
function admin_email()
{
$data = getXML(GSDATAOTHERPATH . 'user.xml');
return $data->EMAIL;
}
In fact, you can manage without that function. The email address returned is only set as the default for the contact form and it can be entered manually in the p01-contact set-up page in the GS backend – after all, it's not very likely that contact forms will be added or removed frequently. In this case, simply add a return instruction at the top of the function definition, before $data = ...
--
Nick.
Nick.