Get the user data from the DB of CB

7 years 11 months ago #281217 by entumas
Get the user data from the DB of CB was created by entumas
Hi! :cheer:

I'm working on a website that works with user registration, this I am doing a couple of contact forms with ChronoForms. I want to make a very simple contact form, which only has the text message field. I want the form get user data directly from the database.

In ChronoForms documentation I found information on how to get data from users of Joomla, but not of CB.
<?php
	$user = \JFactory::getUser();
	$form -> data['user_id'] = $user -> id;
	$form -> data['user_name'] = $user -> name;
	$form -> data['user_email'] = $user -> email;
?>

How I can get user data directly from the DB of Community Buider?

Thanks!

Please Log in to join the conversation.

7 years 11 months ago #281384 by entumas
Replied by entumas on topic Get the user data from the DB of CB
I've been reading all the documentation section of tutorials and nothing works for me.
I finally found a solution on an external page.

Please Log in to join the conversation.

7 years 7 months ago #285704 by highonryan
Replied by highonryan on topic Get the user data from the DB of CB
Would you mind sharing the solution. I am trying to figure this out myself.

Thanks.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.206 seconds

Facebook Twitter LinkedIn