Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2015-08-27 06:06:12

jimmywiddle
Member
Registered: 2015-05-14
Posts: 29

Autofill name and email with user data from joomla

Hi,

I read your guide on prefilling form fields, which was great.
https://livehelperchat.com/pre-filling- … -140a.html

Although Im still a little unsure on how to implement the php code from joomla which gets the userdata:

$user =& JFactory::getUser();
$user_name = $user->name;
$user_email = $user->email;

With the JS which autofills the fields:

LHCChatOptionsPage.attr_prefill = new Array();
LHCChatOptionsPage.attr_prefill.push({'name':'email','value':'***.com','hidden':true});
LHCChatOptionsPage.attr_prefill.push({'name':'username','value':'Username here'});

Any help would be much appreciated!

Offline

#2 2016-10-12 17:29:31

PeopleInside
Administrator
From: Italy
Registered: 2014-04-10
Posts: 4,046
Website

Re: Autofill name and email with user data from joomla

Hi, sorry to see there are no replies to this post. roll
Maybe in the future we can do better. cool

Live Helper Chat is an Open Source Project,
support on the Forum can be limited and not all time maybe is possibility to give the desired reply.

We will do the best for give an helpful reply asap (as soon as possible).

Wish you all the best,
thank you for your interest in the Live Helper Chat!

All Documentation are available here: https://livehelperchat.com/documentation-6c.html
Free Plug-in are available here: https://livehelperchat.com/free-plugins-19c.html


lol PeopleInside - Live helper chat - free limited forum support!
wink For commercial support or GitHub [see FAQ here]
ops If you want to support this open source project, just donate [see support page]
glasses Something wrong with the forum? [contact a superhero]

Offline

Board footer