I'm trying to get a 3rd party livehelp to autofill with Joomla users name and email when logged in.
This is the js code to autofill:
LHCChatOptionsPage.attr_prefill = new Array();
LHCChatOptionsPage.attr_prefill.push({'name':'email','value':'[email protected]','hidden':true});
LHCChatOptionsPage.attr_prefill.push({'name':'username','value':'Username here'});
And this is the php code to get the variables from Joomla:
$user =& JFactory::getUser();
$user_name = $user->name;
$user_email = $user->email;
But what do I need to do to use them together?
Any help would be much appreciated!